
:root {
  color-scheme: dark;
  --bg: #060606;
  --bg2: #0D0D0D;
  --bg3: #161616;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.12);
  --blue: #FFFFFF;
  --blue-light: #E7E7EC;
  --cyan: #C7C7D1;
  --green: #10B981;
  --text: #F8FAFC;
  --text-muted: #52525B;
  --text-dim: #A1A1AA;
  --grad: linear-gradient(135deg, #FFFFFF 0%, #C6C6CE 55%, #FFFFFF 100%);
  --grad-cyan: linear-gradient(135deg, #FFFFFF, #8E8E96);
  --grad-dark: linear-gradient(135deg, #050505, #1C1C1E);
  --on-light: #0A0A0A;
  --shadow-blue: 0 0 32px rgba(255, 255, 255, 0.18);
  --shadow-cyan: 0 0 28px rgba(255, 255, 255, 0.14);
  --radius: 16px;
  --radius-sm: 8px;
}

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


a { color: inherit; text-decoration: none; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}


.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation: orb-float 10s ease-in-out infinite;
}
.bg-orb.o1 { width: 600px; height: 600px; background: var(--blue); top: -200px; left: -100px; animation-delay: 0s; }
.bg-orb.o2 { width: 500px; height: 500px; background: var(--cyan); bottom: -100px; right: -100px; animation-delay: -3.5s; }
.bg-orb.o3 { width: 350px; height: 350px; background: #9A9AA5; top: 40%; left: 35%; animation-delay: -6s; }

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


.bg-logo {
  position: fixed;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background-image: url('../img/logo-bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.09;
  filter: grayscale(1) brightness(1.6);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
@media (max-width: 768px) {
  .bg-logo { width: 320px; height: 320px; }
}


.ai-chat-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--on-light);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  z-index: 500;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ai-chat-fab:hover { transform: scale(1.08); box-shadow: 0 0 40px rgba(255, 255, 255, 0.28); }
.ai-chat-fab:active { transform: scale(0.96); }
.ai-chat-fab-dot {
  position: absolute; top: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg);
}
.ai-chat-tip {
  position: fixed;
  bottom: 88px; right: 24px;
  max-width: 240px;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .82rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
  z-index: 501;
}
.ai-chat-tip.show { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
  .ai-chat-fab { bottom: 18px; right: 18px; width: 48px; height: 48px; }
  .ai-chat-tip { bottom: 76px; right: 18px; }
}


.ai-chat-panel {
  position: fixed;
  bottom: 90px; right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  z-index: 502;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.ai-chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.ai-chat-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg3);
}
.ai-chat-head-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .92rem;
}
.ai-chat-close {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; display: flex; padding: 4px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.ai-chat-close:hover { color: var(--text); background: var(--glass); }

.ai-chat-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 14px;
}


.ai-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 92%;
}
.ai-chat-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ai-chat-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ai-chat-row.user .ai-chat-col { align-items: flex-end; }

.ai-chat-name {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0 2px;
}


.ai-chat-avatar {
  flex: 0 0 auto;
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  transition: transform .15s ease;
}
.ai-chat-avatar:hover { transform: scale(1.06); }
.ai-chat-avatar img,
.ai-chat-avatar .ai-chat-avatar-img,
.ai-chat-avatar .ai-chat-avatar-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: #fff;
}
.ai-chat-avatar img { display: block; }
.ai-chat-avatar-fallback { color: var(--text-dim); }
.ai-chat-avatar-fallback i { width: 16px; height: 16px; }
.ai-chat-avatar-roger .ai-chat-avatar-fallback { background: var(--grad-dark); }

.ai-chat-avatar-sm { width: 22px; height: 22px; margin-right: 2px; cursor: pointer; }

.ai-chat-msg {
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: .86rem;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.ai-chat-msg.assistant {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-top-left-radius: 4px;
}
.ai-chat-msg.user {
  background: var(--grad);
  color: var(--on-light);
  border-top-right-radius: 4px;
  font-weight: 500;
}
.ai-chat-msg.typing {
  display: flex; align-items: center; gap: 4px;
  padding: 12px 14px;
}
.ai-chat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim);
  animation: ai-chat-bounce 1.2s ease-in-out infinite;
}
.ai-chat-dot:nth-child(2) { animation-delay: .15s; }
.ai-chat-dot:nth-child(3) { animation-delay: .3s; }
@keyframes ai-chat-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ai-chat-form {
  flex: 0 0 auto;
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg3);
}
.ai-chat-input {
  flex: 1 1 auto;
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text);
  font-size: .86rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease;
}
.ai-chat-input:focus { border-color: var(--text-dim); }
.ai-chat-send {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: none;
  background: var(--grad);
  color: var(--on-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.ai-chat-send:hover { transform: scale(1.06); }
.ai-chat-send:active { transform: scale(.94); }

@media (max-width: 768px) {
  .ai-chat-panel {
    bottom: 76px; right: 16px;
    width: calc(100vw - 32px);
    height: calc(100vh - 160px);
  }
}


#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 75px;
  background: rgba(7, 7, 7, 0.82);
  -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
}
#navbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3) 15%, rgba(255,255,255,.3) 85%, transparent);
}
#navbar::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(560px 75px at 10% 0%, rgba(255,255,255,.05), transparent 70%);
}
#navbar > .nav-logo { order: -2; }
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 950; letter-spacing: -0.03em;
  background: var(--grad-cyan); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none; cursor: pointer;
}
.nav-logo svg, .nav-logo-img {
  width: 38px; height: 38px; flex-shrink: 0; object-fit: contain; padding: 6px; box-sizing: border-box;
  border-radius: 11px; border: 1px solid var(--glass-border);
  background: linear-gradient(155deg, rgba(255,255,255,.14), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 4px 12px rgba(0,0,0,.35);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav-logo:hover .nav-logo-img { border-color: rgba(255,255,255,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 4px 14px rgba(0,0,0,.4), 0 0 16px rgba(255,255,255,.12); }


.nav-links {
  display: flex; align-items: center; gap: 2px; position: relative;
  padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 5px rgba(0,0,0,.5), inset 0 -1px 0 rgba(255,255,255,.03);
}
.nav-links a {
  position: relative; z-index: 1;
  color: var(--text-dim); text-decoration: none; font-size: .85rem; font-weight: 620;
  transition: color .18s ease; display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
}
.nav-links a::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
  background: transparent; transition: background .18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::before { background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--on-light); font-weight: 750; }
.nav-links a.active::before {
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(0,0,0,.4), 0 0 18px rgba(255,255,255,.16);
}
.nav-links a.active:hover::before { background: var(--grad); }

.nav-auth { display: flex; align-items: center; gap: 16px; }


#nav-burger {
  display: none; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text);
  width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer;
}
#mobile-menu {
  display: none; position: fixed; top: 75px; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(6, 6, 6, 0.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border);
  padding: 1.2rem 1.5rem; flex-direction: column; gap: 10px; align-content: flex-start;
  overflow-y: auto;
}
#mobile-menu.open { display: flex; animation: fade-in .2s ease; }
.mobile-menu-link {
  display: flex; align-items: center; gap: 10px; padding: 12px 6px; color: var(--text-dim);
  text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--glass-border);
}
.mobile-menu-link:hover { color: var(--cyan); }


