/* Custom Styling for Kelly Dashboard */

:root {
  /* Color Palette (Primary color: #bce4ff) */
  --primary: #bce4ff;
  --primary-glow: rgba(188, 228, 255, 0.15);
  --primary-glow-heavy: rgba(188, 228, 255, 0.4);
  --primary-dark: #8cc3f5;
  
  --bg-app: #090a0f;
  --bg-sidebar: #10121a;
  --bg-card: #151822;
  --bg-card-hover: #1c202e;
  --bg-input: #1b1e2a;
  
  --border-color: rgba(188, 228, 255, 0.08);
  --border-hover: rgba(188, 228, 255, 0.25);
  
  --text-main: #f3f5f9;
  --text-muted: #8fa0c0;
  --text-dimmed: #5e6c8a;
  
  --success: #a3ffcc;
  --danger: #ffb3b3;
  --warn: #ffe3a3;
  
  --sidebar-width: 280px;
  --topbar-height: 70px;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

code {
  font-family: 'Courier New', Courier, monospace;
  background-color: rgba(188, 228, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
  font-size: 0.9em;
}

/* App Layout */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px;
  z-index: 100;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.bot-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  object-fit: cover;
}

.bot-info h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  background: linear-gradient(135deg, #ffffff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bot-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px rgba(163, 255, 204, 0.6);
  display: inline-block;
}

.sidebar-nav {
  flex: 1;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.02);
  transform: translateX(4px);
}

