/* Creatix Bot — visual refresh layer
   Intentionally overrides presentation only. Existing HTML, API calls,
   Discord session handling, and saved configuration remain untouched. */
:root {
  --bg: #100b18;
  --pn: #1b1228;
  --bd: #403052;
  --ac: #9450d5;
  --hi: #dfb8ff;
  --tx: #f8f2ff;
  --mu: #b9a9ca;
  --surface-soft: #241934;
  --surface-hover: #2c1e3d;
  --shadow-violet: 0 18px 50px rgba(91, 35, 132, .22);
  --shadow-card: 0 16px 38px rgba(0, 0, 0, .22);
  --ease-out: cubic-bezier(.2, .75, .25, 1);
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #63427e #130d1d;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% -18%, rgba(147, 74, 204, .19), transparent 48rem),
    radial-gradient(ellipse at 100% 42%, rgba(89, 47, 124, .11), transparent 34rem),
    var(--bg);
  color: var(--tx);
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #fff;
  background: rgba(157, 78, 221, .48);
}

:focus-visible {
  outline: 2px solid var(--hi);
  outline-offset: 3px;
}

a {
  transition: color .2s ease, opacity .2s ease;
}

.top {
  position: relative;
  z-index: 3;
  padding: 18px clamp(20px, 5vw, 84px);
  border-bottom: 1px solid rgba(223, 184, 255, .09);
  background: rgba(16, 11, 24, .62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: -.035em;
}

.logo b {
  background: linear-gradient(120deg, #dfb8ff, #9e56dc);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(194, 143, 235, .26);
  border-radius: 12px;
  background: linear-gradient(145deg, #261a35, #1b1228);
  color: var(--tx);
  padding: 10px 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .035) inset;
  transition:
    transform .25s var(--ease-out),
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease,
    filter .25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.13), transparent 70%);
  transform: translateX(-130%);
  transition: transform .65s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(223, 184, 255, .58);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn:active {
  transform: translateY(0) scale(.985);
}

.btn.p {
  border-color: transparent;
  background: linear-gradient(125deg, #a45be0, #7734b5 72%, #6c2ca8);
  color: #fff;
  box-shadow: 0 10px 25px rgba(129, 58, 184, .25), 0 1px 0 rgba(255,255,255,.18) inset;
}

.btn.p:hover {
  filter: brightness(1.09);
  box-shadow: 0 14px 32px rgba(129, 58, 184, .36), 0 1px 0 rgba(255,255,255,.2) inset;
}

.hero {
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 10vh, 124px) 5vw 88px;
}

.hero::before {
  opacity: .72;
  background:
    linear-gradient(rgba(157, 78, 221, .13) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(157, 78, 221, .13) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 14%, transparent 73%);
  mask-image: radial-gradient(ellipse at 50% 38%, #000 14%, transparent 73%);
  animation: grid-breathe 9s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(72vw, 820px);
  height: min(48vw, 500px);
  top: 2%;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(148, 80, 213, .15), transparent 68%);
  filter: blur(20px);
  transform: translateX(-50%);
  pointer-events: none;
}

h1 {
  position: relative;
  letter-spacing: -.045em;
  text-wrap: balance;
  background: linear-gradient(115deg, #fff 12%, #ead4ff 56%, #b878e8 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: fade-up .75s var(--ease-out) both;
}

.lead {
  position: relative;
  color: #c3b4d2;
  line-height: 2;
  animation: fade-up .8s .12s var(--ease-out) both;
}

.hero .btn {
  margin: 5px 3px;
}

.hero .btn.p {
  animation: fade-up .8s .2s var(--ease-out) both;
}

.emb {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  border: 1px solid rgba(213, 178, 244, .2);
  border-inline-start: 4px solid var(--ac);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(38, 25, 54, .98), rgba(25, 16, 39, .98));
  box-shadow: var(--shadow-violet), 0 1px 0 rgba(255,255,255,.05) inset;
  animation: float-in 1s .18s var(--ease-out) both, gentle-float 7s 1.2s ease-in-out infinite;
}

.emb::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223,184,255,.5), transparent);
}

.emb small {
  color: #b9a9ca;
}

.g3 {
  max-width: 1120px;
  gap: 18px;
  padding-bottom: 96px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(180, 139, 214, .19);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(34, 22, 49, .98), rgba(25, 16, 39, .98));
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.035) inset, 0 14px 36px rgba(0,0,0,.14);
  transition:
    transform .3s var(--ease-out),
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease;
}

.g3 > .card {
  animation: fade-up .7s var(--ease-out) both;
}

.g3 > .card:nth-child(2) {
  animation-delay: .09s;
}

.g3 > .card:nth-child(3) {
  animation-delay: .18s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  opacity: .0;
  background: linear-gradient(90deg, transparent, var(--ac), transparent);
  transition: opacity .3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(190, 133, 235, .55);
  background: linear-gradient(150deg, rgba(45, 28, 64, .98), rgba(29, 18, 44, .98));
  box-shadow: var(--shadow-card), 0 0 30px rgba(139, 67, 187, .1);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 8px;
  color: #f7efff;
  letter-spacing: -.025em;
}