.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 50px;
  font-size: .875rem; font-weight: 600; cursor: pointer; border: none; transition: all .25s ease;
  font-family: 'Inter', sans-serif; text-decoration: none; outline: none;
}
.btn:active { transform: scale(.97); }
.join-btn:active, .filter-btn:active, .card-fav-btn:active { transform: scale(.94); }
.btn-ghost { background: var(--glass); color: var(--text-dim); border: 1px solid var(--glass-border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.btn-primary { background: var(--grad); color: var(--on-light); box-shadow: var(--shadow-blue); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(255, 255, 255, 0.6);
  filter: brightness(1.1);
}
.btn-outline { background: transparent; color: var(--blue-light); border: 1px solid var(--blue); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); box-shadow: var(--shadow-blue); }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; font-size: .95rem; }
.btn-danger { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }


#user-menu { position: relative; }
.user-avatar-btn {
  position: relative;
  display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border-radius: 50px; border: 1px solid var(--glass-border); background: var(--glass);
  cursor: pointer; transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.user-avatar-btn:hover {
  border-color: transparent;
  background:
    linear-gradient(var(--bg3), var(--bg3)) padding-box,
    linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.08) 60%, rgba(255,255,255,.3)) border-box;
  box-shadow: 0 6px 20px rgba(0,0,0,.35), var(--shadow-cyan);
  transform: translateY(-1px);
}
.avatar-circle {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: .85rem; font-weight: 750; color: #fff; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 -3px 6px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.35);
  transition: box-shadow .25s ease;
}
.user-avatar-btn:hover .avatar-circle { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), inset 0 -3px 6px rgba(0,0,0,.25), 0 2px 10px rgba(0,0,0,.4), 0 0 14px rgba(255,255,255,.15); }
.user-avatar-btn .username { font-size: .875rem; font-weight: 700; color: var(--text); letter-spacing: -.005em; }
.user-avatar-btn > i[data-lucide="chevron-down"] { transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1); }
#user-menu:has(.dropdown-menu.open) .user-avatar-btn > i[data-lucide="chevron-down"] { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 226px;
  border-radius: 16px; border: 1px solid transparent;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    linear-gradient(160deg, rgba(255,255,255,.32), rgba(255,255,255,.05) 45%, rgba(255,255,255,.18)) border-box;
  padding: 8px; display: none; z-index: 100;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), var(--shadow-blue);
  -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
}
.dropdown-menu.open { display: block; animation: dropdown-in .22s cubic-bezier(0.16, 1, 0.3, 1); transform-origin: top right; }
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-item {
  position: relative;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; border-radius: 9px;
  color: var(--text-dim); font-size: .875rem; font-weight: 550; cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.dropdown-item i { transition: transform .18s ease; }
.dropdown-item:hover { background: var(--glass); color: var(--text); }
.dropdown-item:hover i { transform: scale(1.08); color: var(--cyan); }
.dropdown-item.red { color: #fda4af; }
.dropdown-item.red:hover { background: rgba(244, 63, 94, 0.12); color: #f43f5e; }
.dropdown-item.red:hover i { color: #f43f5e; }
.dropdown-divider { height: 1px; margin: 8px 4px; border: none; background: linear-gradient(90deg, transparent, var(--glass-border) 30%, var(--glass-border) 70%, transparent); }


.ctx-menu {
  position: fixed; z-index: 1000; min-width: 210px; padding: 8px;
  background: var(--bg2); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), var(--shadow-blue);
  -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
  display: flex; flex-direction: column; gap: 1px;
  animation: fade-in .15s cubic-bezier(0.16, 1, 0.3, 1);
}
.ctx-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 6px;
  background: none; border: none; color: var(--text-dim); font-size: .875rem; font-family: inherit;
  cursor: pointer; text-align: left; white-space: nowrap; transition: all .2s;
}
.ctx-menu-item:hover { background: var(--glass); color: var(--cyan); }
.ctx-menu-item.danger { color: #fda4af; }
.ctx-menu-item.danger:hover { background: rgba(244, 63, 94, 0.12); color: #f43f5e; }
.ctx-menu-sep { height: 1px; background: var(--glass-border); margin: 8px 0; }


.report-reason-list { display: flex; flex-direction: column; gap: 6px; }
.report-reason-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border); background: rgba(13,13,13,.35); cursor: pointer;
  font-size: .85rem; color: var(--text-dim); transition: all .15s;
}
.report-reason-item:hover { border-color: rgba(255,255,255,.22); color: var(--text); }
.report-reason-item input[type="radio"] { accent-color: var(--cyan); width: 15px; height: 15px; flex-shrink: 0; }
.report-reason-item:has(input:checked) { border-color: var(--cyan); background: rgba(6, 182, 212, 0.08); color: var(--text); }


#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 110px 2.5rem 60px; position: relative; overflow: hidden;
}
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px; font-size: .8rem; font-weight: 650; color: var(--cyan); margin-bottom: 1.8rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.hero-badge span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--green); } 50% { opacity: .4; transform: scale(0.8); } }
.hero-title {
  font-family: 'Outfit', sans-serif; font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 950; line-height: 1.08; margin-bottom: 1.5rem; letter-spacing: -0.03em;
}
.hero-title .grad-text {
  background: linear-gradient(90deg, #FFFFFF, #F2F2F4, #9A9AA5, #FFFFFF);
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: grad-shift 6s ease-in-out infinite;
}
@keyframes grad-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-desc { font-size: 1.1rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 2.2rem; max-width: 500px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--glass-border); }
.stat-item .stat-num { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 850; background: var(--grad-cyan); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item .stat-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }


.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; }
.hero-card {
  width: 100%; max-width: 380px; background: rgba(13, 13, 13, 0.4); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius); padding: 26px; -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), var(--shadow-blue);
  animation: hero-card-float 5s ease-in-out infinite;
}
@keyframes hero-card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.live-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; flex-shrink: 0; animation: pulse-dot 1.5s infinite; }
.hero-card-title { font-weight: 700; font-size: 1.05rem; font-family: 'Outfit', sans-serif; }
.hero-card-sub { font-size: .8rem; color: var(--cyan); font-weight: 600; margin-left: auto; }
.hero-visualizer { display: flex; align-items: flex-end; gap: 4px; height: 70px; justify-content: center; }
.hero-bar {
  width: 6px; border-radius: 3px; background: var(--grad-cyan);
  height: var(--min, 10px);
  animation: hero-bar-bounce var(--dur, .8s) ease-in-out infinite alternate;
}
@keyframes hero-bar-bounce { from { height: var(--min, 10px); } to { height: var(--max, 60px); } }
.hero-track-info { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.hero-thumb { width: 50px; height: 50px; border-radius: 12px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; box-shadow: var(--shadow-blue); }
.hero-track-name { font-weight: 600; font-size: .95rem; }
.hero-track-artist { font-size: .8rem; color: var(--text-dim); }


#page-head { max-width: 1200px; margin: 0 auto; padding: 110px 2.5rem 0; position: relative; z-index: 1; width: 100%; flex-shrink: 0; }
.page-head-title { font-family: 'Outfit', sans-serif; font-size: 1.9rem; font-weight: 900; display: flex; align-items: center; gap: 12px; letter-spacing: -0.02em; }
.page-head-sub { color: var(--text-dim); font-size: .92rem; margin-top: .4rem; }


#home-feed { max-width: 1200px; margin: 0 auto; padding: 110px 2.5rem 90px; position: relative; z-index: 1; width: 100%; flex: 1; }
.home-search-bar { max-width: 640px; margin: 0 auto 3rem; }
.home-search-bar .channels-search { max-width: none; margin: 0; }
.home-row { margin-bottom: 3.2rem; }
.home-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.home-row-head h2 {
  font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.home-row-head a { color: var(--cyan); font-size: .85rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.home-row-head a:hover { text-decoration: underline; }
.home-row-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.home-empty-hint { color: var(--text-muted); font-size: .88rem; padding: 1.2rem 0; }


#features { max-width: 1200px; margin: 0 auto; padding: 40px 2.5rem 100px; position: relative; z-index: 1; width: 100%; }
.landing-head { text-align: center; max-width: 620px; margin: 0 auto 3.2rem; }
.landing-eyebrow { color: var(--cyan); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.landing-head .section-title { margin-bottom: .8rem; }
.landing-head p { color: var(--text-dim); font-size: 1rem; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.feature-card {
  background: rgba(13, 13, 13, 0.35); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.25); box-shadow: var(--shadow-blue); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--grad); color: var(--on-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: var(--shadow-blue);
}
.feature-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-dim); font-size: .88rem; line-height: 1.65; }


#how-it-works { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem 100px; position: relative; z-index: 1; width: 100%; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; counter-reset: step; }
.step-card { position: relative; padding: 30px 24px 24px; background: rgba(13,13,13,.25); border: 1px solid var(--glass-border); border-radius: var(--radius); }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.02rem; font-weight: 750; margin-bottom: 8px; }
.step-card p { color: var(--text-dim); font-size: .86rem; line-height: 1.6; }


#cta-banner { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem 110px; position: relative; z-index: 1; width: 100%; }
.cta-banner-inner {
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--glass-border); border-radius: 24px; padding: 56px 40px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}
.cta-banner-inner h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 900; letter-spacing: -0.02em; max-width: 560px; }
.cta-banner-inner p { color: var(--text-dim); font-size: 1rem; max-width: 480px; }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 700px) {
  #features, #how-it-works, #cta-banner { padding-left: 1.2rem; padding-right: 1.2rem; }
  .cta-banner-inner { padding: 40px 24px; }
}


#channels-section { padding: 40px 2.5rem 90px; position: relative; z-index: 1; flex: 1; }
.section-header { max-width: 1200px; margin: 0 auto 3rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.section-title { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 900; letter-spacing: -0.02em; }
.section-title span { background: var(--grad-cyan); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.genre-filters { display: flex; gap: 10px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto 2.5rem; }
.filter-btn {
  padding: 10px 22px; border-radius: 50px; border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text-dim); font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all .25s ease; display: flex; align-items: center; gap: 8px;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(255, 255, 255, 0.12); border-color: var(--blue); color: var(--blue-light);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
.channels-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }


.channels-toolbar { max-width: 1200px; margin: 0 auto 1.4rem; display: flex; gap: 12px; flex-wrap: wrap; }
.channels-search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 50px; color: var(--text-muted); transition: border-color .2s;
}
.channels-search:focus-within { border-color: var(--blue); }
.channels-search input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: .88rem;
}
.channels-search input::placeholder { color: var(--text-muted); }
.channels-sort {
  padding: 11px 16px; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 50px; color: var(--text-dim); font-size: .85rem; font-family: 'Inter', sans-serif;
  cursor: pointer; outline: none;
}
.channels-sort:focus { border-color: var(--blue); }


.card-fav-btn {
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-muted);
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.card-fav-btn:hover { color: #fbbf24; border-color: rgba(251,191,36,.4); }
.card-fav-btn.active { color: #fbbf24; border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.12); }
.card-fav-btn.active svg { fill: #fbbf24; }


.channel-card {
  background: rgba(13, 13, 13, 0.35); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 26px; cursor: pointer; transition: all .3s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.channel-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-cyan); opacity: 0; transition: opacity .3s;
}
.channel-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), var(--shadow-cyan);
}
.channel-card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.card-genre-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 50px; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em;
}
.live-badge {
  display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 50px;
  background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: .72rem; font-weight: 750; color: var(--green);
}
.live-badge span { width: 5px; height: 5px; background: var(--green); border-radius: 50%; animation: pulse-dot 1.5s infinite; }
.card-name { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.card-desc { font-size: .85rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 14px; }

.card-now-playing {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--glass-border); border-radius: 12px;
}
.card-now-thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg3); }
.card-now-info { min-width: 0; flex: 1; }
.card-now-label {
  display: flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin-bottom: 2px;
}
.card-now-label span { width: 5px; height: 5px; background: var(--green); border-radius: 50%; animation: pulse-dot 1.5s infinite; flex-shrink: 0; }
.card-now-title {
  font-size: .84rem; font-weight: 650; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card-creator { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-muted); margin-bottom: 14px; }
