@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-primary: #313338;
  --bg-secondary: #2b2d31;
  --bg-tertiary: #1e1f22;
  --bg-elevated: #232428;
  --bg-input: #383a40;
  --bg-hover: #3f4147;
  --bg-active: #404249;
  --text-normal: #dbdee1;
  --text-muted: #949ba4;
  --text-link: #00a8fc;
  --brand: #5865f2;
  --brand-hover: #4752c4;
  --green: #23a559;
  --red: #f23f43;
  --yellow: #f0b232;
  --orange: #f97316;
  --border: #3f4147;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --radius-sm: 4px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', Inter, system-ui, sans-serif;
}

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

html,
body {
  min-height: 100vh;
  overflow-y: auto;
  font-family: var(--font);
  background: var(--bg-tertiary);
  color: var(--text-normal);
}

/* Make sure display/futuristic font applies broadly */
h1, h2, h3, .futuristic-font, .section-header, .stat-value, .hero-text, .neon-button {
  font-family: var(--font-display);
}

button,
input,
textarea,
select {
  font: inherit;
}

.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.app.sidebar-collapsed {
  grid-template-columns: 58px 1fr;
}

/* Guarantee the side options panel actually shrinks when 3-lines is used */
.app.sidebar-collapsed .channel-sidebar {
  width: 58px !important;
  min-width: 58px;
  max-width: 58px;
}

/* server-rail eliminated per request; bot icons merged into channel groups as flashing face icons */

.server-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  cursor: default;
  transition: border-radius 0.15s ease;
}

.server-icon.active,
.server-icon:hover {
  border-radius: 16px;
}

.rail-divider {
  width: 32px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  margin: 4px 0;
}

.rail-bot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  background: var(--bg-secondary);
  transition: border-radius 0.15s ease, background 0.15s ease;
}

.rail-bot:hover,
.rail-bot.active {
  border-radius: 16px;
  background: var(--brand);
}

.channel-sidebar {
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: width 0.2s ease, max-width 0.2s ease;
}

.sidebar-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid #111214;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.channel-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px 0;
}

.channel-category {
  padding: 16px 8px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.channel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin: 1px 0;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  transition: background 0.1s ease, color 0.1s ease;
}

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

.channel.active {
  background: var(--bg-active);
  color: var(--text-normal);
}

.channel .hash {
  font-size: 20px;
  opacity: 0.7;
}

.channel-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.channel-badge.hidden {
  display: none;
}

.user-panel {
  background: var(--bg-elevated);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #7289da);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

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

.user-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.user-status {
  font-size: 11px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.status-dot.online { background: var(--green); }
.status-dot.idle { background: var(--yellow); }
.status-dot.offline { background: var(--text-muted); }
.status-dot.error { background: var(--red); }

.main {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #111214;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.main-header .hash {
  color: var(--text-muted);
  font-size: 22px;
}

.main-header h1 {
  font-size: 16px;
  font-weight: 600;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.view {
  display: none;
  animation: fadeIn 0.2s ease;
}

.view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 2px 0;
}

.message:hover {
  background: rgba(0, 0, 0, 0.04);
  margin: 0 -8px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.message-avatar.host { background: var(--brand); }
.message-avatar.music { background: var(--green); }
.message-avatar.system { background: var(--orange); }

.message-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.message-author {
  font-weight: 600;
  font-size: 15px;
}

.message-time {
  font-size: 11px;
  color: var(--text-muted);
}

.message-body {
  font-size: 15px;
  line-height: 1.375;
  color: var(--text-normal);
  word-break: break-word;
}

.message-body a {
  color: var(--text-link);
  text-decoration: none;
}

.message-body a:hover {
  text-decoration: underline;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

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

.stat-card h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
}

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

.panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.panel h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-normal);
}

.form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

input[type="text"],
input[type="password"],
input[type="datetime-local"],
input[type="number"],
textarea,
select {
  flex: 1;
  min-width: 180px;
  background: var(--bg-input);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-normal);
  padding: 10px 12px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 1px var(--brand);
}

textarea {
  min-height: 80px;
  resize: vertical;
  width: 100%;
}

