/* ============================================================================
 *  WEBNOVA STUDIO — MODERN DARK GLASS NEON STYLESHEET
 * ============================================================================ */

:root {
  --bg-deep: #05070e;
  --bg-surface: rgba(13, 18, 34, 0.62);
  --bg-surface-strong: rgba(11, 15, 29, 0.82);
  --bg-input: rgba(6, 9, 19, 0.78);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(0, 240, 255, 0.28);

  --neon-cyan: #00f0ff;
  --neon-violet: #8b5cf6;
  --neon-emerald: #10b981;
  --neon-rose: #f43f5e;
  --discord-blurple: #5865f2;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(5, 7, 14, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.45);
}

/* ============================================================================
 *  ANIMIERTER HINTERGRUND (AURORA + PARTIKEL-CANVAS + GRID)
 * ============================================================================ */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  animation: orbFloat 22s ease-in-out infinite alternate;
}

.orb-1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #00f0ff 0%, transparent 70%);
  top: -160px;
  left: -120px;
}

.orb-2 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -200px;
  right: -120px;
  animation-delay: -7s;
  animation-duration: 26s;
}

.orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  top: 42%;
  left: 48%;
  opacity: 0.16;
  animation-delay: -13s;
  animation-duration: 30s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -45px) scale(1.12); }
  100% { transform: translate(-45px, 55px) scale(0.95); }
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 35%, black 30%, transparent 88%);
}

/* ============================================================================
 *  GLASS PANEL BASIS
 * ============================================================================ */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

/* ============================================================================
 *  LOADING SCREEN
 * ============================================================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 45%, #0c1328 0%, #05070e 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.65s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 48px;
}

.loader-ring {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}

.loader-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2.5px;
  background: conic-gradient(from 0deg, transparent 15%, #00f0ff 55%, #a855f7 85%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 1.3s linear infinite;
}

.loader-logo {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.45));
  animation: pulseLogo 2s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.loader-brand {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
}

.loader-brand span {
  background: linear-gradient(90deg, #00f0ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.loader-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.loader-bar-track {
  width: 240px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 6px;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #00f0ff, #6366f1, #a855f7);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.7);
  transition: width 0.25s ease;
}

/* ============================================================================
 *  LOGIN VIEW
 * ============================================================================ */
.login-view {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 490px;
  padding: 42px 38px;
  text-align: center;
  overflow: hidden;
  animation: cardReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-glow-line {
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #a855f7, transparent);
}

.login-logo-wrap {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.18);
}

.login-logo {
  width: 52px;
  height: 52px;
}

.pill-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.09);
  border: 1px solid rgba(0, 240, 255, 0.24);
  margin-bottom: 14px;
}

.login-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.login-title span {
  background: linear-gradient(90deg, #00f0ff, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-desc {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 24px;
}

.login-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.mini-feature {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 99px;
}

.btn-discord-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-discord-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(88, 101, 242, 0.55);
  filter: brightness(1.07);
}

.oauth-hint {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fcd34d;
  font-size: 0.79rem;
  text-align: left;
}

.oauth-hint code {
  font-family: "JetBrains Mono", monospace;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
}

.demo-login-box {
  margin-top: 24px;
}

.divider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-bottom: 14px;
}

.divider-label::before,
.divider-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.demo-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.demo-btn {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-btn:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-1px);
}

/* ============================================================================
 *  APP SHELL & TOPBAR
 * ============================================================================ */
.app-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  gap: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-radius: 18px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 240, 255, 0.45);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.role-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.user-id {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}

.btn-ghost-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost-icon:hover {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.1);
}

/* ============================================================================
 *  WELCOME BANNER
 * ============================================================================ */
.main-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.welcome-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  overflow: hidden;
  border-left: 3px solid var(--role-accent, #00f0ff);
}

.welcome-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--role-glow, rgba(0, 240, 255, 0.12)) 0%, transparent 55%);
  pointer-events: none;
}

.welcome-content {
  position: relative;
  z-index: 1;
}

.welcome-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.live-clock {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.welcome-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.welcome-message {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.stat-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================================
 *  VORLAGEN-LEISTE
 * ============================================================================ */
.templates-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px;
}

.section-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
}

