﻿:root {
  color-scheme: dark;
  --bg: #050714;
  --sidebar: #0f172a;
  --sidebar-accent: #1f2a44;
  --card: rgba(15, 23, 42, 0.82);
  --card-border: rgba(148, 163, 184, 0.15);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #8b5cf6;
  --accent-strong: #7c3aed;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 18px;
  --transition: 160ms ease;
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #1d1f4b, #050714 55%);
  color: var(--text);
}

a {
  color: inherit;
}

.view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-container {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#panel-view.view {
  align-items: stretch;
  align-content: start;
  justify-content: stretch;
  justify-items: stretch;
  padding: 0;
}

.hidden {
  display: none !important;
}

.login-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.88));
  padding: 3rem;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.6);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid var(--card-border);
}

.login-wiki-preview {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.88));
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.6);
  border: 1px solid var(--card-border);
  padding: 0;
  overflow: hidden;
}

.login-wiki-preview summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  list-style: none;
  transition: background var(--transition);
}

.login-wiki-preview summary::-webkit-details-marker {
  display: none;
}

.login-wiki-preview summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.75rem;
  transition: transform var(--transition);
  color: var(--accent);
}

.login-wiki-preview[open] summary::before {
  transform: rotate(90deg);
}

.login-wiki-preview summary:hover {
  background: rgba(139, 92, 246, 0.08);
}

.wiki-preview-content {
  padding: 0 2rem 2rem 2rem;
}

.wiki-preview-content h3 {
  margin: 1.5rem 0 1rem 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.wiki-preview-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.wiki-preview-feature {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.wiki-preview-feature strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 0.95rem;
}

.wiki-preview-feature p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.brand-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.8);
}

.brand h1 {
  margin: 0;
  font-size: 1.8rem;
}

.brand p {
  margin: 0;
  color: var(--muted);
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

input,
textarea,
button,
select {
  font: inherit;
}

input,\r\ntextarea,\r\nselect {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: border var(--transition), box-shadow var(--transition);
}

input:focus,\r\ntextarea:focus,\r\nselect:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
  color: var(--text);
  border-radius: 14px;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.25);
}

#panel-view {
  display: grid;
  grid-template-columns: 280px 1fr;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(10, 12, 28, 0.98));
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.sidebar-brand h2 {
  margin: 0;
  font-size: 1.4rem;
}

.sidebar-brand p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}

.nav-item.active,
.nav-item:hover {
  background: rgba(139, 92, 246, 0.2);
  color: var(--text);
}