.card-creator strong { color: var(--text-dim); font-weight: 650; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-listeners { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-dim); }
.join-btn {
  padding: 9px 20px; border-radius: 50px; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35); color: var(--blue-light);
  font-size: .82rem; font-weight: 750; cursor: pointer; transition: all .25s;
}
.join-btn:hover { background: var(--grad); border-color: transparent; color: var(--on-light); box-shadow: var(--shadow-blue); }


.modal-overlay {
  position: fixed; inset: 0; background: rgba(6, 6, 6, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg2); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px;
  padding: 2.2rem; width: 92%; max-width: 440px;
  transform: translateY(30px) scale(0.96); transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75), var(--shadow-blue);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }
.modal-title { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 850; letter-spacing: -0.01em; }
.modal-close { background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-dim); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.modal-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 13px 18px; background: var(--bg3); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text); font-size: .92rem; font-family: 'Inter', sans-serif;
  transition: all .25s ease; outline: none;
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2); }
.form-input::placeholder { color: var(--text-muted); }
select.form-input {
  color-scheme: dark; appearance: none; -webkit-appearance: none; -moz-appearance: none;
  cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8A93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 15px;
}
select.form-input option { background: var(--bg3); color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  font-size: .9rem; color: var(--text-dim); user-select: none; position: relative;
  padding: 10px 12px; border-radius: 12px; border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.form-check:hover { background: rgba(255, 255, 255, 0.03); }
.form-check-input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; cursor: pointer;
}
.form-check-input:focus-visible { outline: none; }
.form-check-box {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  background: var(--bg3); border: 1.5px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: transparent; transition: background .25s ease, border-color .25s ease,
    box-shadow .25s ease, transform .15s ease;
}
.form-check-box svg, .form-check-box i {
  stroke-width: 3; transform: scale(0) rotate(-20deg); opacity: 0;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), opacity .15s ease;
}
.form-check-input:checked + .form-check-box {
  background: var(--grad); border-color: transparent; color: var(--on-light);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15), 0 2px 12px rgba(255, 255, 255, 0.4);
}
.form-check-input:checked + .form-check-box svg,
.form-check-input:checked + .form-check-box i { transform: scale(1) rotate(0); opacity: 1; }
.form-check-input:hover + .form-check-box { border-color: var(--blue-light); }
.form-check-input:checked:hover + .form-check-box { filter: brightness(1.1); }
.form-check-input:focus-visible + .form-check-box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form-check:has(.form-check-input:checked) { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); }
.form-check:active .form-check-box { transform: scale(.88); }
.form-check-label-main { color: var(--text); font-weight: 550; }
.form-check-label-sub { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 1px; }
.form-error { color: #fca5a5; font-size: .82rem; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.form-success { color: var(--green); font-size: .82rem; margin-top: 8px; }
.modal-footer { margin-top: 1.5rem; text-align: center; font-size: .85rem; color: var(--text-dim); }
.modal-footer a { color: var(--blue-light); cursor: pointer; font-weight: 650; }
.modal-footer a:hover { text-decoration: underline; color: var(--cyan); }
.btn-full { width: 100%; justify-content: center; padding: 14px; font-size: .95rem; border-radius: var(--radius-sm); }


.auth-modal { max-width: 400px; }
.auth-tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 1.4rem;
  background: var(--bg3); border: 1px solid var(--glass-border); border-radius: 12px;
}
.auth-tab {
  flex: 1; padding: 9px 10px; border: none; border-radius: 9px; background: transparent;
  color: var(--text-dim); font-size: .84rem; font-weight: 700; cursor: pointer; transition: all .2s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: var(--grad); color: var(--on-light); box-shadow: var(--shadow-blue); }
.auth-discord-btn { margin-bottom: 1.2rem; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 0 0 1.2rem;
  color: var(--text-muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }
#auth-form .form-group:last-of-type { margin-bottom: 0; }
#auth-form .form-error { margin-bottom: 1rem; }
#auth-submit-btn { margin-top: 1.2rem; }


.genre-select-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.genre-select-btn {
  padding: 10px 4px; border-radius: 8px; border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text-dim); font-size: .72rem; font-weight: 650;
  cursor: pointer; text-align: center; transition: all .2s;
}
.genre-select-btn:hover, .genre-select-btn.selected {
  border-color: var(--blue); background: rgba(255, 255, 255, 0.15); color: var(--blue-light);
}


.profile-avatar-preview {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; display: flex;
  align-items: center; justify-content: center; font-family: 'Outfit', sans-serif;
  font-size: 1.7rem; font-weight: 850; color: #fff; box-shadow: inset 0 0 14px rgba(255,255,255,.3), var(--shadow-blue);
  transition: background .2s;
}
.avatar-color-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.avatar-swatch {
  width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
  transition: all .2s; box-shadow: inset 0 0 6px rgba(255,255,255,.25);
}
.avatar-swatch:hover { transform: scale(1.12); }
.avatar-swatch.selected { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--bg2), 0 0 0 4px var(--cyan), inset 0 0 6px rgba(255,255,255,.25); }
textarea.form-input { font-family: 'Inter', sans-serif; }


.groups-actions-row { display: flex; gap: 10px; margin-bottom: 1.2rem; flex-wrap: wrap; }
.groups-subform { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1.2rem; animation: fade-in .2s ease; }
.groups-list { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.groups-empty { text-align: center; color: var(--text-muted); font-size: .85rem; padding: 2rem 1rem; }
.group-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color .2s; }
.group-card:hover { border-color: rgba(255, 255, 255, 0.3); }
.group-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.group-card-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; }
.group-owner-badge { font-size: .68rem; font-weight: 750; color: var(--blue-light); background: rgba(255, 255, 255,.12); border: 1px solid rgba(255, 255, 255,.3); padding: 2px 9px; border-radius: 50px; white-space: nowrap; }
.group-card-members { font-size: .8rem; color: var(--text-dim); margin-bottom: 10px; }
.group-card-members code { background: rgba(255, 255, 255,.1); color: var(--cyan); padding: 1px 7px; border-radius: 5px; letter-spacing: .1em; font-weight: 700; }
.group-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }


#online-count-badge {
  position: fixed; top: 87px; right: 1.2rem; z-index: 950;
  display: flex; align-items: center; gap: 7px;
  background: var(--bg2); border: 1px solid var(--glass-border); border-radius: 50px;
  padding: 7px 14px 7px 11px; font-size: .74rem; font-weight: 600; color: var(--text-dim);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); pointer-events: none; user-select: none;
}
#online-count-badge #online-count-num { color: var(--text); font-weight: 750; }
.online-count-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10B981; flex-shrink: 0;
  box-shadow: 0 0 6px rgba(16, 185, 129, .8); animation: online-dot-pulse 2s ease-in-out infinite;
}
@keyframes online-dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (max-width: 640px) { #online-count-badge { top: 87px; right: .6rem; padding: 6px 12px 6px 10px; font-size: .7rem; } }


#toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 15px 20px;
  background: var(--bg2); border: 1px solid var(--glass-border); border-radius: 12px;
  min-width: 300px; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.55), var(--shadow-blue);
  animation: toast-in .3s ease; font-size: .9rem;
}
.toast.success { border-color: rgba(16, 185, 129, 0.45); }
.toast.error { border-color: rgba(239, 68, 68, 0.45); }
.toast.info { border-color: rgba(255, 255, 255, 0.45); }

@keyframes toast-in { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:translateX(0); } }
@keyframes toast-out { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(100%); } }


.site-footer {
  border-top: 1px solid var(--glass-border);
  background: var(--bg2);
  position: relative; z-index: 1;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-main {
  max-width: 1400px; margin: 0 auto;
  padding: 3.2rem 2.5rem 2.4rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.4rem;
}

.footer-brand .footer-logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--text);
  margin-bottom: .9rem;
}
.footer-brand .footer-logo img { width: 28px; height: 28px; border-radius: 8px; }
.footer-brand p { color: var(--text-muted); font-size: .85rem; line-height: 1.65; max-width: 320px; }

.footer-socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-dim); transition: color .15s, border-color .15s, transform .15s;
}
.footer-socials a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }

.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-col h3 {
  font-family: 'Outfit', sans-serif; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: .3rem;
}
.footer-col a { color: var(--text-muted); font-size: .88rem; transition: color .15s; width: fit-content; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  max-width: 1400px; margin: 0 auto;
  padding: 1.4rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .8rem;
}
.footer-bottom p { color: var(--text-muted); font-size: .82rem; }
.footer-bottom-links { display: flex; align-items: center; gap: .7rem; font-size: .82rem; color: var(--text-muted); }
.footer-bottom-links a { color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--cyan); }
.footer-bottom-links span { color: var(--glass-border); }

@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; padding: 2.4rem 1.4rem 1.6rem; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 1.2rem 1.4rem; }
}


@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: slide-up .5s ease forwards; }


.empty-state { text-align: center; padding: 5rem 2rem; color: var(--text-muted); grid-column: 1/-1; }
.empty-state h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.2rem; color: var(--text-dim); }


html, body {
  cursor: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M4%202%20L4%2020.5%20L8.6%2016.3%20L11.6%2022.2%20L14.3%2020.9%20L11.3%2015%20L17.2%2015%20Z%22%20fill%3D%22%23FFFFFF%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.3%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E') 2 2, auto;
}
a, button, [role="button"], select, .filter-btn, .genre-btn, .genre-select-btn, .channel-card,
.join-btn, .card-fav-btn, .icon-btn, .ctrl-btn, .avatar-swatch, .group-card, .sidebar-tab,
.modal-close, .form-check, input[type="checkbox"], input[type="range"], .search-btn,
.mobile-menu-link, .dropdown-item, .user-avatar-btn {
  cursor: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M4%202%20L4%2020.5%20L8.6%2016.3%20L11.6%2022.2%20L14.3%2020.9%20L11.3%2015%20L17.2%2015%20Z%22%20fill%3D%22%23E7E7EC%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.3%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E') 2 2, pointer;
}


::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.4); border-radius: 3px; }


a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}


@media (max-width: 1024px) {
  .hero-inner { gap: 3rem; }
  .hero-title { font-size: clamp(2.4rem, 5vw, 3.8rem); }
  #channels-section { padding: 70px 1.8rem; }
  #hero { padding: 100px 1.8rem 50px; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  #navbar { padding: 0 1.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .genre-select-grid { grid-template-columns: repeat(3, 1fr); }
  #hero { padding: 100px 1.2rem 50px; }
  #channels-section { padding: 60px 1.2rem; }
  .channels-toolbar { flex-direction: column; }
  .channels-search { min-width: 0; }
  .section-header { margin-bottom: 2rem; }
  .modal { padding: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }

  
  .form-input, input[type="text"], input[type="search"], input[type="email"],
  input[type="password"], textarea { font-size: 16px; }
}


@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-auth { display: none !important; }
  #nav-burger { display: flex; }

  #nav-user-area { gap: 6px; }
  
  .user-avatar-btn .username { display: none; }
  .user-avatar-btn > i[data-lucide="chevron-down"] { display: none; }
  .user-avatar-btn { padding: 4px; gap: 0; }
  #notif-bell-btn, #friends-btn { width: 36px; height: 36px; }
  
  .dropdown-menu { right: -6px; min-width: 210px; max-width: calc(100vw - 24px); }
}

@media (max-width: 520px) {
  .nav-logo { font-size: 1.25rem; }
  .nav-logo svg, .nav-logo-img { width: 28px; height: 28px; }
  .hero-badge { font-size: .72rem; padding: 6px 14px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero-desc { font-size: .98rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.2rem; padding-top: 1.8rem; margin-top: 2.4rem; }
  .stat-item .stat-num { font-size: 1.5rem; }
  .section-title { font-size: 1.7rem; }
  .channels-grid { grid-template-columns: 1fr; gap: 16px; }
  .channel-card { padding: 20px; }
  .genre-select-grid { grid-template-columns: repeat(2, 1fr); }
  .avatar-color-grid { grid-template-columns: repeat(6, 1fr); }
  #toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
  .toast { min-width: 0; width: 100%; }
  .modal { padding: 1.3rem; border-radius: 16px; }
  .modal-title { font-size: 1.25rem; }
}


@media (hover: none) {
  .btn, .filter-btn, .join-btn, .card-fav-btn, .icon-btn { min-height: 40px; }
  .card-fav-btn { width: 34px; height: 34px; }
}


#sidebar-toggle { display: none !important; }


#cat-sidebar {
  position: fixed; top: 91px; left: 16px; bottom: 16px; z-index: 900;
  width: 252px; padding: .9rem .8rem 1.1rem;
  border: 1px solid transparent; border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(14,14,14,.9), rgba(9,9,9,.86)) padding-box,
    linear-gradient(165deg, rgba(255,255,255,.18), rgba(255,255,255,.03) 45%, rgba(255,255,255,.1)) border-box;
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 26px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  transform: translateX(calc(-100% - 32px));
  transition: transform .25s ease, width .3s cubic-bezier(0.16, 1, 0.3, 1), padding .3s ease;
}
#cat-sidebar::before {
  content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35) 25%, rgba(255,255,255,.35) 75%, transparent);
  opacity: .8; pointer-events: none;
}


