/* DJ Flux Dashboard v2 - modern dark theme */

:root {
  --brand-1: #a855f7;
  --brand-2: #ec4899;
  --brand-3: #6366f1;
  --bg-0: #070014;
  --bg-1: #0b0118;
  --bg-2: #130327;
  --surface: rgba(25, 10, 50, 0.72);
  --surface-2: rgba(40, 18, 78, 0.55);
  --surface-hi: rgba(60, 25, 110, 0.55);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f4f0ff;
  --text-dim: #b4a8d8;
  --text-muted: #8073a8;
  --success: #22d3a3;
  --danger: #ff4d6d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 80px -30px rgba(120, 30, 200, 0.45);
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  min-height: 100vh;
}

body[data-bs-theme="dark"] {
  --bs-body-bg: var(--bg-0);
  --bs-body-color: var(--text);
  --bs-primary: var(--brand-1);
  --bs-border-color: var(--border);
  --bs-tertiary-bg: var(--surface);
}

/* Animated background */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #1a0638 0%, var(--bg-0) 55%);
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: orb-float 18s ease-in-out infinite;
}
.bg-orb-1 { width: 420px; height: 420px; top: -100px; left: -120px;
  background: radial-gradient(circle, var(--brand-1), transparent 60%); }
.bg-orb-2 { width: 520px; height: 520px; bottom: -180px; right: -140px;
  background: radial-gradient(circle, var(--brand-2), transparent 60%);
  animation-delay: -6s; animation-duration: 22s; }
.bg-orb-3 { width: 360px; height: 360px; top: 40%; left: 45%;
  background: radial-gradient(circle, var(--brand-3), transparent 60%);
  animation-delay: -12s; animation-duration: 28s; opacity: 0.25; }

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

/* Navbar */
.app-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(11, 1, 24, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.app-navbar > .container-xl {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
}
.app-brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.1rem;
}
.app-brand:hover { color: var(--text); }
.app-brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  display: grid; place-items: center;
  color: #fff; font-size: 1.15rem;
  box-shadow: 0 8px 24px -8px var(--brand-1);
}
.app-brand-name { letter-spacing: -0.01em; }

.app-nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center;
}
.app-nav-links { display: flex; gap: 0.4rem; margin-left: 1rem; }
.app-nav-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  text-decoration: none; color: var(--text-dim);
  font-size: 0.925rem; font-weight: 500;
}
.app-nav-link:hover { color: var(--text); background: var(--surface-2); }
.app-nav-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.6rem;
}
.app-icon-btn {
  background: transparent; border: 1px solid var(--border-soft);
  color: var(--text-dim); width: 38px; height: 38px;
  border-radius: 10px; display: grid; place-items: center;
}
.app-icon-btn:hover { color: var(--text); background: var(--surface-2); }
.app-user-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.app-user-btn img, .app-user-avatar-fallback {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; display: block;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  display: grid; place-items: center; color: #fff;
}
.app-user-name { font-size: 0.9rem; font-weight: 500; }

/* Main */
.app-main { padding: 2rem 0 4rem; min-height: calc(100vh - 80px); }
.app-main-noheader { padding-top: 0; min-height: 100vh; display: grid; place-items: center; }

/* Buttons */
.btn-brand {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border: none; color: #fff; font-weight: 600;
  box-shadow: 0 10px 30px -12px var(--brand-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-brand:hover, .btn-brand:focus {
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px var(--brand-1);
}
.btn-brand:active { transform: translateY(0); }
.btn-glass {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text);
}
.btn-glass:hover { background: var(--surface-hi); color: var(--text); }

/* Cards */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Login shell */
.auth-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; padding: 2rem 1rem;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}
.auth-hero { text-align: center; margin-bottom: 1.75rem; }
.auth-logo {
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  display: grid; place-items: center;
  color: #fff; font-size: 2.1rem;
  margin: 0 auto 1rem;
  box-shadow: 0 18px 40px -12px var(--brand-1);
}
.auth-hero h1 { font-size: 1.75rem; font-weight: 700; margin: 0; }
.auth-hero p { color: var(--text-dim); margin: 0.5rem 0 0; font-size: 0.95rem; }
.auth-hero i.bi-exclamation-octagon { font-size: 2.5rem; margin-bottom: 0.5rem; }