.nav-item.active {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.nav-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover .nav-icon-wrapper {
  transform: scale(1.08);
}

.nav-icon {
  width: 18px;
  height: 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specific Modern Icon Colors and Glows */
.icon-overview svg { color: #38bdf8; }
.nav-item.active .icon-overview {
  background-color: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.icon-servers svg { color: #4ade80; }
.nav-item.active .icon-servers {
  background-color: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.3);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.25);
}

.icon-players svg { color: #a78bfa; }
.nav-item.active .icon-players {
  background-color: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.25);
}

.icon-points svg { color: #fbbf24; }
.nav-item.active .icon-points {
  background-color: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}

.icon-liked svg { color: #f43f5e; }
.nav-item.active .icon-liked {
  background-color: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
}

.icon-playlists svg { color: #2dd4bf; }
.nav-item.active .icon-playlists {
  background-color: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.3);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.25);
}

.badge {
  background-color: rgba(188, 228, 255, 0.2);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: auto;
}

.sidebar-user {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* User Profile Info */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-meta {
  display: flex;
  flex-direction: column;
  max-width: 140px;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.logout-btn {
  margin-left: auto;
  color: var(--text-dimmed);
  transition: color var(--transition-speed);
  display: flex;
  align-items: center;
}

.logout-btn:hover {
  color: var(--danger);
}

.logout-icon {
  width: 20px;
  height: 20px;
}

/* Main Content Structure */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.topbar {
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(9, 10, 15, 0.5);
  backdrop-filter: blur(12px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.breadcrumb .divider {
  color: var(--text-dimmed);
}

.breadcrumb .active {
  color: var(--primary);
  font-weight: 600;
}

.system-time {
  font-family: 'Outfit', sans-serif;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.content-body {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* Utility Components */
.hidden {
  display: none !important;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: #0b0c10;
  box-shadow: 0 4px 15px rgba(188, 228, 255, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(188, 228, 255, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Landing / Hero Screen */
.hero-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(188, 228, 255, 0.15) 0%, rgba(9, 10, 15, 0) 70%);
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 500px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
  margin-bottom: 24px;
}

.hero-content h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--text-main);
  font-weight: 800;
}

.hero-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* Overview Screen: Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all var(--transition-speed);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(9, 10, 15, 0.4), 0 0 15px rgba(188, 228, 255, 0.03);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stat-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.icon-blue { background-color: rgba(188, 228, 255, 0.1); color: var(--primary); }
.icon-green { background-color: rgba(163, 255, 204, 0.1); color: var(--success); }
.icon-purple { background-color: rgba(179, 163, 255, 0.1); color: #d1b3ff; }
.icon-orange { background-color: rgba(255, 179, 102, 0.1); color: #ffb84d; }

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.stat-subtext {
  font-size: 0.8rem;
  color: var(--text-dimmed);
}

/* Detail Cards Row */
.details-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .details-row {
    grid-template-columns: 1fr;
  }
}

.detail-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.detail-card h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  color: var(--text-main);
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.node-name-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-status-badge {
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.node-online { background-color: rgba(163, 255, 204, 0.15); color: var(--success); }
.node-offline { background-color: rgba(255, 179, 179, 0.15); color: var(--danger); }

.node-players {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.node-item.loading {
  justify-content: center;
  color: var(--text-dimmed);
  border: none;
}

.system-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sys-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.sys-label {
  color: var(--text-muted);
}

.sys-val {
  font-weight: 600;
  color: var(--text-main);
}

/* Servers Grid */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.server-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-speed);
}

.server-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.server-icon-wrapper {
  margin-bottom: 16px;
  position: relative;
}

.server-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.server-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.server-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.server-card .btn {
  margin-top: auto;
  width: 100%;
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dimmed);
  padding: 40px;
  font-size: 0.95rem;
}

/* Players Layout Screen */
.players-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  height: calc(100vh - var(--topbar-height) - 64px);
  align-items: stretch;
}

@media (max-width: 850px) {
  .players-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.players-sidebar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.players-sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.active-players-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.active-player-item {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.active-player-item:hover {
  background-color: rgba(188, 228, 255, 0.04);
  border-color: var(--border-hover);
}

.active-player-item.selected {
  background-color: rgba(188, 228, 255, 0.08);
  border-color: var(--primary);
}

.active-player-item .g-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.active-player-item .v-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.active-player-item .track-desc {
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Control Panel Empty View */
.player-panel-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

.panel-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  margin: auto;
  max-width: 400px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  color: var(--text-dimmed);
  margin-bottom: 20px;
}

.panel-empty-state h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.panel-empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Controller Console UI */
.player-console {
  display: flex;
  flex-direction: column;
  padding: 32px;
  height: 100%;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.console-guild-info h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.voice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.inline-icon {
  width: 14px;
  height: 14px;
}

.console-badge-active {
  background-color: var(--primary-glow);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px var(--primary-glow);
}

.track-info-container {
  display: flex;
  align-items: center;
  gap: 32px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
}

@media (max-width: 600px) {
  .track-info-container {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}

/* Vinyl Spin Anim */
.disc-container {
  position: relative;
  width: 120px;
  height: 120px;
}

.disc-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(188, 228, 255, 0.3) 0%, rgba(188, 228, 255, 0) 70%);
  border-radius: 50%;
  z-index: 1;
}

.disc-vinyl {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #050608;
  border: 4px solid #1a1e28;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  animation: spin 6s linear infinite;
  animation-play-state: paused;
}

.vinyl-art {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.disc-center {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid #1a1e28;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.player-console.playing .disc-vinyl {
  animation-play-state: running;
}

/* Sound bars */
.sound-wave {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  z-index: 3;
}

.sound-wave .bar {
  width: 3px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: height 0.1s ease;
  animation: bounce 0.8s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.player-console.playing .sound-wave .bar {
  animation-play-state: running;
}

.sound-wave .bar:nth-child(1) { animation-delay: 0.1s; }
.sound-wave .bar:nth-child(2) { animation-delay: 0.4s; }
.sound-wave .bar:nth-child(3) { animation-delay: 0.2s; }
.sound-wave .bar:nth-child(4) { animation-delay: 0.6s; }
.sound-wave .bar:nth-child(5) { animation-delay: 0.3s; }

@keyframes bounce {
  10% { height: 4px; }
  50% { height: 16px; }
  90% { height: 6px; }
}

/* Track Titles */
.track-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.track-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.track-author {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-requester {
  font-size: 0.8rem;
  color: var(--text-dimmed);
}

/* Playback Progress Tracker */
.playback-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.time-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 45px;
}

#time-total {
  text-align: right;
}

.progress-bar-container {
  flex: 1;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-radius: 4px;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
}

.progress-bar-container:hover {
  height: 8px;
}

/* Playback controls */
.playback-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 40px;
}

.btn-control {
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.btn-control svg {
  stroke-width: 2.8px !important;
}

.btn-control.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(188, 228, 255, 0.15);
  color: var(--text-muted);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-control.icon-btn svg {
  width: 20px;
  height: 20px;
}

.btn-control.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: rgba(188, 228, 255, 0.4);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.btn-control.icon-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-control.main-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(188, 228, 255, 0.07);
  border: 3px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(188, 228, 255, 0.25), inset 0 0 12px rgba(188, 228, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-control.main-btn:hover {
  background: var(--primary);
  color: #090a0f;
  border-color: var(--primary);
  transform: scale(1.06);
  box-shadow: 0 0 25px rgba(188, 228, 255, 0.5), 0 8px 18px rgba(0, 0, 0, 0.3);
}

.btn-control.main-btn:active {
  transform: scale(0.96);
}

.play-icon, .pause-icon {
  width: 26px;
  height: 26px;
}

/* Volume Slider UI */
.volume-slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 10px;
  max-width: 320px;
  margin: 0 auto 30px auto;
}

.volume-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.volume-range {
  flex: 1;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05);
  height: 4px;
  border-radius: 4px;
  outline: none;
}

.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 8px var(--primary-glow);
  transition: transform 0.1s ease;
}

.volume-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-badge-pct {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  width: 40px;
  text-align: right;
}

/* Queue List console */
.console-queue-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.queue-header h4 {
  font-size: 1rem;
  color: var(--text-main);
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.85rem;
}

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

.queue-item .q-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 80%;
}

.queue-item .q-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.queue-item .q-author {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.queue-item .q-duration {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dimmed);
}

.queue-item .q-req {
  font-size: 0.7rem;
  color: var(--text-dimmed);
  margin-top: 2px;
}

/* Scrollbars styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(188, 228, 255, 0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(188, 228, 255, 0.2);
}

/* Modern Glassmorphic Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.toast {
  position: relative;
  background-color: rgba(21, 24, 34, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  min-width: 300px;
  max-width: 400px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

@keyframes toastSlideIn {
  from { transform: translateX(120%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to { transform: translateX(120%) scale(0.9); opacity: 0; }
}

.toast-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke-width: 2.2;
}

.toast.success { 
  border-left: 4px solid var(--success);
  box-shadow: 0 8px 30px rgba(163, 255, 204, 0.08), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toast.success .toast-svg { color: var(--success); }
.toast.success .toast-progress { background-color: var(--success); }

.toast.error { 
  border-left: 4px solid var(--danger);
  box-shadow: 0 8px 30px rgba(255, 179, 179, 0.08), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toast.error .toast-svg { color: var(--danger); }
.toast.error .toast-progress { background-color: var(--danger); }

.toast.warn { 
  border-left: 4px solid var(--warn);
  box-shadow: 0 8px 30px rgba(255, 227, 163, 0.08), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toast.warn .toast-svg { color: var(--warn); }
.toast.warn .toast-progress { background-color: var(--warn); }

.toast.info { 
  border-left: 4px solid var(--primary);
  box-shadow: 0 8px 30px rgba(188, 228, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toast.info .toast-svg { color: var(--primary); }
.toast.info .toast-progress { background-color: var(--primary); }

.toast-message {
  flex-grow: 1;
  line-height: 1.4;
  font-weight: 500;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  animation: toastProgress 4s linear forwards;
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Search & Play Song Styles */
.console-search-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 12px;
}

.console-search-container input {
  flex: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-speed);
}

.console-search-container input:focus {
  border-color: var(--primary);
}

.console-search-container .btn {
  white-space: nowrap;
}

/* Sidebar Headers */
.nav-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dimmed);
  margin: 24px 16px 8px 16px;
  font-weight: 700;
}

/* Playlist Add dropdown and Active status */
.btn-control.active {
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  background-color: rgba(188, 228, 255, 0.08) !important;
  box-shadow: 0 0 12px rgba(188, 228, 255, 0.25) !important;
}

.btn-control.active:hover {
  background-color: rgba(188, 228, 255, 0.15) !important;
  box-shadow: 0 0 18px rgba(188, 228, 255, 0.45) !important;
  color: #ffffff !important;
}

.playlist-dropdown-menu {
  position: absolute;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  max-height: 200px;
  overflow-y: auto;
}

.playlist-dropdown-item {
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-speed);
  text-align: left;
}

.playlist-dropdown-item:hover {
  background-color: rgba(188, 228, 255, 0.05);
  color: var(--text-main);
}

.playlist-dropdown-no-data {
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-dimmed);
  text-align: center;
}

/* Visual Search Dropdown panel */
.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-results-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-top: 6px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 250;
  padding: 6px 0;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all var(--transition-speed);
  border-bottom: 1px solid rgba(255, 255, 255, 0.01);
}

.search-result-card:hover {
  background-color: rgba(188, 228, 255, 0.05);
}

.search-result-card img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background-color: rgba(0,0,0,0.2);
}