.card p {
  color: #b9a9ca;
  line-height: 1.9;
}

footer {
  border-top-color: rgba(223, 184, 255, .12);
  color: #a998bd;
  background: rgba(16, 11, 24, .35);
}

.dash {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 64% -20%, rgba(148, 80, 213, .11), transparent 38rem),
    var(--bg);
}

.sb {
  z-index: 4;
  border-inline-end-color: rgba(223, 184, 255, .12);
  background:
    linear-gradient(180deg, rgba(34, 21, 49, .99), rgba(24, 15, 36, .99));
  padding: 24px 16px;
  box-shadow: 10px 0 40px rgba(0, 0, 0, .08);
  scrollbar-width: thin;
}

.sb .logo {
  margin: 2px 8px 10px;
}

.sb h4 {
  margin: 22px 8px 8px;
  color: #907ba7;
  font-weight: 600;
  letter-spacing: .02em;
}

.sb select {
  border-color: rgba(188, 144, 223, .25);
  background: #170f22;
}

.nv {
  position: relative;
  margin: 2px 0;
  border: 1px solid transparent;
  color: #b9a9ca;
  padding: 10px 13px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.nv:hover {
  background: rgba(157, 78, 221, .12);
  color: #f5eaff;
  transform: translateX(-2px);
}

.nv.on {
  border-color: rgba(174, 111, 219, .14);
  background: linear-gradient(90deg, rgba(113, 54, 156, .14), rgba(157, 78, 221, .22));
  color: #fff;
  box-shadow: inset -3px 0 var(--ac), 0 5px 18px rgba(0,0,0,.1);
}

.main {
  max-width: 1100px;
  padding: clamp(24px, 4vw, 52px);
}

.main h2 {
  margin-bottom: 6px;
  color: #f8f1ff;
  letter-spacing: -.03em;
}

.sub {
  margin-bottom: 24px;
  color: #b6a5c8;
  line-height: 1.9;
}

label {
  color: #c4b3d5;
  font-weight: 500;
}

input,
select,
textarea {
  border: 1px solid rgba(177, 134, 213, .25);
  border-radius: 11px;
  background: rgba(16, 10, 25, .78);
  color: #f8f2ff;
  box-shadow: 0 1px 0 rgba(255,255,255,.025) inset;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #7d6a90;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(190, 143, 231, .48);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #a65cdd;
  outline: none;
  background: #181023;
  box-shadow: 0 0 0 3px rgba(157, 78, 221, .16);
}

input[type="color"] {
  min-height: 42px;
  padding: 4px;
  cursor: pointer;
}

input[type="checkbox"] {
  accent-color: #a45bdc;
}

.pv {
  border-inline-start-width: 4px;
  border-inline-start-color: var(--ac);
  border-radius: 12px;
  background: linear-gradient(145deg, #261936, #1b1228);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
  animation: fade-up .35s var(--ease-out) both;
}

.pv img {
  display: block;
  max-height: 240px;
  object-fit: cover;
}

.cs {
  gap: 16px;
}

button.card {
  cursor: pointer;
  text-align: start;
}

button.card:hover {
  border-color: rgba(190, 133, 235, .55);
}

.row {
  align-items: center;
}

.row .btn {
  flex-shrink: 0;
}

.st {
  display: inline-block;
  margin-inline-start: 8px;
  color: #d6b5f1;
  font-size: 13px;
  transition: opacity .2s ease;
}

.sv:active {
  transform: scale(.98);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gentle-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes grid-breathe {
  from { opacity: .42; }
  to { opacity: .82; }
}

@media (max-width: 760px) {
  .top {
    padding: 14px 20px;
  }

  .hero {
    padding: 72px 22px 58px;
  }

  h1 {
    letter-spacing: -.035em;
  }

  .hero .btn {
    min-width: min(100%, 190px);
    margin: 5px 2px;
  }

  .emb {
    margin-top: 34px;
  }

  .g3 {
    gap: 12px;
    padding: 0 20px 64px;
  }

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

  .sb {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 16px 14px;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(223, 184, 255, .12);
  }

  .sb .nv {
    display: inline-block;
    width: calc(50% - 4px);
    vertical-align: top;
  }

  .main {
    max-width: 100%;
    padding: 24px 20px 52px;
  }

  .row {
    flex-wrap: wrap;
  }

  .row input {
    min-width: 0;
  }
}

@media (max-width: 440px) {
  body {
    font-size: 14px;
  }

  .logo {
    font-size: 16px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero .btn {
    width: 100%;
  }

  .emb {
    padding: 14px;
  }

  .sb .nv {
    padding: 9px 10px;
    font-size: 13px;
  }

  .row {
    gap: 7px;
  }

  .row input {
    flex-basis: 100%;
  }

  .row .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Global Arabic typography — IBM Plex Sans Arabic */
:root {
  --font-ui: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
optgroup,
option {
  font-family: var(--font-ui);
}

body {
  font-family: var(--font-ui);
}

/* ── Longer landing page: editorial rhythm and useful content depth ── */
.hero {
  padding-top: clamp(100px, 15vh, 176px);
  padding-bottom: clamp(88px, 12vh, 140px);
}
.hero h1 { max-width: 820px; }
.emb { margin-top: 52px; }
.g3 { max-width: 1120px; padding-bottom: clamp(84px, 11vw, 132px); }
.landing-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0;
}
.section-heading {
  max-width: 680px;
  margin: 0 auto 38px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--hi);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.section-heading h2,
.showcase-copy h2,
.final-cta h2 {
  margin: 0 0 12px;
  color: var(--tx);
  font-size: clamp(25px, 3.5vw, 38px);
  line-height: 1.45;
}
.section-heading p,
.showcase-copy p,
.final-cta p {
  margin: 0;
  color: var(--mu);
  line-height: 2;
}
.feature-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card,
.step-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(177, 134, 213, .2);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(37, 23, 53, .88), rgba(24, 15, 36, .92));
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover,
.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(190, 133, 235, .55);
  box-shadow: 0 22px 55px rgba(93, 35, 132, .16);
}
.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(190, 133, 235, .28);
  border-radius: 14px;
  background: rgba(157, 78, 221, .13);
  color: var(--hi);
  font-size: 22px;
}
.feature-card h3,
.step-card h3 { margin: 0 0 10px; color: var(--tx); font-size: 18px; }
.feature-card p,
.step-card p { margin: 0; color: var(--mu); font-size: 14px; line-height: 2; }
.feature-meta { display: block; margin-top: 22px; color: var(--hi); font-size: 12px; }
.steps-section { border-block: 1px solid rgba(177, 134, 213, .12); }
.step-card { min-height: 190px; }
.step-card > span {
  display: block;
  margin-bottom: 22px;
  color: #b66be8;
  font-size: 30px;
  font-weight: 700;
  direction: ltr;
  text-align: right;
}
.showcase-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 7vw, 88px);
}
.showcase-copy .btn { margin-top: 28px; }
.showcase-panel {
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(177, 134, 213, .3);
  border-radius: 22px;
  background: linear-gradient(145deg, #241331, #130b1d);
  box-shadow: 0 28px 80px rgba(0,0,0,.28), 0 0 60px rgba(157,78,221,.1);
  transform: perspective(1000px) rotateY(-3deg);
}
.showcase-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(177, 134, 213, .16);
  color: #bda8d1;
  font-size: 11px;
}
.showcase-top > span { width: 8px; height: 8px; border-radius: 50%; background: #80509f; }
.showcase-top b { margin-inline-start: auto; font-weight: 500; }
.showcase-body { display: grid; grid-template-columns: 92px 1fr; min-height: 270px; }
.showcase-nav { padding: 24px 14px; border-inline-end: 1px solid rgba(177, 134, 213, .13); }
.showcase-nav i { display: block; height: 10px; margin-bottom: 18px; border-radius: 8px; background: rgba(190, 133, 235, .22); }
.showcase-nav i:first-child { background: #8b43ba; }
.showcase-content { padding: 30px; }
.showcase-content strong { color: #f4eaff; font-size: 16px; }
.showcase-line { width: 68%; height: 9px; margin-top: 18px; border-radius: 8px; background: rgba(190, 133, 235, .17); }
.showcase-line.wide { width: 92%; margin-top: 28px; }
.showcase-actions { display: flex; gap: 10px; margin-top: 28px; }
.showcase-actions i { width: 84px; height: 28px; border-radius: 8px; background: #7d36ae; }
.showcase-actions i + i { background: rgba(190, 133, 235, .16); }
.showcase-stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 24px; }
.showcase-stat-grid i { height: 48px; border: 1px solid rgba(190, 133, 235, .18); border-radius: 9px; background: rgba(190, 133, 235, .07); }
.faq-section { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  padding: 20px 22px;
  border: 1px solid rgba(177, 134, 213, .2);
  border-radius: 14px;
  background: rgba(31, 19, 44, .72);
}
.faq-list summary { color: var(--tx); font-weight: 600; cursor: pointer; }
.faq-list details p { margin: 12px 0 0; color: var(--mu); line-height: 1.9; }
.final-cta {
  margin: 30px auto 90px;
  padding: clamp(40px, 7vw, 78px) 24px;
  width: min(1120px, calc(100% - 48px));
  border: 1px solid rgba(190, 133, 235, .3);
  border-radius: 26px;
  background: radial-gradient(ellipse at 50% 0%, rgba(157,78,221,.22), transparent 65%), #1b1028;
  text-align: center;
}
.final-cta .btn { margin-top: 26px; }
footer { padding: 30px 20px; }
footer span { color: var(--hi); padding-inline: 5px; }

/* ── Welcome settings: structured two-column workspace ── */
.main { max-width: 1240px; }
.welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: start;
  gap: 24px;
  margin-top: 18px;
}
.welcome-form {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(177, 134, 213, .2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(34, 21, 49, .94), rgba(22, 14, 33, .98));
  box-shadow: 0 18px 48px rgba(0,0,0,.14);
}
.welcome-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.welcome-heading h2 { margin: 0 0 5px; font-size: 25px; }
.welcome-heading .sub { margin: 0; }
.heading-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(190, 133, 235, .3);
  border-radius: 15px;
  background: rgba(157, 78, 221, .14);
  color: var(--hi);
  font-size: 23px;
}
.welcome-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(80, 195, 130, .22);
  border-radius: 15px;
  background: rgba(36, 105, 71, .1);
}
.welcome-toggle strong,
.welcome-toggle small { display: block; }
.welcome-toggle strong { color: var(--tx); font-size: 15px; }
.welcome-toggle small { margin-top: 4px; color: var(--mu); font-size: 12px; line-height: 1.8; }
.welcome-toggle label.switch { display: block; flex: 0 0 auto; margin: 0; cursor: pointer; }
.welcome-toggle .switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.welcome-toggle .switch span {
  display: block;
  position: relative;
  width: 48px;
  height: 27px;
  border-radius: 20px;
  background: #4b3a59;
  transition: background .2s ease;
}
.welcome-toggle .switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: white;
  transition: transform .2s ease;
}
.welcome-toggle .switch input:checked + span { background: #873cc0; }
.welcome-toggle .switch input:checked + span::after { transform: translateX(-21px); }
.welcome-form > label { margin-top: 18px; margin-bottom: 7px; color: #e1d1f0; font-size: 13px; }
.welcome-form > input,
.welcome-form > select,
.welcome-form > textarea { min-height: 48px; }
.welcome-form > textarea { min-height: 132px; }
.welcome-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--tx);
}
.welcome-preview-head span { color: var(--mu); font-size: 11px; }
.welcome-form .pv { margin-top: 12px; min-height: 84px; }
.welcome-save {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.welcome-aside {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(177, 134, 213, .2);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(35, 19, 54, .95), rgba(19, 12, 29, .98));
}
.aside-art {
  display: grid;
  min-height: 158px;
  place-content: center;
  justify-items: center;
  border: 1px solid rgba(190, 133, 235, .18);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(133, 43, 201, .32), transparent 65%);
  color: #d8a8ff;
}
.aside-art > span { font-size: 46px; line-height: 1.2; text-shadow: 0 0 30px rgba(175, 85, 255, .55); }
.aside-art strong { margin-top: 8px; font-size: 20px; letter-spacing: .08em; }
.aside-art small { color: #9d83b5; font-size: 9px; letter-spacing: .16em; }
.aside-tip,
.aside-note {
  padding: 18px;
  border: 1px solid rgba(177, 134, 213, .16);
  border-radius: 15px;
  background: rgba(15, 9, 24, .35);
}
.tip-icon { color: var(--hi); font-size: 22px; }
.aside-tip h3 { margin: 6px 0 8px; color: var(--hi); font-size: 16px; }
.aside-tip p,
.aside-note small { color: var(--mu); font-size: 12px; line-height: 1.9; }
.aside-tip ul { display: grid; gap: 10px; margin: 16px 0 0; padding: 14px 18px 0 0; border-top: 1px solid rgba(177, 134, 213, .16); color: #d9c8e8; font-size: 12px; }
.aside-note strong { display: block; margin-bottom: 10px; color: var(--tx); font-size: 13px; }
.aside-note code { display: inline-block; margin: 0 0 8px 6px; padding: 4px 8px; border: 1px solid rgba(190, 133, 235, .2); border-radius: 7px; background: rgba(157, 78, 221, .1); color: var(--hi); direction: ltr; }
.aside-note small { display: block; }

@media (max-width: 900px) {
  .feature-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .welcome-layout { grid-template-columns: 1fr; }
  .welcome-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside-art { min-height: 100%; }
}
@media (max-width: 620px) {
  .landing-section { width: min(100% - 36px, 520px); padding: 62px 0; }
  .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .feature-card, .step-card { min-height: auto; padding: 22px; }
  .showcase-section { grid-template-columns: 1fr; }
  .showcase-panel { min-height: 250px; transform: none; }
  .showcase-body { min-height: 205px; }
  .showcase-content { padding: 22px; }
  .final-cta { width: calc(100% - 36px); margin-bottom: 54px; }
  .welcome-form { padding: 18px; }
  .welcome-aside { grid-template-columns: 1fr; }
  .aside-art { min-height: 130px; }
  .welcome-toggle { padding: 15px; }
  .welcome-heading h2 { font-size: 21px; }
}

/* ═══════════════════════════════════════════════════════════════
   Dashboard system refresh — Overview, Replies, Auto Role
   Existing element IDs and JavaScript event hooks are preserved.
   ═══════════════════════════════════════════════════════════════ */
.dash {
  grid-template-columns: 292px minmax(0, 1fr);
  align-items: stretch;
}
.sb {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 292px;
  min-height: 100vh;
  height: 100vh;
  padding: 24px 18px 18px;
  border-inline-end: 0;
  border-inline-start: 1px solid rgba(223,184,255,.12);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(157,78,221,.12), transparent 42%),
    linear-gradient(180deg, rgba(34,21,49,.99), rgba(19,12,29,.99));
}
.sb-brand {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:3px 2px 22px;
  border-bottom:1px solid rgba(223,184,255,.12);
}
.sb-logo {
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  color:var(--tx);
  text-decoration:none;
}
.sb-logo strong {display:block;font-size:17px;letter-spacing:-.04em;}
.sb-logo b {color:var(--hi);}
.sb-logo small {display:block;margin-top:2px;color:#9d8bac;font-size:10px;}
.brand-mark {
  display:grid;
  flex:0 0 42px;
  width:42px;
  height:42px;
  place-items:center;
  border:1px solid rgba(215,164,255,.35);
  border-radius:14px;
  background:linear-gradient(145deg,#974bc9,#54257f);
  color:#fff;
  font-size:24px;
  box-shadow:0 8px 24px rgba(126,49,170,.25);
}
.sidebar-status,
.panel-pill,
.section-count {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border:1px solid rgba(177,134,213,.18);
  border-radius:999px;
  background:rgba(157,78,221,.09);
  color:#d7b4f1;
  font-size:10px;
  white-space:nowrap;
}
.sidebar-status i,
.dashboard-account i {
  display:inline-block;
  width:7px;height:7px;
  border-radius:50%;
  background:#55c98c;
  box-shadow:0 0 10px rgba(85,201,140,.55);
}
.server-field {
  margin:22px 0 25px;
  padding:14px;
  border:1px solid rgba(177,134,213,.2);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(42,27,59,.85),rgba(28,18,42,.9));
}
.server-field label {
  display:block;
  margin:0 0 9px;
  color:#a894bd;
  font-size:11px;
}
.server-select-wrap {position:relative;}
.server-dot {
  position:absolute;
  z-index:1;
  top:50%;
  inset-inline-start:12px;
  transform:translateY(-50%);
  color:var(--hi);
  pointer-events:none;
}
.server-field select {
  width:100%;
  min-height:46px;
  margin:0;
  padding:9px 34px 9px 12px;
  border-color:rgba(177,134,213,.2);
  border-radius:11px;
  background:#170f22;
  font-size:12px;
}
.side-navigation {display:grid;gap:21px;}
.nav-group h4 {
  margin:0 8px 9px;
  color:#887397;
  font-size:10px;
  font-weight:700;
  letter-spacing:.06em;
}
.nv {
  display:flex;
  align-items:center;
  gap:11px;
  min-height:56px;
  margin:4px 0;
  padding:8px 11px;
  border-radius:13px;
  text-align:start;
  transform:none;
}
.nv:hover {transform:translateX(-2px);}
.nav-icon {
  display:grid;
  flex:0 0 34px;
  width:34px;height:34px;
  place-items:center;
  border:1px solid rgba(177,134,213,.14);
  border-radius:11px;
  background:rgba(255,255,255,.025);
  color:#bda3d4;
  font-size:17px;
}
.nv.on .nav-icon {
  border-color:rgba(208,158,245,.28);
  background:rgba(157,78,221,.2);
  color:#edccff;
}
.nav-copy {display:block;min-width:0;flex:1;}
.nav-copy strong {display:block;color:inherit;font-size:12px;font-weight:600;}
.nav-copy small {display:block;margin-top:3px;color:#9382a4;font-size:10px;font-weight:400;}
.nv.on .nav-copy small {color:#c5a7dc;}
.nav-arrow {color:#806d91;font-size:19px;line-height:1;}
.nv.on .nav-arrow {color:#d6a6fa;}
.sidebar-footer {
  display:grid;
  gap:14px;
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid rgba(223,184,255,.12);
}
.sidebar-help {
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid rgba(177,134,213,.14);
  border-radius:13px;
  background:rgba(157,78,221,.06);
}
.sidebar-help > span {
  display:grid;
  flex:0 0 30px;
  width:30px;height:30px;
  place-items:center;
  border-radius:10px;
  background:rgba(157,78,221,.16);
  color:var(--hi);
}
.sidebar-help strong {display:block;color:#e9dcf4;font-size:11px;}
.sidebar-help small {display:block;margin-top:3px;color:#9e8bab;font-size:9px;line-height:1.7;}
.logout-btn {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:11px 13px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:#b9a8c8;
  font:inherit;
  font-size:12px;
  text-align:start;
  cursor:pointer;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.logout-btn > span {font-size:17px;color:#c79be8;}
.logout-btn:hover {border-color:rgba(177,134,213,.15);background:rgba(157,78,221,.1);color:#fff;}

.main {
  width:100%;
  max-width:none;
  min-width:0;
  padding:clamp(26px,4vw,54px) clamp(24px,4.4vw,64px) 70px;
}
.dashboard-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:34px;
  padding-bottom:17px;
  border-bottom:1px solid rgba(177,134,213,.13);
}
.dashboard-topbar .eyebrow {margin:0 0 3px;font-size:10px;}
.dashboard-topbar p {margin:0;color:#9b89ad;font-size:11px;}
.dashboard-topbar p span {padding:0 6px;color:#695577;}
.dashboard-account {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid rgba(177,134,213,.16);
  border-radius:999px;
  background:rgba(27,18,40,.7);
  color:#c7b5d7;
  font-size:10px;
  white-space:nowrap;
}
.overview-heading,
.section-page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:26px;
}
.overview-heading h2,
.section-page-heading h2 {margin:0 0 5px;font-size:30px;}
.overview-heading .sub,
.section-page-heading .sub {margin:0;max-width:680px;}
.overview-orbit {
  display:grid;
  flex:0 0 110px;
  width:110px;height:110px;
  place-content:center;
  justify-items:center;
  border:1px solid rgba(190,133,235,.2);
  border-radius:50%;
  background:radial-gradient(circle,rgba(157,78,221,.22),rgba(157,78,221,.025) 68%);
  box-shadow:0 0 50px rgba(116,45,163,.12);
}
.overview-orbit span {color:#ddb2ff;font-size:43px;line-height:1.1;}
.overview-orbit small {margin-top:5px;color:#a58cb9;font-size:8px;letter-spacing:.1em;}
.overview-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  overflow:hidden;
  position:relative;
  min-height:182px;
  margin-bottom:38px;
  padding:28px 34px;
  border:1px solid rgba(192,135,231,.27);
  border-radius:21px;
  background:
    radial-gradient(ellipse at 10% 0%,rgba(185,108,239,.2),transparent 45%),
    linear-gradient(115deg,#28173a,#1b1028 72%);
  box-shadow:0 18px 44px rgba(0,0,0,.13);
}
.overview-banner::after {
  content:"";
  position:absolute;
  width:230px;height:230px;
  inset-inline-end:9%;
  top:-120px;
  border:1px solid rgba(211,170,244,.15);
  border-radius:50%;
  box-shadow:0 0 0 22px rgba(211,170,244,.025),0 0 0 46px rgba(211,170,244,.02);
}
.banner-kicker {color:#d5a7f2;font-size:10px;font-weight:700;letter-spacing:.06em;}
.overview-banner h3 {position:relative;z-index:1;margin:8px 0;color:#fbf6ff;font-size:22px;}
.overview-banner p {position:relative;z-index:1;max-width:590px;margin:0;color:#b9a8ca;font-size:12px;line-height:2;}
.banner-emblem {
  position:relative;z-index:1;
  display:grid;flex:0 0 78px;width:78px;height:78px;
  place-items:center;
  border:1px solid rgba(222,180,255,.3);
  border-radius:24px;
  background:linear-gradient(145deg,rgba(169,88,224,.32),rgba(80,40,112,.28));
  color:#e8c8ff;font-size:45px;
  box-shadow:0 0 40px rgba(157,78,221,.15);
}
.overview-section-heading {
  display:flex;align-items:end;justify-content:space-between;gap:14px;
  margin-bottom:17px;
}
.overview-section-heading h3 {margin:0;color:#f3eaff;font-size:18px;}
.overview-section-heading p {margin:4px 0 0;color:#a896b9;font-size:11px;}
.section-count {font-size:9px;}
.overview-cards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.overview-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:244px;
  padding:21px;
  border:1px solid rgba(177,134,213,.2);
  border-radius:18px;
  background:linear-gradient(155deg,rgba(39,25,56,.96),rgba(23,15,35,.98));
  color:var(--tx);
  font:inherit;
  text-align:start;
  cursor:pointer;
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease,background .25s ease;
}
.overview-card:hover {
  transform:translateY(-4px);
  border-color:rgba(193,134,236,.53);
  background:linear-gradient(155deg,rgba(49,29,68,.98),rgba(26,16,39,.98));
  box-shadow:0 18px 40px rgba(0,0,0,.16),0 0 26px rgba(145,69,195,.09);
}
.overview-card-icon {
  display:grid;width:42px;height:42px;place-items:center;
  border:1px solid rgba(190,133,235,.22);
  border-radius:13px;background:rgba(157,78,221,.13);
  color:#e4c2ff;font-size:21px;
}
.overview-card-tag {margin-top:17px;color:#a989c1;font-size:9px;font-weight:700;letter-spacing:.13em;direction:ltr;}
.overview-card h3 {margin:4px 0 7px;color:#f8f1ff;font-size:17px;}
.overview-card p {margin:0;color:#b4a3c4;font-size:11px;line-height:1.95;}
.overview-card-action {
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  width:100%;margin-top:auto;padding-top:17px;
  color:#d5a8f3;font-size:11px;font-weight:600;
}
.overview-card-action b {font-size:17px;transition:transform .2s ease;}
.overview-card:hover .overview-card-action b {transform:translateX(-4px);}
.overview-footnote {
  display:flex;align-items:center;gap:9px;
  margin-top:20px;padding:13px 16px;
  border:1px solid rgba(177,134,213,.13);
  border-radius:12px;background:rgba(157,78,221,.045);
  color:#9f8bac;font-size:10px;
}
.overview-footnote span {color:#cf9df4;font-size:16px;}

.section-page-heading {align-items:center;margin-bottom:30px;}
.section-page-heading h2 {font-size:30px;}
.section-page-heading .eyebrow {margin-bottom:5px;}
.heading-icon {box-shadow:0 8px 24px rgba(123,52,171,.15);}
.feature-workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  align-items:start;
  gap:20px;
}
.feature-main-panel {
  min-width:0;
  padding:clamp(21px,3vw,30px);
  border:1px solid rgba(177,134,213,.2);
  border-radius:21px;
  background:linear-gradient(145deg,rgba(34,21,49,.96),rgba(21,13,32,.98));
  box-shadow:0 18px 48px rgba(0,0,0,.13);
}
.panel-heading {
  display:flex;align-items:flex-start;justify-content:space-between;gap:15px;
  margin-bottom:25px;padding-bottom:19px;
  border-bottom:1px solid rgba(177,134,213,.13);
}
.panel-heading h3 {margin:0 0 5px;color:#f7efff;font-size:17px;}
.panel-heading p {margin:0;color:#a795b8;font-size:11px;line-height:1.8;}
.panel-pill {font-size:9px;}
.reply-column-head {
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr) 76px;
  gap:10px;
  margin:0 0 10px;
  padding:0 6px;
  color:#9e8bac;
  font-size:10px;
}
.replies-list {display:grid;gap:12px;}
#rl .row {
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr) 76px;
  align-items:center;
  gap:10px;
  margin:0;
  padding:11px;
  border:1px solid rgba(177,134,213,.15);
  border-radius:14px;
  background:rgba(13,8,21,.35);
  animation:fade-up .3s var(--ease-out) both;
}
#rl .row input {
  min-width:0;
  min-height:48px;
  padding:10px 12px;
  border-radius:10px;
  font-size:12px;
}
#rl .row .btn {
  min-height:46px;
  padding:8px 12px;
  border-color:rgba(203,107,147,.22);
  background:rgba(133,45,86,.12);
  color:#e5a8c3;
  font-size:11px;
}
#rl .row .btn:hover {
  border-color:rgba(221,119,163,.5);
  background:rgba(133,45,86,.2);
  color:#ffd8e8;
}
.panel-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:13px;
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid rgba(177,134,213,.13);
}
.add-reply-btn {
  display:inline-flex;align-items:center;gap:8px;
  min-height:44px;
  border-style:dashed;
  border-color:rgba(190,133,235,.35);
  background:rgba(157,78,221,.08);
  color:#e2c4fa;
  font-size:11px;
}
.add-reply-btn > span {font-size:18px;line-height:1;}
.save-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.save-actions .sv {min-height:45px;padding-inline:24px;font-size:12px;}
.save-actions .st {margin:0;font-size:11px;}
.settings-aside {
  display:grid;
  gap:14px;
  padding:14px;
  border:1px solid rgba(177,134,213,.19);
  border-radius:20px;
  background:linear-gradient(165deg,rgba(35,19,54,.95),rgba(19,12,29,.98));
}
.settings-aside .aside-art {min-height:140px;}
.replies-art,
.roles-art {
  background:
    radial-gradient(circle at 50% 50%,rgba(153,75,210,.25),transparent 68%),
    rgba(13,8,21,.34);
}
.replies-art > span {font-size:42px;}
.settings-aside .aside-tip {padding:16px;}
.settings-aside .aside-tip p {font-size:11px;}
.settings-aside .aside-tip ul {font-size:11px;}
.settings-aside .aside-note {padding:15px;}
.settings-aside .aside-note small {font-size:11px;}
.role-main-panel {min-height:440px;}
.role-select-card {
  display:flex;align-items:center;gap:15px;
  margin-top:8px;padding:18px;
  border:1px solid rgba(177,134,213,.17);
  border-radius:15px;background:rgba(13,8,21,.34);
}
.role-select-icon {
  display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;
  border:1px solid rgba(190,133,235,.24);
  border-radius:13px;background:rgba(157,78,221,.14);
  color:#e1baff;font-size:24px;
}
.role-select-content {min-width:0;flex:1;}
.role-select-content label {display:block;margin:0 0 8px;color:#ded0eb;font-size:12px;}
.role-select-content select {min-height:48px;margin:0;font-size:12px;}
.role-select-content small {display:block;margin-top:8px;color:#9987a9;font-size:10px;line-height:1.8;}
.permission-callout {
  display:flex;align-items:flex-start;gap:13px;
  margin-top:19px;padding:17px;
  border:1px solid rgba(212,164,91,.2);
  border-radius:14px;background:rgba(137,91,32,.08);
}
.permission-callout > span {
  display:grid;flex:0 0 25px;width:25px;height:25px;place-items:center;
  border-radius:50%;background:rgba(212,164,91,.17);
  color:#f0c98d;font-weight:700;
}
.permission-callout strong {display:block;margin-bottom:5px;color:#f1d4a7;font-size:12px;}
.permission-callout p {margin:0;color:#bca98d;font-size:11px;line-height:1.9;}
.role-actions {margin-top:32px;}
.role-save-caption {color:#9684a6;font-size:10px;}
.role-aside .aside-art > span {font-size:52px;}

@media (max-width:1120px) {
  .dash {grid-template-columns:260px minmax(0,1fr);}
  .sb {width:260px;padding-inline:14px;}
  .feature-workspace {grid-template-columns:minmax(0,1fr) 250px;}
  .overview-cards {gap:12px;}
  .overview-card {padding:17px;min-height:250px;}
}
@media (max-width:900px) {
  .dash {grid-template-columns:1fr;}
  .sb {
    position:relative;top:auto;width:100%;height:auto;min-height:0;
    padding:15px 18px 12px;border-inline:0;
    border-bottom:1px solid rgba(223,184,255,.12);
  }
  .sb-brand {padding-bottom:13px;}
  .server-field {margin:13px 0;padding:10px;}
  .side-navigation {grid-template-columns:1fr 1fr;gap:10px;}
  .nav-group h4 {margin-top:5px;}
  .nav-group .nv {width:100%;}
  .sidebar-footer {margin-top:12px;padding-top:12px;grid-template-columns:1fr auto;align-items:center;}
  .sidebar-help {max-width:340px;}
  .logout-btn {width:auto;}
  .main {padding:25px 22px 54px;}
  .feature-workspace {grid-template-columns:1fr;}
  .settings-aside {grid-template-columns:repeat(2,minmax(0,1fr));}
  .settings-aside .aside-art {grid-row:span 2;height:100%;}
}
@media (max-width:620px) {
  .main {padding:21px 15px 44px;}
  .dashboard-topbar {align-items:flex-start;margin-bottom:24px;}
  .dashboard-account {font-size:9px;padding:7px 9px;}
  .overview-heading {align-items:flex-start;}
  .overview-heading h2,.section-page-heading h2 {font-size:25px;}
  .overview-orbit {flex-basis:76px;width:76px;height:76px;}
  .overview-orbit span {font-size:32px;}
  .overview-banner {min-height:0;padding:22px 19px;}
  .overview-banner h3 {font-size:18px;}
  .banner-emblem {flex-basis:52px;width:52px;height:52px;border-radius:17px;font-size:32px;}
  .overview-section-heading {align-items:flex-start;}
  .overview-cards {grid-template-columns:1fr;}
  .overview-card {min-height:0;padding:19px;}
  .overview-card p {font-size:12px;}
  .section-page-heading {align-items:flex-start;}
  .section-page-heading .heading-icon {width:42px;height:42px;flex-basis:42px;}
  .feature-main-panel {padding:18px 14px;}
  .panel-heading {flex-direction:column;align-items:flex-start;margin-bottom:19px;}
  .reply-column-head {display:none;}
  #rl .row {grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:10px;gap:8px;}
  #rl .row input {grid-column:span 1;font-size:11px;}
  #rl .row .btn {grid-column:span 2;width:100%;min-height:38px;}
  .panel-actions {align-items:stretch;flex-direction:column;}
  .panel-actions > .btn,.panel-actions .save-actions,.panel-actions .save-actions .sv {width:100%;}
  .save-actions {align-items:stretch;}
  .settings-aside {grid-template-columns:1fr;}
  .settings-aside .aside-art {grid-row:auto;min-height:125px;}
  .role-select-card {align-items:flex-start;padding:14px;}
  .role-select-icon {flex-basis:37px;width:37px;height:37px;}
  .role-actions {align-items:stretch;}
  .role-save-caption {line-height:1.7;}
  .role-actions .save-actions {width:100%;}
  .sidebar-footer {grid-template-columns:1fr;gap:8px;}
  .sidebar-help {max-width:none;}
  .logout-btn {width:100%;}
}
@media (max-width:420px) {
  .sb-brand {align-items:flex-start;}
  .sidebar-status {padding:6px 8px;}
  .side-navigation {grid-template-columns:1fr;}
  .nav-group .nv {min-height:50px;}
  .overview-heading {gap:8px;}
  .overview-orbit {flex-basis:65px;width:65px;height:65px;}
  .dashboard-account {max-width:112px;overflow:hidden;text-overflow:ellipsis;}
  .role-select-card {flex-direction:column;}
  .role-select-content {width:100%;}
}