.btn {
  border: 1px solid rgba(0,243,255,.3);
  border-radius: 9999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  background: #18181b;
  color: white;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:hover:not(:disabled) {
  border-color: #00f3ff;
  box-shadow: 0 0 15px rgba(0,243,255,.4);
  background: #27272a;
}

.btn-primary {
  border-color: rgba(103,246,255,.5);
  color: #67f6ff;
}

.btn-success {
  border-color: rgba(52,211,153,.5);
  color: #34d399;
}

.btn-danger {
  border-color: rgba(239,68,68,.5);
  color: #ef4444;
}

.btn-secondary {
  border-color: rgba(161,161,170,.5);
  color: #a1a1aa;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  border-radius: 9999px;
}

.queue-list,
.track-list,
.meeting-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.queue-item,
.track-item,
.meeting-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  transition: background 0.1s ease;
}

.queue-item:hover,
.track-item:hover,
.meeting-item:hover {
  background: var(--bg-hover);
}

.queue-item.playing {
  border-left: 3px solid var(--green);
}

.track-meta,
.meeting-meta {
  flex: 1;
  min-width: 0;
}

.track-title,
.meeting-title {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist,
.meeting-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #2b2d31 0%, #1a1b1e 100%);
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.now-playing-art {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--green));
  display: grid;
  place-items: center;
  font-size: 28px;
}

.now-playing-info h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.now-playing-info p {
  color: var(--text-muted);
  font-size: 13px;
}

.player-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.live { background: rgba(35, 165, 89, 0.2); color: var(--green); }
.badge.scheduled { background: rgba(88, 101, 242, 0.2); color: #949cf7; }
.badge.ended { background: rgba(148, 155, 164, 0.2); color: var(--text-muted); }
.badge.queued { background: rgba(240, 178, 50, 0.2); color: var(--yellow); }

.members-sidebar {
  background: var(--bg-secondary);
  padding: 16px 8px;
  overflow-y: auto;
}

.members-sidebar h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px 8px;
}

.member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

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

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  position: relative;
}

.member-avatar.host { background: var(--brand); }
.member-avatar.music { background: var(--green); }

.member-avatar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
}

.member-avatar.online::after { background: var(--green); }
.member-avatar.idle::after { background: var(--yellow); }
.member-avatar.offline::after { background: var(--text-muted); }
.member-avatar.error::after { background: var(--red); }

.member-name {
  font-size: 14px;
  font-weight: 500;
}

.member-role {
  font-size: 11px;
  color: var(--text-muted);
}

.voice-bar {
  position: fixed;
  bottom: 0;
  left: 312px;
  right: 280px;
  height: 52px;
  background: var(--bg-elevated);
  border-top: 1px solid #111214;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 10;
}

.voice-bar.hidden {
  display: none;
}

.voice-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
}

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

.voice-title {
  font-size: 13px;
  font-weight: 600;
}

.voice-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 260px;
  box-shadow: var(--shadow);
  animation: slideIn 0.2s ease;
}

.toast.error { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }

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

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: grid;
  place-items: center;
  z-index: 200;
}

.login-overlay.hidden {
  display: none;
}

.login-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 32px;
  width: min(400px, 90vw);
  box-shadow: var(--shadow);
  text-align: center;
}

.login-card h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.login-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.search-box {
  margin-bottom: 12px;
}

.import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.import-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.import-card.compact h3 {
  margin-bottom: 10px;
}

.import-card h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.import-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.import-preview {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.import-preview.hidden {
  display: none;
}

.import-preview strong {
  display: block;
  margin-bottom: 4px;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.drop-zone.dragover {
  border-color: var(--brand);
  background: rgba(88, 101, 242, 0.08);
}

.drop-zone-content .drop-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.drop-zone-content p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.upload-file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-file-item {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 8px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

.library-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tab-btn {
  border: none;
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--brand);
  color: white;
}

.source-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.2);
  color: #949cf7;
}

.source-badge.upload {
  background: rgba(35, 165, 89, 0.2);
  color: var(--green);
}

.source-badge.soundcloud {
  background: rgba(249, 115, 22, 0.2);
  color: var(--orange);
}

.source-badge.apple_music,
.source-badge.apple-music {
  background: rgba(252, 60, 68, 0.2);
  color: #fc3c44;
}