.search-result-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.search-result-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-author {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-duration {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: var(--text-dimmed);
}

/* Scrubbable Progress Slider */
.progress-slider-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.progress-slider {
  width: 100%;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05);
  height: 6px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.progress-slider:disabled {
  cursor: default;
}

.progress-slider:disabled::-webkit-slider-thumb {
  display: none;
}

.progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, transform 0.1s;
}

.progress-slider:hover::-webkit-slider-thumb {
  opacity: 1;
}

.progress-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Library Views Styling */
.songs-table-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
}

.songs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.songs-table th, .songs-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.songs-table th {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.songs-table tbody tr {
  transition: background-color var(--transition-speed);
}

.songs-table tbody tr:hover {
  background-color: rgba(188, 228, 255, 0.02);
}

.songs-table td.song-title-cell {
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

.songs-table td.song-title-cell img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
}

.songs-table td.song-action-cell button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dimmed);
  padding: 6px;
  border-radius: 4px;
  transition: all var(--transition-speed);
  margin-right: 6px;
}

.songs-table td.song-action-cell button:hover {
  color: var(--primary);
  background-color: rgba(188, 228, 255, 0.05);
}

.songs-table td.song-action-cell button.btn-delete:hover {
  color: var(--danger);
  background-color: rgba(255, 179, 179, 0.05);
}