.cat-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: .1rem .3rem .8rem; flex-shrink: 0; }
.cat-sidebar-head-label {
  font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-muted); white-space: nowrap; overflow: hidden;
}
.cat-sidebar-collapse-btn {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-dim);
  cursor: pointer; transition: all .2s ease;
}
.cat-sidebar-collapse-btn:hover { background: rgba(255,255,255,.09); color: var(--text); border-color: rgba(255,255,255,.25); }
.cat-sidebar-collapse-btn i { width: 15px; height: 15px; transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1); }
#cat-sidebar.collapsed .cat-sidebar-collapse-btn i { transform: rotate(180deg); }

.cat-list { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid var(--glass-border); }
.cat-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 13px;
  color: var(--text-dim); text-decoration: none; font-size: .88rem; font-weight: 560;
  transition: background .18s ease, color .18s ease, transform .18s ease; position: relative;
}
.cat-item span { white-space: nowrap; overflow: hidden; }
.cat-item i {
  width: 30px; height: 30px; flex-shrink: 0; padding: 7px; box-sizing: border-box;
  border-radius: 10px; background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .18s ease;
}
.cat-item:hover { background: rgba(255,255,255,.05); color: var(--text); transform: translateX(1px); }
.cat-item:hover i { background: rgba(255,255,255,.1); border-color: var(--glass-border); transform: scale(1.06); }
.cat-item.active {
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14); color: var(--text); padding: 8px 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.cat-item.active::before {
  content: ''; position: absolute; left: -9px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 58%; border-radius: 3px; background: var(--grad);
  box-shadow: 0 0 10px rgba(255,255,255,.35);
}
.cat-item.active i { background: var(--grad); color: var(--on-light); box-shadow: 0 4px 12px rgba(0,0,0,.35), 0 0 14px rgba(255,255,255,.12); }
.cat-item .cat-soon {
  margin-left: auto; font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .03em;
  color: var(--text-muted); background: rgba(255,255,255,0.06); padding: 3px 7px; border-radius: 20px;
  border: 1px solid var(--glass-border); white-space: nowrap;
}


.cat-sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: .85rem; }

.cat-sidebar-footer { border-top: 1px solid var(--glass-border); padding-top: .8rem; display: flex; flex-direction: column; gap: 2px; }
.cat-sidebar-footer .dropdown-item {
  justify-content: flex-start; border-radius: 12px; padding: 9px 11px; font-size: .86rem; position: relative;
}
.cat-sidebar-footer .dropdown-item span { white-space: nowrap; overflow: hidden; }
.cat-sidebar-footer .dropdown-item.active { background: rgba(255,255,255,.07); color: var(--text); }
.cat-sidebar-footer .cat-soon {
  margin-left: auto; font-style: normal; font-size: .62rem; font-weight: 700;
  color: var(--text-muted); background: rgba(255,255,255,0.06); padding: 3px 7px; border-radius: 20px;
  border: 1px solid var(--glass-border);
}
#sidebar-scrim { display: none !important; }


#cat-sidebar.collapsed { width: 76px; }
#cat-sidebar.collapsed .cat-sidebar-head { justify-content: center; }
#cat-sidebar.collapsed .cat-sidebar-head-label,
#cat-sidebar.collapsed .cat-item span,
#cat-sidebar.collapsed .cat-item .cat-soon,
#cat-sidebar.collapsed .cat-sidebar-footer .dropdown-item span,
#cat-sidebar.collapsed .cat-sidebar-footer .cat-soon,
#cat-sidebar.collapsed .sidebar-now-playing { display: none; }
#cat-sidebar.collapsed .cat-item,
#cat-sidebar.collapsed .cat-sidebar-footer .dropdown-item {
  justify-content: center; gap: 0; padding: 9px;
}
#cat-sidebar.collapsed .cat-item.active::before { display: none; }
#cat-sidebar.collapsed .cat-sidebar-footer .dropdown-item { position: relative; }
#cat-sidebar.collapsed #dm-sidebar-badge {
  position: absolute !important; top: 4px; right: 16px; margin: 0 !important;
  width: 9px; height: 9px; min-width: 0; padding: 0; border-radius: 50%;
  font-size: 0; line-height: 0; border: 2px solid var(--bg2) !important;
}


#page-content { transition: margin-left .3s cubic-bezier(0.16, 1, 0.3, 1); flex: 1 0 auto; display: flex; flex-direction: column; }
@media (min-width: 901px) {
  #cat-sidebar { transform: translateX(0) !important; }
  #page-content { margin-left: 284px; }
  #cat-sidebar.collapsed ~ #page-content { margin-left: 108px; }
}
@media (max-width: 900px) {
  #cat-sidebar { top: 91px; bottom: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
  
  #cat-sidebar.collapsed { width: 252px; }
  #cat-sidebar.collapsed .cat-sidebar-head-label,
  #cat-sidebar.collapsed .cat-item span,
  #cat-sidebar.collapsed .cat-item .cat-soon,
  #cat-sidebar.collapsed .cat-sidebar-footer .dropdown-item span,
  #cat-sidebar.collapsed .cat-sidebar-footer .cat-soon,
  #cat-sidebar.collapsed .sidebar-now-playing { display: revert; }
  #cat-sidebar.collapsed .cat-item,
  #cat-sidebar.collapsed .cat-sidebar-footer .dropdown-item { justify-content: flex-start; gap: 12px; }
}