.badge.pending_approval { background: rgba(240, 178, 50, 0.2); color: var(--yellow); }
.badge.ready_to_promote { background: rgba(35, 165, 89, 0.2); color: var(--green); }
.badge.approved { background: rgba(88, 101, 242, 0.2); color: #949cf7; }
.badge.grace_period { background: rgba(240, 178, 50, 0.2); color: var(--yellow); }
.badge.final_warning { background: rgba(249, 115, 22, 0.2); color: var(--orange); }
.badge.waiting_room { background: rgba(242, 63, 67, 0.2); color: var(--red); }
.badge.camera_on { background: rgba(35, 165, 89, 0.2); color: var(--green); }

.countdown {
  font-size: 18px;
  font-weight: 700;
  min-width: 48px;
  text-align: center;
  color: var(--yellow);
}

.countdown.urgent { color: var(--red); animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.policy-alert {
  background: rgba(242, 63, 67, 0.12);
  border: 1px solid rgba(242, 63, 67, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 8px;
  color: #ffb4b4;
}

.wizard-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.wizard-step {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.wizard-step:hover {
  color: var(--text);
}

.wizard-step.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(88, 101, 242, 0.12);
}

.wizard-step.done {
  border-color: #3ba55d;
  color: #3ba55d;
}

.agp-step-panel.hidden {
  display: none;
}

.outreach-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.outreach-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;

/* Veni Guard Demo Design - futuristic glassmorphism, cyan accents, applied to all tabs */

body {
  background: #0a0a0f;
  color: white;
  font-family: var(--font);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-weight: 700;
}

.futuristic-font {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  font-weight: 700;
}

/* Better rendering on Safari / macOS */
html, body, .futuristic-font, h1, h2, h3 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.glass {
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,243,255,.1);
}

.section-header {
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 800;
  color: #00f3ff;
  opacity: .95;
}

.sci-fi-card {
  transition: all .2s;
  border: 1px solid rgba(0,243,255,.08);
}

.sci-fi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,243,255,.2);
}

.status-orb {
  width: 180px;
  height: 180px;
  position: relative;
  margin: 0 auto;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 6px solid #00f3ff;
  opacity: .25;
  animation: spin 3.5s linear infinite;
  box-shadow: 0 0 30px #00f3ff;
}