.liked-songs-container, .playlists-container {
  display: flex;
  flex-direction: column;
}

.library-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Playlist Creator Card */
.playlist-creator-card {
  display: flex;
  gap: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  max-width: 500px;
}

.playlist-creator-card input {
  flex: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--text-main);
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition-speed);
}

.playlist-creator-card input:focus {
  border-color: var(--primary);
}

/* Playlists Grid */
.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.playlist-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-speed);
  cursor: pointer;
}

.playlist-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.playlist-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(188, 228, 255, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.playlist-card-icon svg {
  width: 24px;
  height: 24px;
}

.playlist-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.playlist-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.playlist-card-actions button {
  flex: 1;
}

.playlist-card .delete-playlist-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dimmed);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition-speed);
}

.playlist-card .delete-playlist-btn:hover {
  color: var(--danger);
  background-color: rgba(255, 179, 179, 0.05);
}

/* Playlist Detail View */
.playlist-detail-view {
  display: flex;
  flex-direction: column;
}

.detail-header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.detail-playlist-title-info {
  flex: 1;
}

.detail-playlist-title-info h3 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

/* Guest Landing standalone website style */
body.guest-mode .sidebar {
  display: none !important;
}

body.guest-mode .topbar {
  display: none !important;
}

body.guest-mode .main-content {
  height: 100vh;
  width: 100vw;
}

body.guest-mode .content-body {
  padding: 0;
  overflow-y: auto;
  height: 100vh;
}

.landing-page-wrapper {
  background-color: #09060f;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  padding: 0 40px;
}

/* Background gradient glows */
.landing-page-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, rgba(188, 228, 255, 0.08) 0%, rgba(188, 228, 255, 0.02) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* Navbar */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  z-index: 10;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-brand-text .brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
}

.landing-brand-text .brand-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
}

.btn-login-nav {
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Layout */
.landing-main-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
  margin: 40px auto auto auto;
  align-items: center;
  z-index: 10;
}

@media (max-width: 1000px) {
  .landing-main-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 20px;
  }
}

/* Sparkle Chip */
.landing-sparkle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.landing-sparkle-chip svg {
  color: var(--primary);
}

/* Headline */
.landing-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 600px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-subtext {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 24px;
  max-width: 500px;
}

/* CTA Row */
.landing-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.btn-cta-main {
  border-radius: 30px;
  padding: 14px 28px;
  font-size: 1rem;
}

.landing-invite-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-speed);
}

.landing-invite-btn:hover {
  border-color: rgba(188, 228, 255, 0.3);
  background-color: rgba(188, 228, 255, 0.05);
  transform: translateY(-1px);
}

.landing-invite-btn svg {
  width: 14px;
  height: 14px;
}

/* Feature Grid */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
}

@media (max-width: 650px) {
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
}

.landing-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.landing-feature-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.feature-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: rgba(188, 228, 255, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(188, 228, 255, 0.05);
}

