/* ==========================================================================
   MINIMALIST DISCORD ADMIN PANEL (NO ANIMATIONS, CLEAN, CRISP, EASY ON EYES)
   ========================================================================== */
:root {
  --bg-sidebar: #18191c;
  --bg-main: #1e1f22;
  --bg-panel: #232428;
  --bg-card: #2b2d31;
  --bg-chat: #2b2d31;
  --bg-input: #383a40;
  --bg-hover: #35373c;
  --bg-active: #393c49;

  --text-primary: #f2f3f5;
  --text-secondary: #b5bac1;
  --text-muted: #949ba4;

  --blurple: #5865f2;
  --blurple-hover: #4752c4;
  --green: #23a55a;
  --red: #da373c;
  --border: #313338;
  --border-light: rgba(255, 255, 255, 0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: none !important;
  animation: none !important;
}

[v-cloak] {
  display: none !important;
}

html, body, #app {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #1a1b1e;
  border-radius: 3px;
}

/* Auth Screens */
.center-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 14px;
}

.auth-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.auth-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Main App Layout */
.app-layout {
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 225px;
  min-width: 225px;
  height: 100%;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.server-pill-wrap {
  padding: 4px 12px 12px;
}

.server-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.discord-mini-badge {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--blurple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.server-pill-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-menu {
  flex: 1;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.menu-item {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.menu-item:hover {
  background: var(--bg-hover);
  color: #fff;
}

.menu-item.active {
  background: var(--bg-active);
  color: #fff;
  font-weight: 600;
}

.sidebar-user {
  padding: 12px;
  border-top: 1px solid var(--border-light);
  background: #141518;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
}

.user-meta {
  overflow: hidden;
}

.user-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.user-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-logout:hover {
  background: var(--bg-hover);
  color: #fff;
}

/* Main Area */
.main-area {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 52px;
  min-height: 52px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-light);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

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

.topbar-server {
  color: var(--text-primary);
  font-size: 0.92rem;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #23a55a;
  font-weight: 600;
}

.dot-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23a55a;
}

.topbar-latency {
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.topbar-sep {
  color: var(--text-muted);
}

.workspace {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Chat & Channels Layout (1:1 Like Screenshot) */
.chat-layout {
  flex: 1;
  min-height: 0;
  padding: 16px;
  display: flex;
  gap: 16px;
}

.channels-panel {
  width: 230px;
  min-width: 230px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.channels-header {
  padding: 14px 14px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.channels-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.channel-row {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 7px 10px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-align: left;
}

.channel-row:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.channel-row.active {
  background: var(--bg-active);
  color: #fff;
  font-weight: 600;
}

.hash {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
}

.ch-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-panel {
  flex: 1;
  min-width: 0;
  background: var(--bg-chat);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-header-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-empty {
  margin: auto;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.msg-item {
  padding: 6px 8px;
  border-radius: 6px;
}

.msg-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.msg-reply-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-left: 18px;
  margin-bottom: 3px;
}

.reply-elbow {
  width: 18px;
  height: 8px;
  border-left: 2px solid #4e5058;
  border-top: 2px solid #4e5058;
  border-top-left-radius: 4px;
}

.reply-author {
  font-weight: 600;
  color: var(--text-secondary);
}

.reply-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 480px;
}

.msg-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e1f22;
}

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

.msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.msg-badge {
  background: var(--blurple);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}

.msg-author {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.msg-author.bot-color {
  color: #99aaff;
}

.msg-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.msg-content {
  color: var(--text-primary);
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-embed-box {
  margin-top: 6px;
  background: #232428;
  border-left: 4px solid #a855f7;
  border-radius: 4px;
  padding: 10px 12px;
  max-width: 460px;
}

.msg-embed-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.86rem;
  margin-bottom: 4px;
}

.msg-embed-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
  white-space: pre-wrap;
}

.msg-embed-img {
  margin-top: 6px;
  max-width: 320px;
  max-height: 150px;
  border-radius: 4px;
  display: block;
}

.msg-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.msg-act-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.msg-act-btn:hover {
  background: var(--bg-hover);
  color: #fff;
}

.msg-act-btn.danger:hover {
  background: var(--red);
  color: #fff;
}

.replying-bar {
  background: #202226;
  border-top: 1px solid var(--border-light);
  padding: 7px 18px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.replying-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
}

.replying-close:hover {
  color: #fff;
}

.chat-input-wrap {
  padding: 12px 16px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-light);
}

.chat-input-box {
  background: var(--bg-input);
  border-radius: 8px;
  padding: 6px 8px 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plus-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4e5058;
  color: #232428;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-text-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
}

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

.btn-send-discord {
  background: var(--blurple);
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-send-discord:hover {
  background: var(--blurple-hover);
}

/* Scrollable Module Pages */
.page-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 14px;
  cursor: pointer;
}

.quick-card:hover {
  background: var(--bg-hover);
}

.quick-name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.quick-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Dashboard Activity Chart & Bottom Stats */
/* Dashboard Minimalist Charts */
.tv-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 1280px) {
  .tv-charts-grid {
    grid-template-columns: 1fr;
  }
}

.tv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tv-symbol-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}

.tv-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.tv-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.tv-title-group svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.tv-symbol-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tv-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.tv-big-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
}

.tv-price-change {
  font-size: 0.74rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

.tv-price-change.up {
  color: #23a55a;
}

.tv-price-change.down {
  color: #f23f43;
}

.tv-hover-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.tv-canvas-wrap {
  position: relative;
  width: 100%;
  background: #1e1f22;
  cursor: crosshair;
  user-select: none;
}

.tv-svg {
  width: 100%;
  height: auto;
  display: block;
}

.card-title-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-icon svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.chart-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.period-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e1f22;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.period-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.period-btn:hover {
  color: #fff;
  background: var(--bg-hover);
}

.period-btn.active {
  background: var(--blurple);
  color: #fff;
}

.period-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-pill {
  background: #232428;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kpi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.kpi-val {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.chart-wrap {
  background: #1e1f22;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 14px 16px 10px;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.legend-box {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.activity-svg {
  width: 100%;
  height: 255px;
  display: block;
}

.bottom-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-empty {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 16px 0;
  text-align: center;
}

.rank-row {
  margin-bottom: 11px;
}

.rank-row:last-child {
  margin-bottom: 0;
}

.rank-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.rank-name {
  color: #fff;
  font-weight: 600;
}

.rank-count {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.rank-bar-bg {
  width: 100%;
  height: 7px;
  background: #1e1f22;
  border-radius: 4px;
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.member-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  background: #232428;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 8px;
}

.member-stat-row:last-child {
  margin-bottom: 0;
}

.member-rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b9dff;
  width: 22px;
}

.member-stat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.member-stat-info {
  flex: 1;
  min-width: 0;
}

.member-stat-name {
  font-size: 0.83rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-stat-sub {
  font-size: 0.71rem;
  color: var(--text-muted);
}

.member-stat-badge {
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #b8c2ff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.member-stat-badge.green {
  background: rgba(35, 165, 90, 0.16);
  border-color: rgba(35, 165, 90, 0.4);
  color: #4ade80;
}

.module-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.module-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.module-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.module-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1100px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid, .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input, .textarea, .input-select {
  width: 100%;
  background: #1e1f22;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 9px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.input:focus, .textarea:focus, .input-select:focus {
  border-color: var(--blurple);
}

.input-select {
  width: auto;
  min-width: 190px;
}

.textarea {
  resize: vertical;
  line-height: 1.45;
}

.gif-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.gif-preset-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 5px 10px;
  color: var(--text-secondary);
  font-size: 0.76rem;
  cursor: pointer;
}

.gif-preset-btn:hover {
  background: var(--bg-hover);
  color: #fff;
}

.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.subtab-btn {
  background: #1e1f22;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 6px 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.subtab-btn.active {
  background: var(--blurple);
  color: #fff;
  border-color: var(--blurple);
}

.role-opt-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-opt-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Buttons */
.btn {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.btn-primary, .btn-discord {
  background: var(--blurple);
  color: #fff;
}

.btn-primary:hover, .btn-discord:hover {
  background: var(--blurple-hover);
}

.btn-secondary {
  background: var(--bg-panel);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-danger {
  background: rgba(218, 55, 60, 0.18);
  color: #f87171;
  border-color: rgba(218, 55, 60, 0.35);
}

.btn-danger:hover {
  background: var(--red);
  color: #fff;
}

/* Discord Live Preview Card */
.discord-preview-box {
  background: #313338;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
}

.preview-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.d-msg {
  display: flex;
  gap: 12px;
}

.d-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

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

.d-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.d-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.d-tag {
  background: var(--blurple);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

.d-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.d-embed {
  background: #2b2d31;
  border-left: 4px solid #a855f7;
  border-radius: 4px;
  padding: 12px;
}

.d-embed-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.d-embed-desc {
  color: #dbdee1;
  font-size: 0.82rem;
  white-space: pre-wrap;
  line-height: 1.45;
}

.d-field {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.d-field-name {
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
}

.d-field-val {
  font-size: 0.76rem;
  color: #dbdee1;
  white-space: pre-wrap;
}

.d-embed-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 10px;
  display: block;
}

.d-selects {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.d-select-mock {
  background: #1e1f22;
  border: 1px solid #3f4147;
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}

.d-btns {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

.d-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: #4e5058;
}

.d-btn.green {
  background: var(--green);
}

.console-box {
  background: #111214;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px;
  height: 360px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #b5bac1;
}

.console-line {
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.status-banner {
  position: fixed;
  bottom: 18px;
  right: 22px;
  background: #111214;
  border: 1px solid var(--blurple);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  z-index: 9999;
}

.status-banner.error {
  border-color: var(--red);
  color: #f87171;
}