.auth-divider {
  text-align: center;
  position: relative;
  margin: 1.75rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute;
  top: 50%; width: calc(50% - 2rem);
  height: 1px; background: var(--border-soft);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-divider span { background: var(--surface); padding: 0 0.5rem; position: relative; z-index: 1; }

.auth-local summary {
  cursor: pointer;
  color: var(--text-dim);
  padding: 0.5rem 0;
  list-style: none;
  user-select: none;
}
.auth-local summary::-webkit-details-marker { display: none; }
.auth-local summary:hover { color: var(--text); }
.auth-local[open] summary { color: var(--text); margin-bottom: 0.5rem; }

.auth-footer {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.825rem;
}
.auth-footer a { color: var(--text-muted); text-decoration: none; }
.auth-footer a:hover { color: var(--text-dim); }

/* Form controls */
.form-control, .form-select {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
  background: var(--surface-hi);
  border-color: var(--brand-1);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}
.form-label { color: var(--text-dim); font-weight: 500; font-size: 0.875rem; }

/* Dashboard - guild grid */
.dash-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.dash-header h1 {
  font-size: 2rem; font-weight: 700; margin: 0;
  background: linear-gradient(135deg, #fff, var(--brand-2));
  background-clip: text; -webkit-background-clip: text;
  color: transparent;
}
.dash-header .sub { color: var(--text-dim); margin-top: 0.25rem; }

.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.guild-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  position: relative;
  overflow: hidden;
}
.guild-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(168, 85, 247, 0.08));
  opacity: 0; transition: opacity 0.2s;
}
.guild-card:hover { transform: translateY(-3px); border-color: var(--brand-1); color: var(--text); }
.guild-card:hover::before { opacity: 1; }
.guild-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-1));
  overflow: hidden; flex: 0 0 56px;
  display: grid; place-items: center;
  color: #fff; font-size: 1.4rem;
}
.guild-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.guild-card-body { flex: 1; min-width: 0; }
.guild-card-name { font-weight: 600; font-size: 1rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-card-meta { color: var(--text-muted); font-size: 0.825rem; margin-top: 0.25rem; }
.guild-card-meta .pill {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.1rem 0.5rem; border-radius: 999px;
  background: var(--surface-2); color: var(--text-dim);
  font-size: 0.75rem;
}
.guild-card-meta .pill.live {
  background: rgba(34, 211, 163, 0.15);
  color: var(--success);
}
.guild-card-meta .pill.live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Guild page */
.guild-hero {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.guild-hero-icon {
  width: 72px; height: 72px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-1));
  display: grid; place-items: center;
  color: #fff; font-size: 1.7rem;
  flex: 0 0 72px; overflow: hidden;
}
.guild-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.guild-hero h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.guild-hero .gh-id { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; }
.guild-hero .gh-id code { background: var(--surface-2); padding: 2px 8px; border-radius: 6px; }

/* Now playing */
.now-playing {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.now-playing-inner {
  display: flex; align-items: center; gap: 1.25rem;
}
.now-playing-thumb {
  width: 88px; height: 88px; border-radius: 14px;
  background: var(--surface-hi);
  display: grid; place-items: center;
  color: var(--text-dim); font-size: 2rem;
  flex: 0 0 88px; overflow: hidden;
  position: relative;
}
.now-playing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.now-playing-thumb.playing::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35));
}
.now-playing-body { flex: 1; min-width: 0; }
.np-label {
  color: var(--text-dim); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.np-label.live { color: var(--brand-2); }
.np-label.live::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-2); animation: pulse 1.4s ease-in-out infinite;
}
.np-title {
  font-size: 1.2rem; font-weight: 600; margin: 0.35rem 0 0.5rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.np-meta { color: var(--text-muted); font-size: 0.875rem; }

.np-progress {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1rem;
}
.np-progress-bar {
  flex: 1;
  height: 6px; background: rgba(255, 255, 255, 0.08);
  border-radius: 999px; overflow: hidden; position: relative;
}
.np-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-radius: 999px;
  transition: width 0.3s linear;
  width: 0%;
}
.np-time { color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; min-width: 40px; }