.logout {
  margin-top: auto;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

.content {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.topbar h1 {
  margin: 0;
  font-size: 2rem;
}

.topbar p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.status-pill {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--muted);
  font-size: 0.85rem;
}

.panel-section {
  display: none;
  flex-direction: column;
  gap: 2rem;
}

.panel-section.active {
  display: flex;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.panel-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.panel-card h2 {
  margin: 0;
  font-size: 1.4rem;
}

.panel-card p {
  margin: 0;
  color: var(--muted);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric span:first-child {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric span:last-child {
  font-size: 2rem;
  font-weight: 600;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.16);
  gap: 1rem;
  flex-wrap: wrap;
}

.list-item .meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.list-item .meta span:first-child {
  font-weight: 600;
}

.secondary {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.38);
  color: var(--text);
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
}

.form-card {
  gap: 1.5rem;
  max-width: 960px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.5rem;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.info-card code {
  background: rgba(15, 23, 42, 0.9);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  color: var(--accent);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.member-card {
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.member-card .tag {
  font-size: 1.05rem;
  font-weight: 600;
}

.member-card .note-flag {
  font-size: 0.8rem;
  color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 20, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--card);
  border-radius: 24px;
  padding: 2rem;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content.transcript {
  max-width: 960px;
  padding: 1rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

#transcript-frame {
  width: 100%;
  min-height: 70vh;
  border: none;
  border-radius: 18px;
  background: #0f172a;
}

.user-summary {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.user-summary img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  border: 2px solid rgba(139, 92, 246, 0.5);
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  background: rgba(148, 163, 184, 0.16);
  margin: 0.2rem 0.3rem 0 0;
}

.warning-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.warning-entry {
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.warning-entry span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal textarea {
  min-height: 120px;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(139, 92, 246, 0.5);
  padding: 1rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(2, 6, 23, 0.5);
  transition: opacity 200ms ease, transform 200ms ease;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 80;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  #panel-view {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    padding: 1.25rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    gap: 1.25rem;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    width: 100%;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .sidebar-nav .nav-item {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .logout {
    margin-top: 0;
  }

  .content {
    padding: 1.8rem 1.5rem;
  }
}

@media (max-width: 720px) {
  .view {
    padding: 1.5rem 1rem;
  }

  .login-card {
    padding: 2.2rem 1.6rem;
    gap: 1.2rem;
  }

  .login-wiki-preview summary {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
  }

  .wiki-preview-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }

  .wiki-preview-features {
    grid-template-columns: 1fr;
  }

  #panel-view {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    z-index: 100;
    backdrop-filter: blur(12px);
  }

  .sidebar-header {
    width: 100%;
    padding: 0.5rem 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .sidebar-nav {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
  }

  .sidebar-nav.mobile-open {
    max-height: 500px;
    opacity: 1;
    padding: 1rem 0;
  }

  .sidebar-footer,
  .invite-bot,
  .logout {
    display: none;
  }

  .sidebar-nav.mobile-open ~ .sidebar-footer,
  .sidebar-nav.mobile-open ~ .invite-bot,
  .sidebar-nav.mobile-open ~ .logout {
    display: block;
  }

  .content {
    padding-top: calc(80px + 1.5rem);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar {
    flex-direction: column;
    gap: 0.8rem;
  }

  .topbar-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .user-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .guild-selector {
    width: 100%;
    min-width: 0;
  }

  .status-pill {
    width: 100%;
    text-align: center;
  }

  .content {
    padding: 1.5rem 1rem;
  }

  .card-grid,
  .split-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .panel-card {
    padding: 1.4rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions button {
    width: 100%;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal {
    padding: 1rem;
  }

  .modal-content {
    padding: 1.4rem;
  }

  .toast {
    left: 50%;
    right: auto;
    bottom: 1.5rem;
    width: calc(100% - 2rem);
    max-width: 360px;
    transform: translate(-50%, 10px);
  }

  .toast.show {
    transform: translate(-50%, 0);
  }
}


.login-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-actions button {
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.guild-selector {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text);
  border-radius: 12px;
  padding: 0.6rem 2.2rem 0.6rem 0.9rem;
  min-width: 220px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(148, 163, 184, 0.6) 50%), linear-gradient(135deg, rgba(148, 163, 184, 0.6) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 4px), calc(100% - 12px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.user-chip img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.user-chip span {
  font-size: 0.95rem;
  font-weight: 600;
}
select:not(.guild-selector) {
  padding-right: 2.4rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(148, 163, 184, 0.6) 50%), linear-gradient(135deg, rgba(148, 163, 184, 0.6) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 4px), calc(100% - 12px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select:disabled {
  opacity: 0.6;
  cursor: wait;
}

select option {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
}

.member-card img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.35);
  align-self: flex-start;
}

.member-card {
  align-items: flex-start;
}
select:not(.guild-selector) {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

select:not(.guild-selector):hover {
  border-color: rgba(139, 92, 246, 0.55);
}

select:not(.guild-selector):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

select option {
  background-color: rgba(15, 23, 42, 0.96);
}

textarea {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: var(--text);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  line-height: 1.5;
  min-height: 140px;
  resize: vertical;
  transition: border var(--transition), box-shadow var(--transition);
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22);
}

textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.modal textarea {
  min-height: 160px;
}

select option[data-kind="announcement"] {
  font-style: italic;
}

select option[data-type="category"] {
  font-weight: 600;
}

@media (max-width: 480px) {
  .view {
    padding: 1.2rem 0.75rem;
  }

  .login-card {
    padding: 1.8rem 1.4rem;
  }

  .brand h1 {
    font-size: 1.5rem;
  }

  .topbar h1 {
    font-size: 1.6rem;
  }

  .sidebar {
    padding: 1rem;
  }

  .sidebar-nav .nav-item {
    padding: 0.6rem 0.85rem;
  }

  .panel-card {
    padding: 1.2rem;
  }

  button,
  select,
  input,
  textarea {
    font-size: 0.95rem;
  }
}

.music-player {
  max-width: 900px;
  gap: 2rem;
}

.music-status {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 14px;
  text-align: center;
}

.music-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
}

.music-thumbnail {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.5);
}

.now-playing h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.now-playing p {
  margin: 0;
}

.player-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.control-btn {
  padding: 0.9rem 1.6rem;
  font-size: 1.3rem;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  transition: all var(--transition);
}

.control-btn:hover {
  background: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

.control-btn.danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
}

.control-btn.danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.control-btn.active {
  background: var(--accent);
  border-color: var(--accent-strong);
}

.volume-control {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.volume-control:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.volume-control label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.volume-control input[type="range"] {
  flex: 1;
  height: 8px;
  background: linear-gradient(to right,
    var(--accent) 0%,
    var(--accent) var(--volume-percent, 50%),
    rgba(148, 163, 184, 0.2) var(--volume-percent, 50%),
    rgba(148, 163, 184, 0.2) 100%);
  border-radius: 10px;
  outline: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.volume-control input[type="range"]:hover {
  height: 10px;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
  transition: all 0.2s ease;
  border: 3px solid #1e293b;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
  width: 26px;
  height: 26px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.7);
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
  transition: all 0.2s ease;
  border: 3px solid #1e293b;
}

.volume-control input[type="range"]::-moz-range-thumb:hover {
  width: 26px;
  height: 26px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.7);
}

#volume-display {
  min-width: 50px;
  text-align: center;
  color: #8b5cf6;
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(139, 92, 246, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.music-queue h4 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.music-add {
  margin-top: 1rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 14px;
}

.music-add h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.music-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.music-form input,
.music-form select {
  width: 100%;
}

.music-form button {
  align-self: flex-start;
}
.admin-guild-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.guild-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.guild-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.guild-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.guild-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: var(--sidebar-accent);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(31, 42, 68, 1.2);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Config Modal Styles */
.config-display {
  padding: 1rem;
}

.config-display h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.config-section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.config-section h4 {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 1rem;
}

.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.config-item:last-child {
  border-bottom: none;
}

.config-label {
  font-weight: 500;
  color: var(--muted);
}

.config-value {
  color: var(--text);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.config-raw {
  margin-top: 1.5rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.config-raw summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--accent);
  user-select: none;
}

.config-raw pre {
  margin: 1rem 0 0 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Support Panel Styles */
.support-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.support-tickets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-tickets h3 {
  margin: 0;
  font-size: 1.1rem;
}

.support-ticket-item {
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.support-ticket-item:hover {
  background: var(--sidebar-accent);
}

.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ticket-status {
  font-size: 0.9rem;
  white-space: nowrap;
}

.support-create {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}

.support-create summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--accent);
  user-select: none;
}

.support-create form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.support-create input,
.support-create textarea {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text);
  font-family: inherit;
}

.support-create input:focus,
.support-create textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.support-chat {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  height: 600px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  padding: 0.75rem;
  border-radius: 12px;
  max-width: 80%;
}

.user-message {
  background: var(--sidebar-accent);
  align-self: flex-start;
}

.admin-message {
  background: var(--accent);
  align-self: flex-end;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.message-body {
  word-wrap: break-word;
}

.status-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.status-controls label {
  font-weight: 500;
}

.status-controls select {
  background: var(--sidebar);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--text);
  flex: 1;
}

.chat-form {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid var(--card-border);
}

.chat-form input {
  flex: 1;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text);
  font-family: inherit;
}

.chat-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-form button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
}


/* Invite Bot Button */
.invite-bot {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 0.75rem;
  text-align: center;
}

.invite-bot:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

/* Admin Panel Styles */
.admin-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-guilds {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 1024px) {
  .support-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .support-chat {
    height: 500px;
  }

  .guild-actions {
    justify-content: flex-start;
  }

  .admin-guild-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .guild-info {
    width: 100%;
  }

  .guild-actions {
    width: 100%;
  }

  .guild-actions .btn-sm {
    flex: 1;
  }
}

@media (max-width: 720px) {
  .invite-bot {
    order: 3;
    margin-bottom: 0;
  }

  .support-container {
    gap: 1rem;
  }

  .support-chat {
    height: 400px;
  }

  .chat-message {
    max-width: 90%;
  }

  .support-ticket-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .ticket-status {
    width: 100%;
  }

  .status-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .status-controls select {
    width: 100%;
  }

  .guild-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .guild-actions .btn-sm {
    width: 100%;
  }

  .admin-guild-item {
    padding: 0.85rem;
  }
}

@media (max-width: 480px) {
  .support-chat {
    height: 350px;
  }

  .chat-form {
    flex-direction: column;
  }

  .chat-form button {
    width: 100%;
  }
}

/* Developer Info Styles */
.developer-display {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.developer-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.developer-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  max-width: 100%;
  max-height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.developer-basic h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--text);
}

.developer-basic p {
  margin: 0;
}

.developer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.developer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.developer-link:hover {
  background: var(--sidebar-accent);
  border-color: var(--accent);
}

.link-icon {
  font-size: 1.5rem;
}

.link-text {
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .developer-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .developer-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: block;
  }

  .developer-basic {
    width: 100%;
  }

  .developer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .developer-avatar {
    width: 72px;
    height: 72px;
  }
}

/* Broadcast Status Styles */
.broadcast-status {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.broadcast-results h4 {
  margin: 0 0 1rem 0;
  color: var(--text);
}

.broadcast-status .config-section {
  margin-bottom: 1rem;
}

/* Image Upload Zone */
.image-upload-zone {
  margin-top: 0.5rem;
}

.dropzone {
  border: 2px dashed var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(15, 23, 42, 0.3);
}

.dropzone:hover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

.dropzone.drag-over {
  border-color: var(--accent-strong);
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.02);
}

.dropzone p {
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.dropzone small {
  font-size: 0.85rem;
}

.image-preview {
  margin-top: 1rem;
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.image-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius);
  border: 2px solid var(--card-border);
}

.image-preview button {
  margin-top: 0.5rem;
  display: block;
}

/* Multiple Images Preview */
.images-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.image-preview-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
  border: 2px solid var(--card-border);
  aspect-ratio: 1;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-preview-item .remove-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: all var(--transition);
  opacity: 0.9;
}

