:root {
  --bg: #1a1626;
  --bg-channel: #18141f;
  --bg-msg-hover: #221c30;
  --bar-bg: #2b2440;
  --bar-bar: #8b5cf6;
  --quote-bar: #ed4245;
  --text: #dcddde;
  --text-muted: #a39ec0;
  --author: #b388ff;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "gg sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.discord {
  max-width: 820px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(139, 92, 246, .08);
}

.channel {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-channel);
  border-bottom: 1px solid rgba(0,0,0,.4);
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.hash { color: var(--text-muted); font-size: 22px; font-weight: 600; }
.channel-name { font-weight: 700; color: #fff; }
.channel-topic { color: var(--text-muted); font-size: 13px; }

.messages { padding: 12px 20px 60px; }
.msg { padding: 6px 8px; border-radius: 6px; margin: 4px 0; }
.msg:hover { background: var(--bg-msg-hover); }
.msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.author { color: var(--author); font-weight: 600; }
.badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: .5px;
}
.time { color: var(--text-muted); font-size: 11px; }
.msg-body { color: var(--text); }
.num { color: var(--author); font-weight: 700; margin-right: 2px; }

.bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 4px;
  padding: 12px 14px;
  background: var(--bar-bg);
  border-left: 4px solid var(--bar-bar);
  border-radius: 0 6px 6px 0;
  transition: background .15s, border-color .15s;
}
.bar:focus-within { background: #322a4a; border-left-color: #a78bfa; }
.bar::before { content: attr(data-icon); opacity: .8; line-height: 1.6; }
.bar input,
.bar textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: none;
  overflow: hidden;
  min-height: 22px;
}
.bar input::placeholder,
.bar textarea::placeholder { color: var(--text-muted); font-style: italic; }

.divider {
  text-align: center;
  margin: 26px 0 14px;
  position: relative;
}
.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: rgba(139,92,246,.25);
}
.divider span {
  position: relative;
  background: var(--bg);
  padding: 0 14px;
  color: var(--author);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
}

.ticket {
  margin: 12px 0;
  padding: 12px 14px;
  background: #211b2e;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}
.ticket-red    { border-left-color: #ed4245; }
.ticket-orange { border-left-color: #faa61a; }
.ticket-green  { border-left-color: #57f287; }
.ticket-title { font-weight: 700; color: #fff; margin-bottom: 8px; }
.ticket-user { color: var(--text-muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.ticket-user .dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
}
.ticket-quote {
  margin: 8px 0;
  padding: 8px 12px;
  background: #1b1626;
  border-left: 3px solid var(--quote-bar);
  border-radius: 0 4px 4px 0;
  color: #cfd1f0;
  font-style: italic;
}

.submit-zone { margin-top: 30px; text-align: center; }
#submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
#submit:hover { background: var(--accent-hover); }
#submit:active { transform: translateY(1px); }
#submit:disabled { opacity: .5; cursor: not-allowed; }

.status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.status.ok  { color: #57f287; }
.status.err { color: #ed4245; }

#website {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}