.section-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.template-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.template-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(13, 18, 34, 0.72);
  backdrop-filter: blur(14px);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.template-pill:hover {
  transform: translateY(-2px);
  border-color: var(--tpl-color, #00f0ff);
  box-shadow: 0 8px 22px -6px var(--tpl-color, rgba(0, 240, 255, 0.45));
}

.template-pill.active {
  background: color-mix(in srgb, var(--tpl-color, #00f0ff) 16%, rgba(10, 14, 28, 0.92));
  border-color: var(--tpl-color, #00f0ff);
  color: #fff;
  box-shadow: 0 0 22px -4px var(--tpl-color, rgba(0, 240, 255, 0.6));
}

/* ============================================================================
 *  WORKSPACE GRID (EDITOR + LIVE VORSCHAU)
 * ============================================================================ */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: start;
}

.editor-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-block {
  padding: 24px 26px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon {
  font-size: 1.05rem;
}

.card-header h3 {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
}

.card-subtext {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: -8px;
  margin-bottom: 18px;
}

.card-subtext code {
  font-family: "JetBrains Mono", monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 5px;
}

.tag-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 5px 11px;
  border-radius: 9px;
  white-space: nowrap;
}

.tag-accent {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
}

/* Form Elements */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid-author {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.req {
  color: var(--neon-rose);
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-field:focus {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.14);
  background: rgba(7, 11, 24, 0.95);
}

select.input-field {
  cursor: pointer;
}

.textarea-field {
  resize: vertical;
  min-height: 155px;
  line-height: 1.55;
}

.input-with-action {
  display: flex;
  gap: 8px;
}

.btn-inline {
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-inline:hover {
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.1);
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-swatch {
  width: 46px;
  height: 44px;
  padding: 3px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-input);
  cursor: pointer;
  flex-shrink: 0;
}

.color-swatch::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-swatch::-webkit-color-swatch {
  border: none;
  border-radius: 7px;
}

/* Markdown Toolbar */
.label-with-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.md-toolbar {
  display: flex;
  gap: 5px;
}

.md-btn {
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.md-btn:hover {
  border-color: rgba(0, 240, 255, 0.45);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

/* ============================================================================
 *  RECHTE SPALTE: LIVE DISCORD VORSCHAU
 * ============================================================================ */
.preview-sticky {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.preview-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--text-secondary);
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: blink 1.8s infinite;
}

.discord-preview-shell {
  padding: 22px;
  background: rgba(43, 45, 49, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-message {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: #070b14;
}

.dc-body {
  flex: 1;
  min-width: 0;
}

.dc-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 5px;
}

.dc-username {
  font-weight: 700;
  font-size: 0.98rem;
  color: #f2f3f5;
}

.dc-app-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background: #5865f2;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.dc-time {
  font-size: 0.74rem;
  color: #949ba4;
}

.dc-ping {
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.25);
  color: #c9cdfb;
  font-size: 0.86rem;
  font-weight: 600;
}

.dc-embed {
  background: #232428;
  border-left: 4px solid var(--embed-color, #10B981);
  border-radius: 6px;
  padding: 15px 16px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.dc-embed-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: #dbdee1;
  margin-bottom: 6px;
  opacity: 0.9;
}

.dc-embed-title {
  font-size: 1.03rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  word-wrap: break-word;
}

.dc-embed-desc {
  font-size: 0.89rem;
  color: #dbdee1;
  line-height: 1.5;
  word-wrap: break-word;
}

.dc-embed-desc strong {
  color: #ffffff;
  font-weight: 700;
}

.dc-embed-desc code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  background: #1e1f22;
  padding: 2px 5px;
  border-radius: 4px;
  color: #e2e8f0;
}

.dc-embed-desc a {
  color: #00a8fc;
  text-decoration: none;
}

.dc-embed-desc a:hover {
  text-decoration: underline;
}

.dc-embed-banner {
  margin-top: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.dc-embed-banner img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.dc-embed-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dc-embed-field-name {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #b5bac1;
  margin-bottom: 6px;
}

.dc-embed-field-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.dc-embed-field-value a {
  color: #00a8fc;
  text-decoration: none;
  font-weight: 600;
}

.dc-embed-field-value a:hover {
  text-decoration: underline;
}

.dc-link-sep {
  color: #949ba4;
}

.dc-embed-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.75rem;
  color: #949ba4;
}

/* ============================================================================
 *  ACTION BUTTONS
 * ============================================================================ */
.action-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-send-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #00d2ff 0%, #6366f1 55%, #a855f7 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-send-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 240, 255, 0.45);
  filter: brightness(1.08);
}

.btn-send-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn-secondary {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(13, 18, 34, 0.7);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(0, 240, 255, 0.4);
  color: #fff;
  background: rgba(0, 240, 255, 0.08);
}

/* ============================================================================
 *  FOOTER (MADE BY WEBNOVA + SUPPORT & TICKET LINKS)
 * ============================================================================ */
.site-footer {
  margin-top: 8px;
  padding: 16px 24px;
  border-radius: 18px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-brand strong {
  background: linear-gradient(90deg, #00f0ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.footer-logo {
  width: 26px;
  height: 26px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.footer-channel-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 240, 255, 0.45);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.footer-channel-accent {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
}

.footer-channel-accent:hover {
  border-color: #c084fc;
  color: #e9d5ff;
  background: rgba(139, 92, 246, 0.22);
}

/* ============================================================================
 *  TOAST NOTIFICATIONS
 * ============================================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 13px;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.success { border-left: 3px solid #10b981; }
.toast.error   { border-left: 3px solid #f43f5e; }
.toast.info    { border-left: 3px solid #00f0ff; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================================
 *  RESPONSIVE DESIGN
 * ============================================================================ */
@media (max-width: 1060px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .preview-sticky {
    position: static;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 14px;
  }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .topbar-right {
    justify-content: space-between;
  }
  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-grid-2,
  .form-grid-author,
  .secondary-actions {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 30px 22px;
  }
}