.btn-discord { background: #5865F2; color: #fff; box-shadow: 0 0 25px rgba(88, 101, 242, 0.4); }
.btn-discord:hover { background: #4752C4; transform: translateY(-2px); box-shadow: 0 0 35px rgba(88, 101, 242, 0.55); }


.sidebar-now-playing {
  display: flex; flex-direction: column; gap: 10px;
  padding: 13px; border-radius: 16px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 18px rgba(0,0,0,.25);
}
.sidebar-now-playing::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: .8;
}
.sidebar-now-playing.connecting .mini-player-controls,
.sidebar-now-playing.connecting .mini-player-progress,
.sidebar-now-playing.connecting .mini-player-volume { opacity: .35; pointer-events: none; }

.snp-head { display: flex; align-items: center; gap: 10px; }

.mini-player-art {
  width: 42px; height: 42px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: var(--bg3); display: block; position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 4px 12px rgba(0,0,0,.35);
}
.mini-player-art #yt-player { width: 100%; height: 100%; pointer-events: none; }

.mini-player-info { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.mini-player-title {
  font-size: .82rem; font-weight: 680; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-player-meta { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--text-muted); min-width: 0; }
.mini-player-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-player-channel {
  align-self: flex-start; margin-top: 1px; padding: 1px 8px; border-radius: 50px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04); color: var(--text-dim); font-weight: 600; font-size: .66rem; white-space: nowrap;
}

.mini-player-progress { display: flex; align-items: center; gap: 6px; font-size: .64rem; color: var(--text-muted); }
.mini-player-progress-track { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.mini-player-progress-fill { height: 100%; width: 0%; background: var(--grad); box-shadow: 0 0 6px rgba(255,255,255,.4); }

.mini-player-controls { display: flex; align-items: center; justify-content: center; gap: 6px; }
.mini-player-controls button {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--text-dim); cursor: pointer; transition: all .18s;
}
.mini-player-controls button:hover:not(:disabled) { background: rgba(255,255,255,.09); color: var(--text); }
.mini-player-controls button:disabled { opacity: .3; cursor: default; }
#mini-player-toggle {
  width: 40px; height: 40px; background: var(--grad); color: var(--on-light);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
#mini-player-toggle:hover:not(:disabled) { background: var(--grad); filter: brightness(1.08); transform: scale(1.05); }
.mini-player-controls i { width: 16px; height: 16px; }
.sidebar-now-playing.read-only .mini-player-controls { display: none; }

.mini-player-volume { display: flex; align-items: center; gap: 8px; color: var(--text-dim); }
.mini-player-volume i { width: 15px; height: 15px; flex-shrink: 0; }
.mini-player-volume-slider {
  width: 100%; height: 4px; appearance: none; background: rgba(255,255,255,0.08);
  border-radius: 3px; cursor: pointer; outline: none;
}
.mini-player-volume-slider::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); cursor: pointer; box-shadow: 0 0 8px var(--cyan); }
.mini-player-volume-slider::-moz-range-thumb { appearance: none; width: 12px; height: 12px; border: none; border-radius: 50%; background: var(--cyan); cursor: pointer; box-shadow: 0 0 8px var(--cyan); }

.mini-player-resume-btn {
  display: none; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  font-size: .74rem; font-weight: 650; padding: 8px 14px; border-radius: 50px; width: 100%;
  background: var(--grad); color: var(--on-light); border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: transform .15s;
}
.mini-player-resume-btn:hover { transform: translateY(-1px); }

.mini-player-loading {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-muted); font-size: .74rem; padding: 4px 0;
}
.mini-player-spin { width: 16px; height: 16px; animation: mini-player-spin .8s linear infinite; }
@keyframes mini-player-spin { to { transform: rotate(360deg); } }

.mini-player-close {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; color: var(--text-muted); cursor: pointer; transition: all .15s;
}
.mini-player-close:hover { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #fca5a5; }
.mini-player-close i { width: 14px; height: 14px; }
.btn-discord svg { flex-shrink: 0; }


#nav-user-area {
  display: flex;
  align-items: center;
  gap: 18px;
}


.user-points {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 50px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--cyan); font-size: .82rem; font-weight: 700;
}


.avatar-img { object-fit: cover; background: var(--bg3); }
.owner-badge { font-size: .95rem; line-height: 1; margin-left: -2px; }

@media (max-width: 768px) {
  .user-points { display: none; }
}




.nav-maintenance-tag {
  margin-left: auto; font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .03em;
  color: #FCA5A5; background: rgba(239, 68, 68, 0.12); padding: 3px 7px; border-radius: 20px;
  border: 1px solid rgba(239, 68, 68, 0.35); white-space: nowrap;
}
.nav-links a .nav-maintenance-tag { margin-left: 6px; }


.maintenance-content-zone {
  display: flex !important; align-items: center; justify-content: center;
  padding: 2rem; text-align: center;
}

#page-content.maintenance-content-zone { margin-top: 75px; min-height: calc(100vh - 75px); }
#channel-layout.maintenance-content-zone { min-height: 100%; }

html.maintenance-active, html.maintenance-active body { background: var(--bg); }
.maintenance-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem; text-align: center;
}
.maintenance-card {
  max-width: 440px; width: 100%; padding: 3rem 2.4rem; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,.45);
  animation: fade-in .35s ease;
}
.maintenance-icon {
  width: 64px; height: 64px; margin: 0 auto 1.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #FCA5A5;
}
.maintenance-icon i { width: 28px; height: 28px; }
.maintenance-card h1 {
  font-family: 'Outfit', sans-serif; font-size: 1.35rem; font-weight: 800;
  color: var(--text); margin-bottom: .7rem; line-height: 1.3;
}
.maintenance-card p { color: var(--text-dim); font-size: .92rem; line-height: 1.6; }

@media (max-width: 768px) {
  .maintenance-content-zone { padding: 1.4rem; }
  .maintenance-card { padding: 2.2rem 1.6rem; }
}


html.ban-active, html.ban-active body { background: var(--bg); }
.ban-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem; text-align: center;
}
.ban-card {
  max-width: 460px; width: 100%; padding: 3rem 2.4rem; border-radius: var(--radius);
  background: var(--glass); border: 1px solid rgba(239, 68, 68, 0.35);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: fade-in .35s ease;
}
.ban-icon {
  width: 68px; height: 68px; margin: 0 auto 1.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.4); color: #FCA5A5;
}
.ban-icon i { width: 30px; height: 30px; }
.ban-card h1 {
  font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800;
  color: #FCA5A5; margin-bottom: .8rem; line-height: 1.3; letter-spacing: .01em;
}
.ban-card p { color: var(--text-dim); font-size: .92rem; line-height: 1.6; }
.ban-card .ban-reason {
  margin-top: 1.2rem; padding: .7rem 1rem; border-radius: 10px;
  background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25);
  color: #FCA5A5; font-size: .85rem;
}