.np-controls {
  display: flex; gap: 0.5rem; margin-top: 1rem;
  flex-wrap: wrap;
}
.np-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
  font-size: 1.1rem;
}
.np-btn:hover { background: var(--surface-hi); transform: scale(1.05); }
.np-btn.primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border: none; width: 52px; height: 52px; font-size: 1.25rem;
  box-shadow: 0 8px 24px -8px var(--brand-1);
}
.np-btn.primary:hover { transform: scale(1.08); }
.np-btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

.volume-wrap {
  display: flex; align-items: center; gap: 0.6rem;
  margin-left: auto; flex: 0 0 auto;
  min-width: 140px;
}
.volume-wrap i { color: var(--text-dim); }
.volume-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 999px; outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-1); cursor: pointer;
  box-shadow: 0 0 0 4px rgba(168,85,247,0.2);
}
.volume-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-1); cursor: pointer; border: none;
}

/* Search box */
.search-box {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.search-bar {
  display: flex; gap: 0.5rem;
  background: var(--surface-2);
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  align-items: center;
}
.search-bar i.bi-search { color: var(--text-muted); font-size: 1.1rem; }
.search-bar input {
  flex: 1; background: transparent; border: none;
  color: var(--text); font-size: 0.95rem; padding: 0.5rem;
  outline: none;
}
.search-bar input:focus { background: transparent; }
.search-bar button {
  border: none; border-radius: 999px;
  padding: 0.55rem 1.1rem; font-weight: 600;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; cursor: pointer;
}
.search-bar button:disabled { opacity: 0.5; cursor: wait; }

.search-results {
  margin-top: 1rem;
  display: grid; gap: 0.5rem;
}
.search-result-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.search-result-item:hover { background: var(--surface-hi); border-color: var(--brand-1); }
.search-result-thumb {
  width: 64px; height: 40px; border-radius: 6px;
  background: var(--bg-2); flex: 0 0 64px; overflow: hidden;
  display: grid; place-items: center; color: var(--text-muted);
}
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-body { flex: 1; min-width: 0; }
.search-result-title {
  font-size: 0.9rem; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-result-meta { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.15rem; }
.search-result-add {
  border: 1px solid var(--border);
  background: transparent; color: var(--text);
  border-radius: 10px; padding: 0.4rem 0.8rem;
  font-size: 0.825rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.search-result-add:hover {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border-color: transparent; color: #fff;
}

/* Queue list */
.queue-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.queue-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.queue-header h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.queue-badge {
  background: var(--surface-2); padding: 0.2rem 0.6rem;
  border-radius: 999px; font-size: 0.75rem; color: var(--text-dim);
}
.queue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.queue-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  cursor: grab;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.queue-item:hover { background: var(--surface-hi); }
.queue-item.sortable-ghost { opacity: 0.4; }
.queue-item.sortable-drag { cursor: grabbing; background: var(--surface-hi); border-color: var(--brand-1); }
.queue-item-handle { color: var(--text-muted); cursor: grab; flex-shrink: 0; }
.queue-item-pos {
  color: var(--text-muted); font-size: 0.85rem;
  font-variant-numeric: tabular-nums; min-width: 1.5rem;
}
.queue-item-body { flex: 1; min-width: 0; }
.queue-item-title {
  font-size: 0.9rem; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.queue-item-meta { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.1rem; }
.queue-item-actions { display: flex; gap: 0.3rem; }
.queue-item-btn {
  background: transparent; border: 1px solid transparent;
  color: var(--text-muted); border-radius: 8px;
  width: 32px; height: 32px; display: grid; place-items: center;
  cursor: pointer;
}
.queue-item-btn:hover { background: var(--surface); color: var(--text); }
.queue-item-btn.danger:hover { color: var(--danger); background: rgba(255, 77, 109, 0.12); }

.queue-empty {
  text-align: center; color: var(--text-muted);
  padding: 2rem 1rem; font-size: 0.9rem;
}

/* Tabs */
.app-tabs {
  display: flex; gap: 0.35rem;
  background: var(--surface-2);
  padding: 0.3rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.app-tab {
  background: transparent; border: none;
  color: var(--text-dim); padding: 0.55rem 1rem;
  border-radius: 9px; font-weight: 500; font-size: 0.9rem;
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.app-tab:hover { color: var(--text); }
.app-tab.active {
  background: var(--surface-hi); color: var(--text);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.3);
}

/* Toast */
.app-toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  z-index: 200; pointer-events: none;
}
.app-toast {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 0.5rem;
  pointer-events: auto;
  animation: slide-in 0.25s ease;
  max-width: 340px;
}
.app-toast.success { border-left: 3px solid var(--success); }
.app-toast.error { border-left: 3px solid var(--danger); }
.app-toast.info { border-left: 3px solid var(--brand-1); }
@keyframes slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* History/logs table */
.app-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}
.app-table th {
  text-align: left; padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}
.app-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
}
.app-table tr:last-child td { border-bottom: none; }

/* Landing page */
.landing-hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
  max-width: 780px;
  margin: 0 auto;
}
.landing-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.landing-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}
.landing-cta {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  justify-content: center;
}
.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}
.feature-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-1);
}
.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border-radius: 12px;
  color: white;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* Guild grid (dashboard) */
