/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #0f1117;
  --surface:   #1a1d24;
  --surface2:  #22262f;
  --border:    #2e3340;
  --accent:    #5865f2;
  --accent-h:  #4752c4;
  --green:     #3ba55d;
  --red:       #ed4245;
  --text:      #e3e5e8;
  --text-muted:#72767d;
  --radius:    10px;
  --radius-sm: 6px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.5; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select { font: inherit; color: var(--text); }

/* ── Login ─────────────────────────────────────────────────────────────────── */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(ellipse at center, #1a1f35 0%, var(--bg) 70%); }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 48px 40px; text-align: center; width: 360px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.login-logo { margin-bottom: 20px; }
.login-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.login-sub { color: var(--text-muted); margin-bottom: 32px; font-size: 13px; }
.btn-discord { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: white; border-radius: var(--radius-sm); padding: 12px 24px; font-weight: 600; font-size: 15px; transition: background .15s; }
.btn-discord:hover { background: var(--accent-h); }

/* ── Header ────────────────────────────────────────────────────────────────── */
.header { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 24px; height: 52px; position: sticky; top: 0; z-index: 100; }
.header-left { display: flex; align-items: center; gap: 10px; }
.header-title { font-weight: 700; font-size: 15px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-username { font-weight: 600; font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--accent); font-weight: 700; font-size: 13px; }
.btn-logout { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 12px; font-size: 12px; transition: background .15s; }
.btn-logout:hover { background: var(--border); }

/* ── Main ──────────────────────────────────────────────────────────────────── */
.main { max-width: 960px; margin: 0 auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; }

/* ── Server Banner ─────────────────────────────────────────────────────────── */
.server-banner {
  background: linear-gradient(135deg, #1e2233 0%, #1a1d24 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.server-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88,101,242,.12) 0%, transparent 60%);
  pointer-events: none;
}
.server-banner-inner { display: flex; align-items: center; gap: 20px; padding: 20px 24px; position: relative; }

.server-icon-wrap { position: relative; flex-shrink: 0; }
.server-icon {
  width: 72px; height: 72px;
  border-radius: 24px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; color: white;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(88,101,242,.4);
  border: 3px solid rgba(255,255,255,.08);
}
.server-icon img { width: 100%; height: 100%; object-fit: cover; }
.server-online-dot {
  position: absolute; bottom: -2px; right: -2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg);
  box-shadow: 0 0 8px var(--green);
}
.server-online-dot.offline { background: var(--text-muted); box-shadow: none; }

.server-info { flex: 1; min-width: 0; }
.server-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-meta { color: var(--text-muted); font-size: 13px; }

.server-stats { display: flex; gap: 24px; }
.sstat { text-align: center; }
.sstat-val { font-size: 20px; font-weight: 800; }
.sstat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-top: 2px; }

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}
.tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background .15s, color .15s;
  text-align: center;
}
.tab:hover { background: var(--surface2); color: var(--text); }
.tab.active { background: var(--accent); color: white; }

.tab-panel { display: none; flex-direction: column; gap: 16px; }
.tab-panel.active { display: flex; }

/* ── Card ──────────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title { font-weight: 700; font-size: 15px; }
.card-footer { border-top: 1px solid var(--border); padding-top: 14px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } .server-stats { display: none; } .server-name { font-size: 18px; } }

/* ── Badge ─────────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface2); color: var(--text-muted); }
.badge-online  { background: rgba(59,165,93,.15); color: var(--green); }
.badge-offline { background: rgba(237,66,69,.15);  color: var(--red); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; background: var(--accent); color: white; transition: background .15s; }
.btn:hover { background: var(--accent-h); }
.btn:active { transform: scale(.97); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-green { background: var(--green); }
.btn-green:hover { background: #2d8f4e; }

/* ── Inputs ────────────────────────────────────────────────────────────────── */
.input { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text); outline: none; transition: border-color .15s; width: 100%; }
.input:focus { border-color: var(--accent); }
.input-sm { padding: 5px 10px; font-size: 13px; width: auto; }
.select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2372767d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }

/* ── Website list ──────────────────────────────────────────────────────────── */
.website-list { display: flex; flex-direction: column; gap: 8px; }
.website-item { display: flex; align-items: center; gap: 10px; background: var(--surface2); border-radius: var(--radius-sm); padding: 10px 14px; }
.site-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; transition: box-shadow .3s; }
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-red   { background: var(--red);   box-shadow: 0 0 8px var(--red); }
.site-name { font-weight: 600; flex: 1; }
.site-url  { color: var(--text-muted); font-size: 12px; }
.site-remove { color: var(--text-muted); font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.site-remove:hover { color: var(--red); background: rgba(237,66,69,.1); }

.add-form { display: flex; gap: 8px; flex-wrap: wrap; }
.add-form .input-sm { flex: 1; min-width: 100px; }

/* ── Play form ─────────────────────────────────────────────────────────────── */
.play-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.play-form .input:first-child { flex: 1; min-width: 200px; }

.channel-select-row { display: flex; gap: 8px; }
.channel-select-row .input { flex: 1; }

/* ── Music ─────────────────────────────────────────────────────────────────── */
.np-row { display: flex; align-items: center; gap: 14px; }
.np-thumbnail { width: 60px; height: 60px; border-radius: var(--radius-sm); background: var(--surface2); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.np-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.np-info { flex: 1; min-width: 0; }
.np-title   { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-channel { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.np-vc      { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

.music-progress-bar { width: 100%; height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; position: relative; }
.music-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.5s linear; }

.controls-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctrl-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface2); color: var(--text); transition: background .15s, color .15s; }
.ctrl-btn:hover { background: var(--border); color: white; }
.ctrl-main { background: var(--accent); color: white; width: 46px; height: 46px; }
.ctrl-main:hover { background: var(--accent-h); }
.ctrl-danger:hover { color: var(--red); background: rgba(237,66,69,.1); }

.volume-row { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.slider { -webkit-appearance: none; width: 110px; height: 4px; background: var(--border); border-radius: 2px; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; }
.volume-label { color: var(--text-muted); font-size: 12px; width: 34px; }

.queue-list { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.queue-item { display: flex; align-items: center; gap: 10px; background: var(--surface2); border-radius: var(--radius-sm); padding: 7px 14px; font-size: 13px; transition: background .15s; }
.queue-item:hover { background: #2a2e38; }
.queue-pos  { color: var(--text-muted); width: 20px; flex-shrink: 0; }
.queue-thumb-sm { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: var(--bg); }
.queue-title { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-dur   { color: var(--text-muted); font-size: 12px; }

/* ── Warframe ──────────────────────────────────────────────────────────────── */
.warframe-list { display: flex; flex-direction: column; gap: 8px; }
.wf-item { display: flex; align-items: center; gap: 14px; background: var(--surface2); border-radius: var(--radius-sm); padding: 12px 16px; }
.wf-icon  { font-size: 22px; flex-shrink: 0; }
.wf-body  {}
.wf-name  { font-weight: 700; font-size: 13px; }
.wf-state { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* ── Settings ──────────────────────────────────────────────────────────────── */
.settings-group { display: flex; flex-direction: column; gap: 6px; }
.settings-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 700; }
.settings-msg   { font-size: 13px; min-height: 18px; }
.hint-text      { color: var(--text-muted); font-size: 13px; }

.tz-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--surface2); border: 1px solid var(--border); border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--text-muted); transition: all .15s; cursor: pointer; }
.chip:hover { background: var(--accent); border-color: var(--accent); color: white; }

/* ── Progress Bar ──────────────────────────────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform .4s ease, opacity .3s;
  border-radius: 0 2px 2px 0;
}
#progress-bar.pb-loading { opacity: 1; transform: scaleX(0.65); transition: transform 1.8s ease; }
#progress-bar.pb-done    { opacity: 1; transform: scaleX(1);    transition: transform .15s ease; }
#progress-bar.pb-fade    { opacity: 0; transform: scaleX(1);    transition: opacity .4s; }

/* ── Skeleton ──────────────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skel {
  background: linear-gradient(90deg, var(--surface2) 25%, #252830 50%, var(--surface2) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: 4px;
  display: block;
}
.skel-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.skel-info { flex: 1; display: flex; flex-direction: column; gap: 0; }

/* ── Logs ──────────────────────────────────────────────────────────────────── */
.logs-container { display: flex; flex-direction: column; gap: 4px; max-height: 600px; overflow-y: auto; font-family: monospace; background: var(--bg); padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.log-entry { display: flex; gap: 10px; font-size: 13px; padding: 4px 6px; border-radius: 4px; transition: background .15s; }
.log-entry:hover { background: var(--surface2); }
.log-time { color: var(--text-muted); flex-shrink: 0; }
.log-module { color: var(--accent); font-weight: bold; width: 140px; flex-shrink: 0; }
.log-message { color: var(--text); flex: 1; word-break: break-word; }

/* ── Emoji Picker ──────────────────────────────────────────────────────────── */
.emoji-picker-body { padding: 16px 20px; overflow-y: auto; max-height: 400px; display: flex; flex-direction: column; gap: 14px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; }
.emoji-btn { width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; transition: background .15s, transform .1s; background: var(--surface2); border: 1px solid transparent; }
.emoji-btn:hover { background: var(--surface); border-color: var(--accent); transform: scale(1.1); }
.emoji-btn img { width: 24px; height: 24px; object-fit: contain; }

/* ── Module Grid ───────────────────────────────────────────────────────────── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .module-grid { grid-template-columns: 1fr; } }

/* ── Module Tile ───────────────────────────────────────────────────────────── */
.module-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.module-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(88,101,242,0);
  transition: background .15s;
}
.module-tile:hover { border-color: rgba(88,101,242,.5); background: #1c1f2a; box-shadow: 0 4px 20px rgba(88,101,242,.12); }
.module-tile:hover::after { background: rgba(88,101,242,.04); }
.module-tile:active { transform: scale(.975); }
.module-tile.skeleton-tile { cursor: default; pointer-events: none; }
.module-tile.skeleton-tile:hover { border-color: var(--border); background: var(--surface); box-shadow: none; }

.module-tile-emoji { font-size: 30px; flex-shrink: 0; line-height: 1; }
.module-tile-info  { flex: 1; min-width: 0; }
.module-tile-name  { font-weight: 700; font-size: 14px; }
.module-tile-meta  { color: var(--text-muted); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module-tile-chevron {
  flex-shrink: 0; color: var(--text-muted);
  transition: transform .15s, color .15s;
}
.module-tile:hover .module-tile-chevron { color: var(--accent); transform: translateX(2px); }

/* ── Module Modal Body ─────────────────────────────────────────────────────── */
.module-modal-body {
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(90vh - 110px);
}

/* ── Modules ───────────────────────────────────────────────────────────────── */
.module-header { display: flex; align-items: center; justify-content: space-between; }
.module-info   { display: flex; align-items: flex-start; gap: 14px; }
.module-icon   { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.module-title  { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.module-desc   { color: var(--text-muted); font-size: 13px; }

.module-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 32px;
}
.module-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
}
.module-row-main  { flex: 1; min-width: 0; overflow: hidden; }
.module-row-label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module-row-sub   { color: var(--text-muted); font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module-row-badge { background: rgba(88,101,242,.15); color: var(--accent); border-radius: 99px; padding: 2px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.module-row-badge.green { background: rgba(59,165,93,.15); color: var(--green); }
.module-row-badge.red   { background: rgba(237,66,69,.15);  color: var(--red); }

/* Toggle switch */
.toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }

.module-add { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; }
.module-add .input-sm { min-width: 0; }

.module-remove { color: var(--text-muted); padding: 2px 6px; border-radius: var(--radius-sm); font-size: 16px; flex-shrink: 0; transition: color .15s, background .15s; }
.module-remove:hover { color: var(--red); background: rgba(237,66,69,.1); }

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title  { font-weight: 700; font-size: 16px; }
.modal-close  { font-size: 22px; color: var(--text-muted); transition: color .15s; }
.modal-close:hover { color: var(--text); }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* ── Embed Editor ──────────────────────────────────────────────────────────── */
.embed-editor-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
}
@media (max-width: 680px) { .embed-editor-layout { grid-template-columns: 1fr; } }

.embed-form { display: flex; flex-direction: column; gap: 14px; }
.embed-row-2 { display: flex; gap: 14px; flex-wrap: wrap; }

.color-row    { display: flex; align-items: center; gap: 10px; }
.color-picker { width: 44px; height: 32px; border: none; background: none; cursor: pointer; padding: 0; border-radius: var(--radius-sm); }
.color-chips  { display: flex; gap: 6px; flex-wrap: wrap; }
.color-chip   { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: border-color .15s; }
.color-chip:hover { border-color: white; }

/* Embed fields editor */
.em-field-row { display: flex; gap: 6px; align-items: center; }
.em-field-row .input { flex: 1; }

/* Discord Embed Preview */
.embed-preview-wrap { position: sticky; top: 0; }
.embed-preview {
  display: flex;
  background: #2b2d31;
  border-radius: 4px;
  overflow: hidden;
  min-height: 60px;
}
.em-accent { width: 4px; flex-shrink: 0; background: #5865f2; }
.em-body   { padding: 12px 14px; flex: 1; min-width: 0; }
.em-title  { font-weight: 700; font-size: 14px; color: #e3e5e8; margin-bottom: 4px; }
.em-desc   { font-size: 13px; color: #dbdee1; white-space: pre-wrap; line-height: 1.4; }
.em-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.em-field  { min-width: 120px; }
.em-field-name  { font-size: 12px; font-weight: 700; color: #e3e5e8; }
.em-field-value { font-size: 13px; color: #dbdee1; }
.em-img    { max-width: 100%; border-radius: 4px; margin-top: 8px; display: block; }
.em-footer { font-size: 11px; color: #87898c; margin-top: 10px; }

/* ── Bot Personalizer ──────────────────────────────────────────────────────── */
.bot-personalizer {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 760px) { .bot-personalizer { grid-template-columns: 1fr; } }

.bot-form-col, .bot-preview-col { display: flex; flex-direction: column; gap: 16px; }

.bot-avatar-upload {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
  transition: border-color .15s, background .15s;
  position: relative;
}
.bot-avatar-upload:hover { border-color: var(--accent); background: var(--border); }
.bot-avatar-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-muted); font-size: 11px; font-weight: 600;
  pointer-events: none;
}

.bot-banner-upload {
  width: 100%; height: 100px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
  transition: border-color .15s, background .15s;
}
.bot-banner-upload:hover { border-color: var(--accent); background: var(--border); }

/* Member list preview */
.member-list-preview { background: #1e1f22; border-radius: var(--radius-sm); padding: 10px 8px; }
.ml-section { font-size: 11px; font-weight: 700; color: #82848f; text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; margin-bottom: 4px; }
.ml-member { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 4px; }
.ml-avatar-wrap { position: relative; flex-shrink: 0; }
.ml-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: block; }
.ml-status-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #1e1f22;
}
.ml-status-dot[data-status="online"]    { background: #3ba55d; }
.ml-status-dot[data-status="idle"]      { background: #f0a032; }
.ml-status-dot[data-status="dnd"]       { background: #ed4245; }
.ml-status-dot[data-status="invisible"] { background: #72767d; }
.ml-name { font-size: 14px; font-weight: 500; color: #dbdee1; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-app-badge { font-size: 10px; font-weight: 700; background: var(--accent); color: white; border-radius: 3px; padding: 1px 5px; flex-shrink: 0; }

/* Profile card preview */
.profile-card-preview { background: #111214; border-radius: 10px; overflow: hidden; }
.pc-banner { height: 56px; background: linear-gradient(135deg, #5865f2 0%, #eb459e 100%); }
.pc-body { padding: 0 14px 14px; }
.pc-avatar-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -22px; margin-bottom: 10px; }
.pc-avatar-wrap { position: relative; display: inline-block; }
.pc-avatar { width: 54px; height: 54px; border-radius: 50%; display: block; background: var(--accent); border: 4px solid #111214; }
.pc-status-dot {
  position: absolute; bottom: 3px; right: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid #111214;
}
.pc-status-dot[data-status="online"]    { background: #3ba55d; }
.pc-status-dot[data-status="idle"]      { background: #f0a032; }
.pc-status-dot[data-status="dnd"]       { background: #ed4245; }
.pc-status-dot[data-status="invisible"] { background: #72767d; }
.pc-app-badge { font-size: 10px; font-weight: 700; background: var(--accent); color: white; border-radius: 3px; padding: 2px 6px; margin-bottom: 4px; }
.pc-name { font-size: 18px; font-weight: 800; color: #f2f3f5; line-height: 1.2; }
.pc-username { font-size: 13px; color: #b5bac1; margin-bottom: 10px; }
.pc-divider { height: 1px; background: #2b2d31; margin: 10px 0; }
.pc-activity { font-size: 12px; color: #b5bac1; }

/* ── Misc ──────────────────────────────────────────────────────────────────── */
.loading-text { color: var(--text-muted); text-align: center; padding: 16px; font-size: 13px; }