@media (max-width: 768px) {
  .ban-card { padding: 2.2rem 1.6rem; }
}



html.soft-nav-loading #page-content { opacity: 0.55; transition: opacity 0.15s ease; pointer-events: none; }
#page-content { transition: opacity 0.15s ease; }


@media (min-width: 901px) {

  
  #navbar {
    top: 12px; left: 20px; right: 20px; height: 63px;
    padding: 0 1.75rem;
    border-radius: 22px;
    border: 1px solid transparent;
    background:
      radial-gradient(480px 90px at 14% -20%, rgba(255,255,255,.07), transparent 65%),
      linear-gradient(180deg, rgba(15,15,15,.94), rgba(6,6,6,.9)) padding-box,
      linear-gradient(155deg, rgba(255,255,255,.26), rgba(255,255,255,.04) 45%, rgba(255,255,255,.16)) border-box;
    -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%);
    box-shadow:
      0 20px 46px rgba(0,0,0,.58),
      0 1px 0 rgba(255,255,255,.05) inset,
      0 0 0 1px rgba(0,0,0,.25);
    transition: box-shadow .3s ease;
  }
  #navbar::after { content: none; }
  
  #navbar::before {
    content: ''; position: absolute; left: 22px; right: 22px; top: 1px; height: 1px; z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6) 25%, rgba(255,255,255,.6) 75%, transparent);
    opacity: .5; pointer-events: none;
  }

  #navbar .nav-logo { gap: 12px; }
  #navbar .nav-logo svg, #navbar .nav-logo-img {
    width: 36px; height: 36px; border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 3px 10px rgba(0,0,0,.4);
  }
  #navbar .nav-logo:hover .nav-logo-img {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 3px 12px rgba(0,0,0,.45), 0 0 18px rgba(255,255,255,.16);
  }

  
  #navbar .nav-links {
    gap: 4px; padding: 0; border-radius: var(--radius);
    background: transparent; box-shadow: none;
  }
  #navbar .nav-links a { padding: 9px 14px 11px; border-radius: 6px; }
  #navbar .nav-links a::before { border-radius: 6px; background: transparent; }
  #navbar .nav-links a:hover::before { background: rgba(255,255,255,.06); }
  #navbar .nav-links a.active { color: var(--text); }
  #navbar .nav-links a.active::before,
  #navbar .nav-links a.active:hover::before { background: rgba(255,255,255,.08); box-shadow: none; }
  #navbar .nav-links a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 0;
    background: transparent; opacity: 0; transition: background .2s ease, opacity .2s ease;
  }
  #navbar .nav-links a:hover::after { background: rgba(255,255,255,.4); opacity: 1; }
  #navbar .nav-links a.active::after {
    background: var(--grad); opacity: 1; box-shadow: 0 0 10px rgba(255,255,255,.55);
  }
  #navbar .nav-links a.active:hover::after { background: var(--grad); }

  #navbar .nav-auth .btn-primary { box-shadow: 0 0 0 1px rgba(255,255,255,.14), var(--shadow-blue); }

  
  #navbar #nav-user-area { gap: 10px; padding: 0; border-radius: 0; background: transparent; border: none; box-shadow: none; }
  #navbar #notif-bell-btn, #navbar #friends-btn {
    width: 38px; height: 38px; border-radius: 11px;
    background: rgba(255,255,255,.045); border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  #navbar #notif-bell-btn:hover, #navbar #friends-btn:hover {
    color: var(--on-light); border-color: transparent; background: var(--grad);
    box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 16px rgba(255,255,255,.14);
    transform: translateY(-1px);
  }
  #navbar .user-avatar-btn {
    border: 1px solid var(--glass-border); background: rgba(255,255,255,.04);
    border-radius: 999px; padding: 5px 14px 5px 5px;
  }
  #navbar .user-avatar-btn:hover {
    border-color: transparent;
    background:
      linear-gradient(var(--bg3), var(--bg3)) padding-box,
      linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.08) 60%, rgba(255,255,255,.3)) border-box;
    box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 16px rgba(255,255,255,.12);
    transform: translateY(-1px);
  }
}




.status-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--bg2, #0d0d0e);
}
.status-online { background-color: #22C55E; box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
.status-idle { background-color: #F59E0B; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
.status-dnd { background-color: #EF4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.6); }
.status-invisible, .status-offline { background-color: #9CA3AF; }


.navbar-status-dot {
  position: absolute; bottom: 0; right: 0; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--bg2, #0d0d0e);
}
#user-menu-btn { position: relative; }


.dropdown-status-section {
  padding: 8px 10px 4px;
}
.dropdown-status-label {
  font-size: 0.68rem; font-weight: 750; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 6px; padding-left: 4px;
}
.dropdown-status-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px;
}
.status-option-btn {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim); font-size: 0.76rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s ease;
}
.status-option-btn:hover {
  background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: rgba(255, 255, 255, 0.2);
}
.status-option-btn.active {
  background: rgba(255, 255, 255, 0.12); color: var(--text); border-color: var(--cyan, #8B5CF6);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}
.status-option-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.notif-prefs-btn { width: 100%; justify-content: flex-start; gap: 8px; font-size: 0.82rem; }


.notif-prefs-modal-content { max-width: 480px; }
.notif-prefs-desc { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 1.2rem; line-height: 1.5; }
.notif-pref-group { display: flex; flex-direction: column; gap: 12px; }
.notif-pref-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border); cursor: pointer; transition: background 0.15s ease;
}
.notif-pref-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.notif-pref-info { display: flex; flex-direction: column; gap: 2px; }
.notif-pref-title { font-size: 0.88rem; font-weight: 650; color: var(--text); }
.notif-pref-sub { font-size: 0.76rem; color: var(--text-muted); }


.notif-pref-toggle input[type="checkbox"] { display: none; }
.toggle-slider {
  width: 40px; height: 22px; border-radius: 50px; background: rgba(255, 255, 255, 0.15);
  position: relative; transition: background 0.25s ease; flex-shrink: 0;
}
.toggle-slider::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform 0.25s ease;
}
.notif-pref-toggle input[type="checkbox"]:checked + .toggle-slider {
  background: var(--cyan, #8B5CF6);
}
.notif-pref-toggle input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(18px);
}