.guild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.guild-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.guild-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-1);
}
.guild-card-icon {
  width: 56px; height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(236,72,153,0.18));
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--text);
  font-size: 1.4rem;
}
.guild-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.guild-card-body { flex: 1; min-width: 0; }
.guild-card-name {
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.guild-card-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pill {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
}
.pill.live {
  background: rgba(34,197,94,0.14);
  border-color: rgba(34,197,94,0.4);
  color: #86efac;
  font-weight: 600;
}

/* Dashboard header */
.dash-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem;
}
.dash-header h1 {
  font-size: 1.85rem; font-weight: 800;
  margin: 0 0 0.25rem;
}
.dash-header .sub { color: var(--text-muted); font-size: 0.95rem; }

/* Mobile */
@media (max-width: 768px) {
  .app-nav-toggle { display: flex; }
  .app-nav-links, .app-nav-right {
    display: none;
    width: 100%; flex-direction: column;
    align-items: stretch; gap: 0.4rem;
    padding: 1rem 0; margin: 0;
  }
  body.app-nav-open .app-navbar > .container-xl {
    flex-wrap: wrap;
  }
  body.app-nav-open .app-nav-links,
  body.app-nav-open .app-nav-right {
    display: flex;
  }
  .app-navbar > .container-xl { padding: 0.75rem 1rem; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .dash-header h1 { font-size: 1.5rem; }
  .guild-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .now-playing { padding: 1.25rem; }
  .now-playing-inner { flex-direction: column; text-align: center; }
  .now-playing-thumb { width: 140px; height: 140px; flex-basis: 140px; }
  .np-controls { justify-content: center; }
  .volume-wrap { margin: 0.5rem 0 0; width: 100%; }
  .guild-hero { flex-direction: column; text-align: center; }
  .queue-item { gap: 0.5rem; padding: 0.5rem 0.6rem; }
  .queue-item-meta { display: none; }
  .app-tabs { font-size: 0.85rem; }
  .app-main { padding: 1rem 0 3rem; }
}