.orb-core {
  position: absolute;
  inset: 30px;
  background: radial-gradient(circle at 40% 30%, #00f3ff, #0a0a0f);
  border-radius: 9999px;
  box-shadow: 0 0 50px #00f3ff, inset 0 0 40px rgba(255,255,255,.3);
  animation: pulse-active 1.2s ease-in-out infinite;
}

.scan-line {
  position: absolute;
  left: 30px;
  right: 30px;
  height: 3px;
  background: linear-gradient(transparent, #00f3ff, transparent);
  top: 40%;
  animation: scan 2s linear infinite;
}

@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes pulse-active { 0%,100% { box-shadow: 0 0 50px #00f3ff; } 50% { box-shadow: 0 0 80px #00f3ff; } }
@keyframes scan { 0% { top: 35%; } 100% { top: 65%; } }

.neon-button {
  transition: .15s;
  border: 1px solid rgba(0,243,255,.3);
  cursor: pointer;
}

.neon-button:hover {
  border-color: #00f3ff;
  box-shadow: 0 0 15px rgba(0,243,255,.4);
}

.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #86efac;
  border: 1px solid rgba(255,255,255,.2);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .75rem;
  z-index: 50;
}

/* Theme existing dashboard elements with demo look */
.app {
  background: #0a0a0f;
}

.panel, .stat-card, .import-card {
  background: rgba(10,10,15,.85);
  border: 1px solid rgba(0,243,255,.1);
  border-radius: 24px;
  backdrop-filter: blur(20px);
}

.panel h2, .stat-card h3 {
  color: #00f3ff;
  font-size: 13px;
  font-weight: 700;
}

.btn, .neon-button {
  border: 1px solid rgba(0,243,255,.3);
  border-radius: 9999px;
  background: #18181b;
  color: #fff;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 800;
  transition: .15s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.btn:hover, .neon-button:hover {
  border-color: #00f3ff;
  box-shadow: 0 0 15px rgba(0,243,255,.4);
  transform: translateY(-1px);
}
.btn:disabled, .neon-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Semantic tints for the unified neon buttons (outline glow style to match demo) */
.btn-primary, .neon-button-primary {
  border-color: rgba(103,246,255,.6);
  color: #67f6ff;
}
.btn-success, .neon-button-success {
  border-color: rgba(52,211,153,.6);
  color: #34d399;
}
.btn-danger, .neon-button-danger {
  border-color: rgba(239,68,68,.6);
  color: #ef4444;
}
.btn-secondary, .neon-button-secondary {
  border-color: rgba(161,161,170,.5);
  color: #a1a1aa;
}

/* Icon buttons keep compact */
.btn-icon, .neon-button-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9999px;
}

.sidebar-header, .main-header {
  border-color: rgba(0,243,255,.2);
}

.channel.active {
  background: rgba(0,243,255,.1);
  color: #67f6ff;
}

  font-size: 13px;
  min-width: 110px;
}

.outreach-chip strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.outreach-chip.ok strong { color: #3ba55d; }
.outreach-chip.failed strong { color: #ed4245; }
.outreach-chip.pending strong { color: var(--text-muted); }

.outreach-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.outreach-filter.active {
  border-color: var(--accent);
  color: var(--text);
}

.outreach-table-wrap {
  margin-top: 12px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 420px;
}

.outreach-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.outreach-table th,
.outreach-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.outreach-table th {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 1;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.outreach-table tr:last-child td {
  border-bottom: none;
}

.outreach-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 24px !important;
}

.outreach-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.outreach-badge.ok {
  background: rgba(59, 165, 93, 0.18);
  color: #3ba55d;
}

.outreach-badge.failed {
  background: rgba(237, 66, 69, 0.18);
  color: #ed4245;
}

.outreach-badge.pending {
  background: rgba(148, 155, 164, 0.18);
  color: var(--text-muted);
}

.outreach-meta {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.outreach-error {
  color: #ed4245;
  font-size: 12px;
  margin-top: 4px;
  word-break: break-word;
}

.main-content {
  padding-bottom: 68px;
}

/* Extra polish for demo sci-fi inside old structures (inputs, lists) */
input, textarea, select {
  background: rgba(10,10,15,.6) !important;
  border: 1px solid rgba(0,243,255,.15) !important;
  color: #fff !important;
  border-radius: 10px !important;
}
input:focus, textarea:focus, select:focus {
  border-color: #00f3ff !important;
  box-shadow: 0 0 0 3px rgba(0,243,255,.1);
  outline: none;
}
ul.track-list, ul.queue-list, ul.meeting-list {
  background: rgba(10,10,15,.4);
  border: 1px solid rgba(0,243,255,.08);
  border-radius: 12px;
  padding: 6px;
}

/* Sci-fi upgrade for checkmarks + all status signs/badges (checklist, reports, queues, etc.) */
#setupChecklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
#setupChecklist, .sci-fi-card .meeting-item, .sci-check-item {
  border: 1px solid rgba(0,243,255,.06);
  border-radius: 14px;
  margin-bottom: 6px;
  padding: 8px 12px;
  background: rgba(0,0,0,.2);
  transition: all .15s;
}
#setupChecklist li:last-child { margin-bottom: 0; }
.sci-check-item:hover { border-color: rgba(0,243,255,.15); background: rgba(0,243,255,.03); }

.sci-check {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  margin-right: 8px;
  border-radius: 999px;
  border: 1.5px solid rgba(0,243,255,.4);
  color: rgba(0,243,255,.5);
  background: rgba(10,10,15,.8);
}
.sci-check.ok {
  border-color: #00f3ff;
  color: #00f3ff;
  background: rgba(0,243,255,.12);
  box-shadow: 0 0 8px rgba(0,243,255,.5);
  text-shadow: 0 0 6px rgba(0,243,255,.6);
}
.sci-check.todo {
  border-color: rgba(161,161,170,.3);
  color: #a1a1aa;
}

.sci-badge, .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(0,243,255,.25);
  background: rgba(10,10,15,.9);
  color: #a1a1aa;
  white-space: nowrap;
}
.sci-badge.done, .badge.camera_on, .badge.done, .badge.live, .badge.ready_to_promote, .badge.approved, .badge.ok {
  border-color: rgba(0,243,255,.5);
  color: #67f6ff;
  background: rgba(0,243,255,.1);
  box-shadow: 0 0 6px rgba(0,243,255,.3);
}
.sci-badge.todo, .badge.grace_period, .badge.todo, .badge.pending, .badge.queued, .badge.pending_approval {
  border-color: rgba(161,161,170,.4);
  color: #a1a1aa;
  background: rgba(161,161,170,.08);
}

/* Other common status signs / badges get the sci-fi treatment */
.badge.scheduled { border-color: rgba(103,246,255,.4); color:#a5b4fc; }
.badge.ended { color:#a1a1aa; }
.badge.error, .badge.waiting_room, .badge.failed { border-color: rgba(239,68,68,.4); color:#ef4444; background: rgba(239,68,68,.08); }
.badge.warning, .badge.final_warning { border-color: rgba(249,115,18,.5); color:#f97316; }

/* Make the old meeting-item etc inside sci-fi cards fit the glass look */
.sci-fi-card .meeting-item, .sci-fi-card .track-item {
  background: transparent;
  border: 1px solid rgba(0,243,255,.05);
}
.sci-fi-card .meeting-item:hover, .sci-fi-card .track-item:hover {
  background: rgba(0,243,255,.03);
  border-color: rgba(0,243,255,.12);
}
.sci-fi-card .meeting-title, .sci-fi-card .track-title {
  color: #e4e4e7;
  font-size: 13px;
}
.sci-fi-card .meeting-sub, .sci-fi-card .track-sub {
  color: #71717a;
  font-size: 11px;
}

/* Sci-fi sign polish for any remaining check/status glyphs */
.sci-sign, .sci-check-glyph {
  color: #67f6ff;
  text-shadow: 0 0 6px rgba(0,243,255,.6);
}

/* All other little signs & glyphs upgraded */
.main-header .hash,
.channel .hash {
  color: #67f6ff;
  opacity: .7;
}
.status-dot.online { background: #67f6ff; box-shadow: 0 0 6px #67f6ff; }
.status-dot.error { background: #ef4444; }
.status-dot.idle { background: #f59e0b; }

.channel-badge {
  background: rgba(0,243,255,.15);
  color: #67f6ff;
  border: 1px solid rgba(0,243,255,.3);
}

.empty-state .icon {
  font-size: 28px;
  opacity: .6;
  filter: saturate(0.8);
}

/* Make sure sci-fi cards in sub views have nice internal signs */
.sci-fi-card .section-header {
  color: #00f3ff;
}

/* === NEW COLLAPSIBLE SIDEBAR WITH MAIN TABS + SUB-TABS (hamburger ☰ + accordions) === */
.nav-group {
  margin-bottom: 4px;
}

/* Top-level solo tab (no submenu) — e.g. Mix Studio */
.nav-group--solo .nav-group-header {
  margin-bottom: 6px;
}

.nav-group--solo .nav-group-header .arrow {
  display: none;
}

.nav-tab-solo.active,
.nav-group--solo.has-active > .nav-tab-solo {
  background: rgba(0, 243, 255, 0.14);
  color: #00f3ff;
  box-shadow: inset 0 0 0 1px rgba(0, 243, 255, 0.25);
}

.channel-sidebar.collapsed .nav-group--solo .nav-group-header .label {
  display: none;
}

.nav-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  margin: 6px 6px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #67f6ff;
  cursor: pointer;
  border-radius: 8px;
  user-select: none;
  transition: background .1s, color .1s;
}
.nav-group-header:hover {
  background: rgba(0, 243, 255, 0.08);
  color: #00f3ff;
}
.nav-group-header .icon {
  /* Pure CSS circle - NO image, NO bot face. Smaller for better UI fit. */
  width: 14px;
  height: 14px;
  background: rgba(10,10,15,.4);
  border: 1px solid #00f3ff;
  border-radius: 50%;
  animation: bot-pulse 1.8s infinite ease-in-out;
  box-shadow: 0 0 3px rgba(0,243,255,.25);
  flex-shrink: 0;
  display: inline-block;
  position: relative;
  background: none !important;
  background-image: none !important;
}
.nav-group-header .icon::after {
  /* Small inner sci-fi core dot - part of the "features" of the circle */
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 3px;
  background: #00f3ff;
  border-radius: 50%;
  box-shadow: 0 0 2px #00f3ff;
}
.nav-group-header .label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-group-header .arrow {
  font-size: 9px;
  opacity: 0.6;
  transition: transform 0.2s ease;
  width: 12px;
}

.nav-subs {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  padding-left: 26px;
}
.nav-subs.open {
  max-height: 360px; /* enough room for the sub lists to "move" open */
  border-left: 2px solid rgba(0,243,255,0.25);
  margin-left: 4px;
}

/* Indented sub channels look a bit smaller / softer */
.nav-subs .channel {
  padding: 5px 8px;
  font-size: 13.5px;
  margin: 1px 4px;
  border-radius: 6px;
}
.nav-subs .channel .hash {
  font-size: 15px;
}

/* Hamburger / global collapse for the whole side options */
#sidebarToggle {
  font-size: 15px;
  line-height: 1;
  padding: 4px 8px;
}

.channel-sidebar.collapsed {
  overflow: hidden;
}

.channel-sidebar.collapsed .sidebar-header > span:first-child {
  display: none;
}

.channel-sidebar.collapsed .nav-group-header {
  justify-content: center;
  padding: 10px 2px;
  margin: 2px 2px;
  min-height: 36px;
}
.channel-sidebar.collapsed .nav-group-header .label,
.channel-sidebar.collapsed .nav-group-header .arrow,
.channel-sidebar.collapsed .nav-subs {
  display: none !important;
}
.channel-sidebar.collapsed .nav-group-header .icon {
  /* Even smaller in collapsed mode, still pure circle, no image. */
  width: 12px;
  height: 12px;
  box-shadow: 0 0 2px rgba(0,243,255,.2);
  position: relative;
  background: none !important;
  background-image: none !important;
}
.channel-sidebar.collapsed .nav-group-header .icon::after {
  width: 3px;
  height: 3px;
}

/* subtle active ring for the compact main taps */
.channel-sidebar.collapsed .nav-group.has-active .nav-group-header {
  background: rgba(0,243,255,0.15);
  box-shadow: 0 0 0 1px rgba(0,243,255,0.4);
}

/* When collapsed the main headers act as big tappable icons for the group */
.channel-sidebar.collapsed .nav-group-header:hover {
  background: rgba(0, 243, 255, 0.12);
  color: #fff;
}

/* Keep user panel compact when collapsed */
.channel-sidebar.collapsed .user-panel {
  padding: 6px 4px;
  justify-content: center;
}
.channel-sidebar.collapsed .user-info {
  display: none;
}

/* Active main tab indicator (when one of its sub-tabs is the current view) */
.nav-group.has-active > .nav-group-header {
  background: rgba(0,243,255,0.1);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0,243,255,0.2) inset;
}
.nav-group.has-active > .nav-group-header .arrow {
  color: #67f6ff;
}

@keyframes bot-pulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(0,243,255,.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 14px rgba(0,243,255,.6);
    transform: scale(1.05);
  }
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 220px 1fr;
  }
  .members-sidebar {
    display: none;
  }
  .voice-bar {
    right: 0;
  }
}

@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
  }
  .channel-sidebar {
    display: none;
  }
  .voice-bar {
    left: 0;
  }
}

/* Mix Studio */
.mix-studio {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mix-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.mix-signal-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 16px 12px;
  background: rgba(0, 243, 255, 0.04);
  border: 1px solid rgba(0, 243, 255, 0.12);
  border-radius: 12px;
}

.mix-chain-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.mix-chain-node.active {
  opacity: 1;
  border-color: rgba(0, 243, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.15);
}

.mix-chain-icon {
  font-size: 22px;
  line-height: 1;
}

.mix-chain-label {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.mix-chain-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-chain-arrow {
  color: rgba(0, 243, 255, 0.55);
  font-size: 18px;
  font-weight: 700;
}

.mix-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mix-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.mix-pill.ok {
  border-color: rgba(35, 165, 89, 0.45);
  color: var(--green);
}

.mix-pill.warn {
  border-color: rgba(249, 115, 22, 0.45);
  color: var(--orange);
}

.mix-pill.err {
  border-color: rgba(242, 63, 67, 0.45);
  color: #f23f43;
}

.mix-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.95fr;
  gap: 16px;
  align-items: start;
}

.mix-col h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.mix-track-list,
.mix-queue-list {
  max-height: 340px;
  overflow: auto;
  margin-top: 8px;
}

.mix-now-playing {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.12);
}

.mix-now-art {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(0, 243, 255, 0.1);
}

.mix-now-title {
  font-weight: 600;
  color: #fff;
}

.mix-now-artist {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.mix-transport {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.mix-route-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.mix-route-step {
  font-size: 12px;
  font-weight: 700;
  color: #00f3ff;
  margin-bottom: 6px;
}

.mix-route-step span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 243, 255, 0.15);
  margin-right: 6px;
  font-size: 10px;
}

.mix-code {
  display: block;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  word-break: break-all;
  color: #c9d1d9;
}

.mix-route-status {
  font-size: 12px;
  color: var(--text-muted);
}

.mix-advanced {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.mix-advanced summary {
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .mix-grid {
    grid-template-columns: 1fr;
  }
}