.image-preview-item .remove-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.images-preview-container:empty {
  display: none;
}

/* System Status */
.system-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.status-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.status-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text);
}

.status-card .list-group {
  margin: 0;
}

.restart-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.restart-status.safe {
  color: var(--success);
  font-size: 1.2rem;
  font-weight: bold;
}

.restart-status.unsafe {
  color: var(--danger);
  font-size: 1.2rem;
  font-weight: bold;
}

/* Wiki Styles */
.wiki-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wiki-language-switch {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wiki-lang-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.wiki-lang-button:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

.wiki-lang-button.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--accent);
  color: var(--text);
}

.wiki-lang-label {
  font-size: 0.85rem;
  font-weight: 500;
}

.flag-icon {
  width: 20px;
  height: 14px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.4);
}

.flag-icon.flag-en {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 36"><rect width="60" height="36" fill="%23012169"/><rect y="14" width="60" height="8" fill="%23ffffff"/><rect x="26" width="8" height="36" fill="%23ffffff"/><rect y="16" width="60" height="4" fill="%23c8102e"/><rect x="28" width="4" height="36" fill="%23c8102e"/></svg>');
}

.flag-icon.flag-de {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 36"><rect width="60" height="36" fill="%23ffce00"/><rect width="60" height="24" fill="%23dd0000"/><rect width="60" height="12" fill="%23000000"/></svg>');
}