/* Right graphics */
.landing-hero-graphics {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Mockup Spotify panel */
.mockup-panel {
  background-color: #140f1d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  max-width: 450px;
  margin-left: auto;
  width: 100%;
}

@media (max-width: 1000px) {
  .mockup-panel {
    margin: 0 auto;
  }
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 16px;
}

.mockup-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.mockup-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.mockup-badge {
  background-color: rgba(188, 228, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(188, 228, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.mockup-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  border-radius: 40px;
  margin-top: 20px;
  color: var(--text-dimmed);
  font-size: 0.85rem;
}

.mockup-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.mockup-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 16px;
}

.mockup-list-item .item-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

.mockup-list-item .item-val {
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff;
}

.mockup-list-item .item-action {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Mockup Artwork Card */
.mockup-artwork-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  max-width: 450px;
  margin-left: auto;
  width: 100%;
  aspect-ratio: 16 / 10;
}

@media (max-width: 1000px) {
  .mockup-artwork-card {
    margin: 0 auto;
  }
}

.artwork-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.artwork-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(360deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.artwork-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(188, 228, 255, 0.8);
  font-weight: 700;
  margin-bottom: 6px;
}

.artwork-overlay h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.artwork-overlay p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Landing Footer */
.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 1200px;
  width: 100%;
  margin: 60px auto 0 auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 10;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 600px) {
  .landing-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-bottom: 30px;
  }
}

/* ==========================================================================
   Mobile Responsive Overrides
   ========================================================================== */

/* Global button styles for sidebar toggle (hidden on desktop) */
.sidebar-toggle-btn {
  display: none;
}
.sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  /* App Layout shifts to stack sidebar */
  .app-container {
    flex-direction: column;
    overflow-x: hidden;
  }

  /* Sidebar hidden off-screen by default */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.6);
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
  }

  /* Sidebar overlay */
  .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Main Content needs full width and top padding for fixed topbar */
  .main-content {
    height: calc(100vh - var(--topbar-height));
    margin-top: var(--topbar-height);
    padding: 0;
    overflow-y: auto;
    width: 100%;
  }

  .content-body {
    padding: 16px 12px;
  }

  /* Prevent Safari auto-zoom on inputs */
  input[type="text"], input[type="search"], select, textarea {
    font-size: 16px !important;
  }

  /* Search Container & Playlist Creator Fixes */
  .console-search-container {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
    border-radius: 12px !important;
  }
  .console-search-container .search-input-wrapper {
    width: 100% !important;
    min-width: 0 !important;
  }
  .console-search-container input {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 16px !important;
  }
  .console-search-container .btn {
    width: 100% !important;
    padding: 12px !important;
    height: auto !important;
  }

  .playlist-creator-card {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
  }
  .playlist-creator-card input {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 16px !important;
  }
  .playlist-creator-card .btn {
    width: 100% !important;
    padding: 12px !important;
  }

  /* Topbar fixed to top */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    z-index: 998;
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: rgba(11, 8, 18, 0.85);
    backdrop-filter: blur(12px);
  }

  .topbar-actions {
    margin-left: auto;
  }

  /* Show hamburger toggle button */
  .sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
  }

  .sidebar-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .sidebar-toggle-btn svg {
    width: 24px;
    height: 24px;
  }

  /* Overview Grid adjustments */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    margin-bottom: 20px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  /* Detail Rows stack */
  .details-row {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .detail-card {
    padding: 16px !important;
  }

  .node-item {
    padding: 10px 12px !important;
  }

  /* Active Players layout adjustments */
  .players-layout {
    grid-template-columns: 1fr !important;
    gap: 16px;
    height: auto;
  }

  .players-sidebar-card {
    max-height: 250px;
  }

  .active-players-list {
    max-height: 180px;
  }

  /* Player console panel adjustments */
  .player-console {
    padding: 16px;
  }

  .console-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .track-info-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 16px;
  }

  .disc-container {
    width: 90px;
    height: 90px;
    margin: 0 auto;
  }

  .disc-vinyl {
    width: 90px;
    height: 90px;
  }

  .vinyl-art {
    width: 45px;
    height: 45px;
  }

  .track-details {
    width: 100%;
  }

  .track-details h2 {
    font-size: 1.25rem;
  }

  .track-title {
    font-size: 1.2rem !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
  }

  .track-author {
    font-size: 0.95rem !important;
    white-space: normal !important;
  }

  /* Controls wrap layout */
  .playback-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .playback-controls .btn-control.main-btn {
    width: 50px;
    height: 50px;
  }

  /* Playlists Screen Grid */
  .playlists-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 12px !important;
  }

  .playlist-card {
    padding: 16px !important;
  }

  .playlist-card h4 {
    font-size: 1rem !important;
  }

  /* Library/Playlists responsive tables */
  .songs-table th:nth-child(3),
  .songs-table td:nth-child(3),
  .songs-table th:nth-child(4),
  .songs-table td:nth-child(4) {
    display: none; /* Hide artist and duration on small mobile screens to prevent squishing */
  }

  /* Landing view mobile */
  .landing-nav {
    padding: 16px;
  }

  .landing-main-layout {
    grid-template-columns: 1fr !important;
    gap: 32px;
    margin-top: 20px;
    padding: 0 16px;
  }

  .landing-hero-details {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .landing-headline {
    font-size: 2.2rem;
    text-align: center !important;
    line-height: 1.25 !important;
  }

  .landing-subtext {
    font-size: 0.95rem;
    margin-top: 16px;
    text-align: center !important;
    max-width: 100% !important;
  }

  .landing-sparkle-chip {
    display: inline-flex !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.8rem !important;
    margin-bottom: 16px !important;
    padding: 8px 16px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
  }

  .landing-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
    width: 100% !important;
  }

  .landing-invite-btn,
  .btn-cta-main {
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .landing-features-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    margin-top: 40px;
  }

  .mockup-panel, 
  .mockup-artwork-card {
    margin: 0 auto;
    max-width: 100%;
  }
}