.flag-icon.flag-es {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 36"><rect width="60" height="36" fill="%23aa151b"/><rect y="12" width="60" height="12" fill="%23f1bf00"/></svg>');
}

.flag-icon.flag-fr {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 36"><rect width="60" height="36" fill="%23ed2939"/><rect width="40" height="36" fill="%23ffffff"/><rect width="20" height="36" fill="%230055a4"/></svg>');
}

.wiki-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.wiki-tag {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--card-border);
}

.wiki-toc {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.wiki-toc-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: var(--muted);
  transition: all var(--transition);
}

.wiki-toc-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

.wiki-section h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--text);
}

.wiki-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  color: var(--text);
}

.wiki-section code {
  background: rgba(15, 23, 42, 0.9);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 0.9rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.wiki-list {
  margin: 1rem 0 1rem 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wiki-list li {
  margin: 0;
  line-height: 1.6;
}

.wiki-steps {
  counter-reset: step;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wiki-steps li {
  counter-increment: step;
  margin: 0;
  padding-left: 2rem;
  position: relative;
  line-height: 1.6;
}

.wiki-steps li::before {
  content: counter(step) ". ";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}

.wiki-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
}

.wiki-table th,
.wiki-table td {
  border: 1px solid var(--card-border);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.wiki-table th {
  background: rgba(139, 92, 246, 0.15);
  font-weight: 600;
  color: var(--text);
}

.wiki-table td {
  color: var(--text);
}

.wiki-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.05);
}

.wiki-callout {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin: 1rem 0;
  border: 1px solid transparent;
  line-height: 1.6;
}

.wiki-callout.info {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text);
}

.wiki-callout.ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--text);
}

.wiki-callout.warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--text);
}

.wiki-callout.err {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--text);
}

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.wiki-section a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.wiki-section a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .wiki-grid {
    grid-template-columns: 1fr;
  }

  .wiki-steps li {
    padding-left: 1.5rem;
  }

  .wiki-table {
    font-size: 0.9rem;
  }

  .wiki-table th,
  .wiki-table td {
    padding: 0.6rem 0.75rem;
  }
}

/* Playlist Styles */

/* Music Tabs */
.music-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.music-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  margin-bottom: -2px;
}

.music-tab:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
}

.music-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}

.music-tab-content {
  display: none;
}

.music-tab-content.active {
  display: block;
}

/* Playlist Controls */
.playlist-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.playlists-container {
  display: grid;
  gap: 2rem;
}

.playlists-section h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Playlist Item */
.playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.playlist-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.playlist-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* Playlist Details Modal */
.playlist-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.playlist-meta {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.playlist-meta p {
  margin: 0;
  display: flex;
  justify-content: space-between;
}

.playlist-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Song List */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.song-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  transition: all 0.2s;
}

.song-item:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
}

.song-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.song-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.song-actions button {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .music-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .music-tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .playlist-item,
  .song-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .playlist-actions,
  .song-actions {
    width: 100%;
  }

  .playlist-actions button,
  .song-actions button {
    flex: 1;
  }
}

/* Music Tabs */
.music-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.music-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  margin-bottom: -2px;
}

.music-tab:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.1);
}

.music-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}

.music-tab-content {
  display: none;
}

.music-tab-content.active {
  display: block;
}

/* Playlist Controls */
.playlist-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.playlists-container {
  display: grid;
  gap: 2rem;
}

.playlists-section h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Playlist Item */
.playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.playlist-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.playlist-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* Playlist Details Modal */
.playlist-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.playlist-meta {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.playlist-meta p {
  margin: 0;
  display: flex;
  justify-content: space-between;
}

.playlist-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Song List */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.song-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  transition: all 0.2s;
}

.song-item:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
}

.song-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.song-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.song-actions button {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .music-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .music-tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .playlist-item,
  .song-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .playlist-actions,
  .song-actions {
    width: 100%;
  }

  .playlist-actions button,
  .song-actions button {
    flex: 1;
  }
}


/* ===== CONFIG TABS ===== */
.config-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem 0;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 14px;
  overflow-x: auto;
}

.config-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.config-tab:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text);
  transform: none;
  box-shadow: none;
}

.config-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.config-tabs-content {
  position: relative;
}

.config-tab-panel {
  display: none;
  animation: fadeInConfig 0.3s ease;
}

.config-tab-panel.active {
  display: block;
}

@keyframes fadeInConfig {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.config-section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.config-section-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  color: var(--text);
}

.config-section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.config-subsection {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

.config-subsection h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  color: var(--text);
}

.config-subsection p.muted {
  margin: 0 0 1rem 0;
}

/* Alert boxes */
.alert {
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.alert-warning {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--text);
}

.alert-info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text);
}

.alert strong {
  font-weight: 600;
}

.alert code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85em;
}

/* Improved form styling within tabs */
.config-tab-panel label {
  display: block;
  margin-bottom: 1.5rem;
}