/* Extra media queries for smaller phone devices (portrait) */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .topbar {
    padding: 0 12px !important;
  }
  .system-time {
    display: none !important; /* Save space on very small viewports */
  }
  .landing-headline {
    font-size: 1.85rem !important;
  }
  .landing-sparkle-chip {
    font-size: 0.75rem !important;
  }
}

/* Redeem Premium Access Tab Styles */
.points-stats-grid {
  margin-bottom: 30px;
}

#noprefix-status-text {
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  transition: all var(--transition-speed);
}

.redeem-section {
  margin-top: 40px;
}

.redeem-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.redeem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.redeem-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all var(--transition-speed);
  overflow: hidden;
}

.redeem-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.redeem-card.premium {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(188, 228, 255, 0.05) 0%, rgba(0,0,0,0) 100%), var(--bg-card);
  box-shadow: 0 4px 20px rgba(188, 228, 255, 0.05);
}

.redeem-card.premium:hover {
  box-shadow: 0 12px 30px rgba(188, 228, 255, 0.15);
}

.redeem-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.redeem-badge.highlight {
  background-color: var(--primary);
  color: #0b0c10;
  border: none;
  box-shadow: 0 0 8px var(--primary-glow);
}

.redeem-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.redeem-desc {
  font-size: 0.85rem;
  color: var(--text-dimmed);
  margin-bottom: 24px;
  line-height: 1.4;
}

.redeem-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 30px;
}

.price-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.price-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* User Sidebar Points styling */
.user-sidebar-points {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
  transition: opacity var(--transition-speed);
}

.nav-item:hover .user-sidebar-points {
  opacity: 1;
}

/* Smooth view-section transitions and animations */
.view-section {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* Float Animation for Cards */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

.stat-card, .server-card, .redeem-card, .playlist-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.stat-card:hover, .server-card:hover, .redeem-card:hover, .playlist-card:hover {
  transform: translateY(-5px) scale(1.01) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(188, 228, 255, 0.05) !important;
}

/* --- Premium Animations & Overlays --- */

/* Hardware-Accelerated Floating Background Blobs */
.app-container {
  position: relative;
  overflow: hidden;
}

.app-container::before,
.app-container::after {
  content: "";
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 228, 255, 0.04) 0%, rgba(9, 10, 15, 0) 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.app-container::before {
  top: -15%;
  left: -15%;
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

.app-container::after {
  bottom: -15%;
  right: -15%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.03) 0%, rgba(9, 10, 15, 0) 70%);
  animation: float-blob-2 30s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  55% { transform: translate3d(6vw, 4vh, 0) scale(1.08) rotate(180deg); }
  100% { transform: translate3d(-2vw, -6vh, 0) scale(0.92) rotate(360deg); }
}