.config-tab-panel label > span.muted {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.config-tab-panel .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.config-tab-panel .toggle {
  margin: 1rem 0;
}

/* Responsive config tabs */
@media (max-width: 768px) {
  .config-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .config-tab {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .config-tab-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .config-subsection {
    padding: 1rem;
  }
}

/* Form group with spacious layout */
.form-group-spacious {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.25);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  transition: all var(--transition);
}

.form-group-spacious:hover {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(148, 163, 184, 0.15);
}

.form-group-spacious label {
  margin-bottom: 0;
  display: block;
}

.form-group-spacious input,
.form-group-spacious select,
.form-group-spacious textarea {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.form-group-spacious textarea {
  min-height: 120px;
  line-height: 1.6;
  resize: vertical;
}

.form-group-spacious .muted {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-group-spacious {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* ===== DASHBOARD STYLES ===== */

/* Server Header */
.dashboard-server-header {
  margin-bottom: 2rem;
  padding: 2rem;
}

.server-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.server-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.server-header-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  color: var(--text);
}

.server-header-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.server-header-stats .separator {
  color: var(--card-border);
}

/* Stats Grid */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-stat-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition);
  border: 1px solid var(--card-border);
}

.dashboard-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.stat-icon {
  font-size: 2.5rem;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
}

.stat-icon.online {
  background: rgba(34, 197, 94, 0.1);
}

.stat-icon.tickets {
  background: rgba(59, 130, 246, 0.1);
}

.stat-icon.warnings {
  background: rgba(251, 191, 36, 0.1);
}

.stat-icon.channels {
  background: rgba(168, 85, 247, 0.1);
}

.stat-icon.roles {
  background: rgba(236, 72, 153, 0.1);
}

.stat-icon.emojis {
  background: rgba(251, 146, 60, 0.1);
}

.stat-icon.transcripts {
  background: rgba(100, 116, 139, 0.1);
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-detail {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Recent Activity Feed */
.dashboard-recent-activity {
  margin-bottom: 2rem;
  padding: 2rem;
}

.activity-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.activity-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
}

.activity-header p {
  margin: 0;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 10px;
  border: 1px solid var(--card-border);
  transition: all var(--transition);
}

.activity-item:hover {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.2);
}

.activity-icon {
  font-size: 1.5rem;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 8px;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-type {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.activity-details {
  font-size: 0.85rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-time {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.activity-module {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 500;
}

/* Quick Actions */
.dashboard-quick-actions {
  padding: 2rem;
}

.dashboard-quick-actions h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.4rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.qa-icon {
  font-size: 2rem;
}

.qa-label {
  font-size: 0.9rem;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .server-header-content {
    flex-direction: column;
    text-align: center;
  }

  .server-icon-large {
    width: 64px;
    height: 64px;
  }

  .server-header-info h2 {
    font-size: 1.4rem;
  }

  .server-header-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-card {
    padding: 1.25rem;
  }

  .stat-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-time {
    align-self: flex-end;
  }
}

/* ===== MESSAGE ACTIVITY SECTION ===== */

.dashboard-activity-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Top Chatters */
.dashboard-top-chatters {
  padding: 2rem;
}

.chatters-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chatter-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 10px;
  border: 1px solid var(--card-border);
  transition: all var(--transition);
}

.chatter-item:hover {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
}

.chatter-rank {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 30px;
  text-align: center;
}

.chatter-rank.rank-1 { color: #fbbf24; } /* Gold */
.chatter-rank.rank-2 { color: #94a3b8; } /* Silver */
.chatter-rank.rank-3 { color: #fb923c; } /* Bronze */

.chatter-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.chatter-info {
  flex: 1;
  min-width: 0;
}

.chatter-name {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatter-messages {
  font-size: 0.875rem;
  color: var(--muted);
}

.chatter-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 60px;
  text-align: right;
}

/* Hourly Activity Chart */
.dashboard-hourly-activity {
  padding: 2rem;
}

.hourly-chart {
  position: relative;
  height: 300px;
  padding: 2rem 1rem 3rem 3rem;
}

.hourly-chart-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

.chart-area {
  fill: url(#chart-gradient);
  opacity: 0.2;
}

.chart-grid-line {
  stroke: var(--card-border);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.3;
}

.chart-axis-line {
  stroke: var(--card-border);
  stroke-width: 2;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 0.75rem;
  font-family: inherit;
}

.chart-point {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 2;
  cursor: pointer;
  transition: all var(--transition);
}

.chart-point:hover {
  r: 6;
  fill: var(--accent-strong);
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.5));
}

.chart-tooltip {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  border: 1px solid var(--card-border);
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chart-tooltip.visible {
  opacity: 1;
}

.chart-tooltip-time {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.chart-tooltip-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Responsive Message Activity */
@media (max-width: 1200px) {
  .dashboard-activity-section {
    grid-template-columns: 1fr;
  }

  .hourly-chart {
    height: 250px;
    padding: 1.5rem 0.75rem 2.5rem 2.5rem;
  }
}

@media (max-width: 768px) {
  .chatter-item {
    padding: 0.75rem;
  }

  .chatter-avatar {
    width: 32px;
    height: 32px;
  }

  .chatter-rank {
    font-size: 1rem;
    min-width: 25px;
  }

  .chatter-count {
    font-size: 1.25rem;
  }

  .hourly-chart {
    height: 220px;
    padding: 1rem 0.5rem 2rem 2rem;
  }

  .chart-axis-label {
    font-size: 0.65rem;
  }
}