@keyframes float-blob-2 {
  0% { transform: translate3d(0, 0, 0) scale(1.08) rotate(0deg); }
  45% { transform: translate3d(-6vw, -4vh, 0) scale(0.95) rotate(-180deg); }
  100% { transform: translate3d(2vw, 6vh, 0) scale(1.04) rotate(-360deg); }
}

/* Vinyl spinning animation */
.disc-vinyl {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.player-console.playing .disc-vinyl {
  animation: spin-vinyl 16s linear infinite;
}

@keyframes spin-vinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Bouncing sound wave bars equalizer */
.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.sound-wave .bar {
  width: 3px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: height 0.2s ease;
  will-change: height;
}

.player-console.playing .sound-wave .bar {
  animation: bounce-bar 0.8s ease-in-out infinite alternate;
}

.player-console.playing .sound-wave .bar:nth-child(1) { animation-delay: 0.1s; animation-duration: 0.75s; }
.player-console.playing .sound-wave .bar:nth-child(2) { animation-delay: 0.25s; animation-duration: 0.85s; }
.player-console.playing .sound-wave .bar:nth-child(3) { animation-delay: 0.05s; animation-duration: 0.65s; }
.player-console.playing .sound-wave .bar:nth-child(4) { animation-delay: 0.35s; animation-duration: 0.9s; }
.player-console.playing .sound-wave .bar:nth-child(5) { animation-delay: 0.18s; animation-duration: 0.8s; }

@keyframes bounce-bar {
  0% { height: 4px; }
  100% { height: 22px; }
}

/* Shimmer Loading Skeleton */
.skeleton-loader {
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.skeleton-loader::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translate3d(-100%, 0, 0);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.03) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.6s infinite;
  will-change: transform;
}

@keyframes shimmer {
  100% {
    transform: translate3d(100%, 0, 0);
  }
}

/* Developer Profile Card */
.landing-dev-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(188, 228, 255, 0.08);
  padding: 12px 20px;
  border-radius: 20px;
  margin-top: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 0 12px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  max-width: fit-content;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.35s;
  will-change: transform, opacity;
}

.landing-dev-card:hover {
  background: rgba(188, 228, 255, 0.04);
  border-color: rgba(188, 228, 255, 0.25);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(188, 228, 255, 0.08), 0 0 15px rgba(188, 228, 255, 0.05);
}

.dev-avatar-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
}

.dev-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  object-fit: cover;
  background-color: #0b0c10;
}

.dev-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--success);
  border: 2px solid #09060f;
  box-shadow: 0 0 8px var(--success);
}

.dev-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dev-badge svg {
  width: 12px;
  height: 12px;
}

.dev-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

/* Landing Page Overhaul Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-mockup {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes float-mockup-alt {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 15px rgba(188, 228, 255, 0.03); }
  50% { box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(188, 228, 255, 0.15); }
  100% { box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 15px rgba(188, 228, 255, 0.03); }
}

/* Apply Entry Animations to Landing Elements */
.landing-nav {
  animation: fadeInUp 0.8s ease-out forwards;
}

.landing-sparkle-chip {
  animation: fadeInUp 0.8s ease-out forwards;
  will-change: transform, opacity;
}

.landing-headline {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.1s;
  will-change: transform, opacity;
}

.landing-subtext {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
  will-change: transform, opacity;
}

.landing-cta-row {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
  will-change: transform, opacity;
}

.landing-features-grid {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.45s;
  will-change: transform, opacity;
}

/* Graphic Mockups Floating and Glow Animations */
.mockup-panel {
  animation: fadeInUp 0.8s ease-out forwards, float-mockup 6s ease-in-out infinite, pulseGlow 4s ease-in-out infinite;
  animation-delay: 0.25s, 1s, 1s;
  will-change: transform, opacity, box-shadow;
}

.mockup-artwork-card {
  animation: fadeInUp 0.8s ease-out forwards, float-mockup-alt 7s ease-in-out infinite;
  animation-delay: 0.35s, 1.5s;
  will-change: transform, opacity;
}

/* Features Cards Interactive Hover States */
.landing-feature-card {
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  padding: 16px;
  border-radius: 16px;
  background-color: transparent;
  border: 1px solid transparent;
}

.landing-feature-card:hover {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.landing-feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
  background-color: var(--primary);
  color: #090a0f;
  box-shadow: 0 0 15px var(--primary-glow);
  border-color: var(--primary);
}

.feature-icon-wrapper {
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}



