@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Outfit:wght@400;600&display=swap');

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f13;
  color: #f1f1f3;
}
a { color: inherit; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}

nav.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #232329;
}
nav.topbar .brand { font-weight: 800; font-size: 1.2rem; }
nav.topbar a.btn { margin-left: 8px; }
@media (max-width: 420px) {
  nav.topbar { padding: 13px 16px; }
  nav.topbar .brand { font-size: 1.05rem; }
  nav.topbar a.btn { padding: 8px 11px; font-size: 0.82rem; margin-left: 6px; }
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: #7c3aed;
  color: #fff;
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn.secondary { background: #232329; }
.btn.danger { background: #b91c1c; }
.btn.small { padding: 6px 10px; font-size: 0.8rem; }

.card {
  background: #17171d;
  border: 1px solid #232329;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

input[type=text], input[type=email], input[type=password], input[type=url], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2c2c34;
  background: #0f0f13;
  color: #f1f1f3;
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
label { font-size: 0.85rem; color: #a1a1aa; }

input[type=file] {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #2c2c34;
  background: #0f0f13;
  color: #a1a1aa;
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 0.82rem;
}
input[type=file]::file-selector-button,
input[type=file]::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
input[type=file]::file-selector-button:hover,
input[type=file]::-webkit-file-upload-button:hover { opacity: 0.88; }

.error { color: #f87171; margin-bottom: 12px; }
.success { color: #4ade80; margin-bottom: 12px; }
.message { color: #4ade80; margin-bottom: 12px; }

.link-row, .social-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #232329;
}
.link-row:last-child, .social-row:last-child { border-bottom: none; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs .tab {
  padding: 8px 14px;
  border-radius: 8px;
  background: #232329;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}
.tabs .tab.active { background: #7c3aed; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #232329; font-size: 0.9rem; }






.admin-table-card { overflow: visible; }

@media (max-width: 760px) {
  .admin-container { padding: 16px; }

  .admin-topbar { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .admin-topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .admin-topbar-actions .btn { margin-left: 0; }

  .admin-table-card { padding: 12px; }

  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table tr {
    border: 1px solid #232329;
    border-radius: 12px;
    margin-bottom: 14px;
    padding: 4px 14px;
    background: #101014;
  }
  .admin-table tr:last-child { margin-bottom: 0; }
  .admin-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #1e1e24;
    font-size: 0.88rem;
    word-break: break-word;
  }
  .admin-table td:last-child { border-bottom: none; }
  .admin-table td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #71717a;
  }
  
  .admin-table td[data-label="Acciones"] { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .admin-table td[data-label="Acciones"]::before { width: 100%; }

  



  .badge-dropdown-panel { max-width: calc(100vw - 64px); }

  
  .role-select { max-width: 100%; }
}

.hero { text-align: center; padding: 80px 24px; }
.hero h1 { font-size: 2.4rem; margin-bottom: 8px; }
.hero .lmao { color: #7c3aed; }
.hero p { color: #a1a1aa; margin-bottom: 24px; }


.landing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.landing-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  animation: landing-drift 26s ease-in-out infinite;
}
.landing-glow-1 {
  width: 480px; height: 480px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(124,58,237,0.35), transparent 70%);
}
.landing-glow-2 {
  width: 420px; height: 420px;
  top: 220px; right: -140px;
  background: radial-gradient(circle, rgba(124,58,237,0.18), transparent 70%);
  animation-delay: -13s;
  animation-direction: reverse;
}
@keyframes landing-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 40px); }
}

.landing .topbar { position: relative; z-index: 2; border-bottom: 1px solid rgba(255,255,255,0.06); }

.landing-hero {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.landing-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.landing-tag i { font-size: 0.75rem; }

.landing-hero-text h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}
.landing-hero-text h1 .accent { color: #a78bfa; }
.landing-hero-text p {
  color: #a1a1aa;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 0 30px;
}
.landing-cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.landing-btn-main {
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  background: #7c3aed;
  box-shadow: 0 10px 30px -8px rgba(124,58,237,0.65);
}
.landing-link-secondary {
  color: #d4d4d8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.landing-link-secondary i { font-size: 0.75rem; color: #71717a; }
.landing-link-secondary:hover { color: #fff; }


.landing-hero-visual { display: flex; justify-content: center; }
.landing-mock-card {
  width: 280px;
  background: linear-gradient(180deg, #1b1b22, #16161a);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 26px;
  padding: 28px 22px 22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02);
  transform: rotate(3deg);
  animation: landing-float 5s ease-in-out infinite;
}
@keyframes landing-float {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-10px); }
}
.landing-mock-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 800; color: #fff; font-size: 1.3rem;
  border: 3px solid rgba(255,255,255,0.12);
  overflow: hidden;
}
.landing-mock-avatar img { width: 100%; height: 100%; object-fit: cover; }
.landing-mock-name { text-align: center; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1rem; }
.landing-mock-desc { text-align: center; color: #71717a; font-size: 0.78rem; margin-top: 3px; }
.landing-mock-links { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.landing-mock-link {
  padding: 10px; border-radius: 10px; text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem; font-weight: 600; color: #e4e4e7;
}
.landing-mock-player {
  margin-top: 16px;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
}
.landing-mock-player i { color: #a78bfa; font-size: 0.75rem; }
.landing-mock-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.landing-mock-eq span { width: 2px; background: #a78bfa; animation: landing-eq 0.9s ease-in-out infinite; }
.landing-mock-eq span:nth-child(1) { height: 40%; animation-delay: -0.6s; }
.landing-mock-eq span:nth-child(2) { height: 100%; animation-delay: -0.2s; }
.landing-mock-eq span:nth-child(3) { height: 65%; animation-delay: -0.8s; }
@keyframes landing-eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.landing-mock-track { font-size: 0.72rem; color: #d4d4d8; font-weight: 600; }


.landing-leaderboard {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: 8px 24px 56px;
}
.lb-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lb-head h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.35rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.lb-head h2 i { color: #a78bfa; font-size: 1.05rem; }
.lb-sub { margin: 0; color: #a1a1aa; font-size: 0.86rem; }
.lb-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #71717a;
  background: rgba(255,255,255,0.04);
  border: 1px solid #232329;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.lb-live i { font-size: 0.7rem; color: #a78bfa; }
#lb-countdown { font-variant-numeric: tabular-nums; min-width: 2.6em; display: inline-block; text-align: left; }

.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lb-item-link {
  display: grid;
  grid-template-columns: 28px 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.lb-item-link:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,0.45);
  background: linear-gradient(165deg, rgba(124,58,237,0.14), rgba(255,255,255,0.02));
}
.lb-rank {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: #71717a;
  text-align: center;
}
.lb-rank-1 { color: #facc15; font-size: 1.05rem; }
.lb-rank-2 { color: #d4d4d8; font-size: 1rem; }
.lb-rank-3 { color: #ea9a5c; font-size: 0.98rem; }
.lb-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #232329;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-avatar-fallback { font-family: 'Manrope', sans-serif; font-weight: 700; color: #a78bfa; font-size: 1rem; }
.lb-info { min-width: 0; display: flex; flex-direction: column; }
.lb-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #f1f1f3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-username { font-size: 0.78rem; color: #71717a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #d4d4d8;
  white-space: nowrap;
}
.lb-views i { color: #a78bfa; font-size: 0.78rem; }
.lb-empty {
  list-style: none;
  text-align: center;
  padding: 28px 16px;
  color: #71717a;
  font-size: 0.9rem;
  border: 1px dashed #232329;
  border-radius: 14px;
}
@media (max-width: 560px) {
  .landing-leaderboard { padding: 4px 16px 44px; }
  .lb-item-link { grid-template-columns: 22px 38px 1fr auto; padding: 10px 12px; gap: 10px; }
  .lb-avatar { width: 36px; height: 36px; }
  .lb-name { font-size: 0.86rem; }
  .lb-username { display: none; }
  .lb-live { font-size: 0.7rem; padding: 5px 10px; }
}

.landing-features {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  padding: 40px 24px 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.landing-feature {
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.landing-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.45);
  box-shadow: 0 18px 40px -16px rgba(124,58,237,0.5);
}
.landing-feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(124,58,237,0.16);
  border: 1px solid rgba(124,58,237,0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.landing-feature-icon i { color: #a78bfa; font-size: 1.05rem; margin: 0; }
.landing-feature h3 {
  font-family: 'Manrope', sans-serif; font-size: 0.98rem; font-weight: 700; margin: 0 0 8px;
}
.landing-feature p { color: #a1a1aa; font-size: 0.86rem; line-height: 1.55; margin: 0; }

.landing-final {
  position: relative; z-index: 1;
  text-align: center;
  padding: 20px 24px 88px;
}
.landing-final h2 {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.7rem; margin: 0 0 26px;
}

.landing-footer {
  position: relative; z-index: 1;
  text-align: center; padding: 24px; color: #52525b; font-size: 0.8rem;
}

@media (max-width: 820px) {
  .landing-hero { grid-template-columns: 1fr; padding-top: 48px; text-align: center; }
  .landing-hero-text p { margin-left: auto; margin-right: auto; }
  .landing-cta-row { justify-content: center; }
  .landing-hero-text h1 { font-size: 2.3rem; }
  .landing-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .landing-features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-glow, .landing-mock-card, .landing-mock-eq span { animation: none; }
}


.lt-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px;
}
.lt-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(255,255,255,0.2);
}

.lt-banner-wrap { width: 100%; max-width: 420px; margin-bottom: 52px; position: relative; }
.lt-banner {
  height: 140px; width: 100%; border-radius: 16px;
  background-size: cover; background-position: center; background-color: #1a1a20;
}
.lt-banner-wrap .lt-avatar {
  position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%);
  border: 4px solid #0f0f13; margin: 0;
}
.lt-name { font-size: 1.4rem; font-weight: 700; margin-top: 14px; position: relative; display: inline-block; }
.lt-desc { color: rgba(255,255,255,0.75); max-width: 420px; text-align: center; margin-top: 6px; white-space: pre-line; }
.lt-links { width: 100%; max-width: 420px; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.lt-link {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  font-weight: 600;
}
.lt-link:hover { background: rgba(255,255,255,0.16); }




body.lt-btn-custom .lt-link {
  background: rgba(var(--lt-btn-rgb), var(--lt-btn-alpha));
}
body.lt-btn-custom .lt-link:hover {
  background: rgba(var(--lt-btn-rgb), calc(var(--lt-btn-alpha) + 0.08));
}
body.lt-btn-dark-text .lt-link { color: #111; }

body.lt-btn-text-custom .lt-link { color: var(--lt-btn-text, #fff); }

body.invert-boxes.lt-btn-custom .lt-link {
  background: rgba(var(--lt-btn-rgb), var(--lt-btn-alpha)) !important;
  border-color: rgba(255,255,255, calc(0.25 * var(--lt-btn-border, 1))) !important;
}
.lt-footer { margin-top: auto; padding-top: 40px; font-size: 0.75rem; color: rgba(255,255,255,0.4); }


.bio-page { position: relative; min-height: 100vh; overflow: hidden; }
.bio-bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bio-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1; }



body.click-gate-lock { overflow: hidden; height: 100%; }
.click-gate {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.45s ease;
}
.click-gate-text {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.05rem, 4vw, 1.6rem);
  letter-spacing: 0.02em;
  animation: click-gate-pulse 2s ease-in-out infinite;
  word-break: break-word;
  max-width: 90vw;
}
@keyframes click-gate-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.045); }
}
.click-gate-hide { opacity: 0; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .click-gate-text { animation: none; opacity: 1; }
}
.bio-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; min-height: 100vh; justify-content: center;
}
.bio-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(255,255,255,0.5);
}
.bio-name { font-size: 1.6rem; font-weight: 800; margin-top: 16px; color: #fff; position: relative; display: inline-block; }
.bio-desc { color: rgba(255,255,255,0.85); max-width: 480px; text-align: center; margin-top: 8px; white-space: pre-line; }
.bio-socials { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.bio-social {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #fff; font-size: 1.1rem;
}
.bio-social:hover { background: rgba(255,255,255,0.3); }

.bio-views {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 18px;
}





.now-playing {
  display: flex; flex-direction: column; gap: 9px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: rgba(10,10,14,0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 12px 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  max-width: 280px;
}
.np-top { display: flex; align-items: center; gap: 10px; }
.np-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.np-btn {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: none; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.65rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.np-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.np-btn:active { transform: scale(0.94); }
.np-play-btn {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.14); background: var(--accent, #7c3aed); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.8rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.np-play-btn:hover { filter: brightness(1.12); }
.np-play-btn:active { transform: scale(0.95); }
.np-info { flex: 1; min-width: 0; }
.np-cover {
  width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0;
  overflow: hidden; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.np-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.np-cover-fallback { position: relative; color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.np-track {
  font-family: 'Outfit', 'Manrope', sans-serif;
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f3f3f3;
}
.np-artist {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2px;
  text-transform: uppercase; color: rgba(255,255,255,0.42);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np-time, .np-duration { font-variant-numeric: tabular-nums; font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.45); flex-shrink: 0; }
.np-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 1px; }
.np-playlist-count { font-size: 0.68rem; color: rgba(255,255,255,0.35); order: 5; }
.np-progress { position: relative; height: 4px; background: rgba(255,255,255,0.22); border-radius: 2px; cursor: pointer; margin: 2px 5px; }
.np-progress-bar { position: relative; height: 100%; background: var(--accent, #7c3aed); width: 0%; border-radius: 2px; box-shadow: 0 0 6px color-mix(in srgb, var(--accent, #7c3aed) 60%, transparent); }
.np-progress-thumb {
  position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: #fff;
  border: 2px solid var(--accent, #7c3aed);
  cursor: grab;
  opacity: 0; transition: opacity 0.15s ease;
}
.np-progress:hover .np-progress-thumb { opacity: 1; }
.np-progress-thumb:active { cursor: grabbing; opacity: 1; }




.np-volume { display: flex; align-items: center; height: 22px; flex-shrink: 0; }
.np-vol-btn {
  border: none; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
  cursor: pointer; font-size: 0.7rem; padding: 0; width: 22px; height: 22px;
  border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
  position: relative; z-index: 1;
}
.np-vol-btn:hover { background: rgba(255,255,255,0.12); }
.np-vol-slider-wrap {
  width: 0; height: 22px; overflow: hidden;
  display: flex; align-items: center;
  transition: width 0.2s ease, margin-left 0.2s ease;
  margin-left: 0;
}
.np-volume:hover .np-vol-slider-wrap,
.np-volume:focus-within .np-vol-slider-wrap {
  width: 64px; margin-left: 6px;
}
.np-vol-slider {
  -webkit-appearance: none; appearance: none;
  display: block; width: 64px; height: 3px; margin: 0; padding: 0;
  border-radius: 2px; cursor: pointer; outline: none;
  background-image: linear-gradient(var(--accent, #7c3aed), var(--accent, #7c3aed));
  background-repeat: no-repeat;
  background-size: var(--vol, 100%) 100%;
  background-color: rgba(255,255,255,0.14);
}
.np-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent, #7c3aed);
  margin-top: 0; cursor: pointer;
}
.np-vol-slider::-moz-range-track {
  height: 3px; border-radius: 2px; background: rgba(255,255,255,0.14);
}
.np-vol-slider::-moz-range-progress {
  height: 3px; border-radius: 2px; background: var(--accent, #7c3aed);
}
.np-vol-slider::-moz-range-thumb {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: var(--accent, #7c3aed); cursor: pointer;
}






.now-playing.yt-audio-player { position: relative; }
.yt-audio-target {
  position: absolute; top: 0; left: 0;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}
.yt-audio-target iframe { width: 1px; height: 1px; }





.now-playing--bar {
  flex-direction: column;
  width: min(560px, 92vw);
  max-width: none;
  padding: 14px 20px;
  border-radius: 18px;
  gap: 10px;
}
.now-playing--bar .np-top { gap: 14px; }
.now-playing--bar .np-cover { order: 1; width: 52px; height: 52px; border-radius: 12px; }
.now-playing--bar .np-cover-fallback { font-size: 1.2rem; }
.now-playing--bar .np-info { order: 2; }
.now-playing--bar .np-controls { order: 3; gap: 8px; }
.now-playing--bar .np-volume { display: none; }
.now-playing--bar .np-track { font-size: 1rem; }
.now-playing--bar .np-artist { font-size: 0.78rem; }
.now-playing--bar .np-btn { width: 30px; height: 30px; font-size: 0.75rem; }
.now-playing--bar .np-play-btn { width: 42px; height: 42px; font-size: 0.95rem; }
.now-playing--bar .np-progress { margin: 2px 0; }

.player-pos-top-left     { position: fixed; top: 24px; left: 24px; z-index: 5; }
.player-pos-top-right    { position: fixed; top: 24px; right: 24px; z-index: 5; }
.player-pos-bottom-left  { position: fixed; bottom: 24px; left: 24px; z-index: 5; }
.player-pos-bottom-right { position: fixed; bottom: 24px; right: 24px; z-index: 5; }



.bio-player-inline { width: 100%; display: flex; justify-content: center; margin-top: 18px; }

@media (max-width: 480px) {
  .bio-player-inline { margin-top: 14px; }

  






  .player-pos-top-left,
  .player-pos-top-right,
  .player-pos-bottom-left,
  .player-pos-bottom-right {
    position: static;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 100%;
    display: flex;
    z-index: auto;
  }
  .player-pos-top-left,
  .player-pos-bottom-left {
    justify-content: flex-start;
  }
  .player-pos-top-right,
  .player-pos-bottom-right {
    justify-content: flex-end;
  }
  

  .player-pos-top-left,
  .player-pos-top-right {
    margin-bottom: 22px;
  }
  






  .player-pos-bottom-left,
  .player-pos-bottom-right {
    margin-top: auto;
    margin-bottom: 0;
  }
  .player-pos-bottom-left + .lt-footer,
  .player-pos-bottom-right + .lt-footer {
    margin-top: 8px;
  }

  



  .player-pos-top-left .now-playing--bar,
  .player-pos-top-right .now-playing--bar,
  .player-pos-bottom-left .now-playing--bar,
  .player-pos-bottom-right .now-playing--bar {
    width: min(205px, 56vw);
    padding: 8px 10px;
    gap: 7px;
    border-radius: 14px;
  }
  .player-pos-top-left .now-playing--bar .np-top,
  .player-pos-top-right .now-playing--bar .np-top,
  .player-pos-bottom-left .now-playing--bar .np-top,
  .player-pos-bottom-right .now-playing--bar .np-top {
    gap: 7px;
  }
  .player-pos-top-left .now-playing--bar .np-cover,
  .player-pos-top-right .now-playing--bar .np-cover,
  .player-pos-bottom-left .now-playing--bar .np-cover,
  .player-pos-bottom-right .now-playing--bar .np-cover {
    width: 32px; height: 32px; border-radius: 9px;
  }
  .player-pos-top-left .now-playing--bar .np-playlist-count,
  .player-pos-top-right .now-playing--bar .np-playlist-count,
  .player-pos-bottom-left .now-playing--bar .np-playlist-count,
  .player-pos-bottom-right .now-playing--bar .np-playlist-count {
    display: none;
  }

  



}

.bio-mute-btn {
  position: fixed; top: 24px; left: 24px; z-index: 6;
  background: rgba(0,0,0,0.4); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 1rem;
}
.bio-mute-btn:hover { background: rgba(0,0,0,0.6); }


.bio-card-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 16px; background: #0f0f13;
  position: relative; z-index: 2;
}


.bio-card-wrap.has-bg { background: transparent; }
.bio-card {
  width: 100%; max-width: 420px;
  background: #16161a; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.bio-card-banner {
  height: 140px; width: 100%;
  background-size: cover; background-position: center;
}
.bio-card-avatar-wrap {
  display: flex; justify-content: center;
  margin-top: -48px; position: relative; z-index: 2;
}
.bio-card-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; border: 4px solid #16161a; background: #232329;
}
.bio-card-body { padding: 8px 24px 28px; text-align: center; }
.bio-card-views { display: flex; align-items: center; justify-content: center; gap: 6px; color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-top: 8px; }
.bio-card-name { font-size: 1.3rem; font-weight: 800; margin-top: 6px; color: #fff; position: relative; display: inline-block; }
.bio-card-desc { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 4px; white-space: pre-line; }
.bio-card-socials { display: flex; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.bio-card-social {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
}
.bio-card-social:hover { background: rgba(255,255,255,0.16); }
.bio-card-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 20px 0 0; }
.bio-card-player { margin-top: 18px; }
.bio-card-player .now-playing { max-width: none; }
.bio-card-player .np-cover { width: 44px; height: 44px; border-radius: 10px; }
.bio-card-player .np-cover-fallback { font-size: 1.05rem; }
.bio-card-footer { margin-top: 16px; font-size: 0.7rem; color: rgba(255,255,255,0.35); }


.profile-name-text { display: inline-flex; align-items: center; gap: 5px; }

.bio-verified-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9em; height: 0.9em;
  flex-shrink: 0;
  color: #1d9bf0;
}
.bio-verified-badge-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bio-verified-badge i { font-size: 0.95em; }

.bio-badges {
  position: relative;
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  margin-left: 6px;
  vertical-align: middle;
  padding: 7px 15px;
  border-radius: 999px;
  isolation: isolate;
}
.bio-badges-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

.bio-badges-glow::before {
  content: '';
  position: absolute;
  top: -55%; left: -15%;
  width: 60%; height: 170%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), rgba(255,255,255,0) 70%);
  filter: blur(14px);
}

@media (max-width: 480px) {
  .bio-badges { gap: 10px; padding: 6px 12px; }
}



.bio-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 0 5px var(--badge-color, rgba(255,255,255,0.5)));
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), filter 0.25s ease;
}
.bio-badge-wrap:hover,
.bio-badge-wrap:focus-visible {
  transform: scale(1.24) translateY(-1px);
  filter: drop-shadow(0 0 11px var(--badge-color, rgba(255,255,255,0.85)));
  z-index: 2;
}

.bio-badge { font-size: 0.88em; line-height: 1; display: inline-block; }
.bio-badge-img { width: 1.08em; height: 1.08em; object-fit: contain; vertical-align: middle; display: block; }







i.bio-badge { color: var(--badge-color, #fff); }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .bio-badges--chrome i.bio-badge {
    background-image: linear-gradient(115deg, var(--badge-color) 32%, #ffffff 50%, var(--badge-color) 68%);
    background-size: 240% 100%;
    background-position: 180% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    will-change: background-position;
    animation: bio-badge-shine 2.6s ease-in-out infinite alternate;
    animation-delay: var(--badge-delay, 0s);
  }
}
@keyframes bio-badge-shine {
  0%   { background-position: 180% 0; }
  100% { background-position: -70% 0; }
}




.bio-badge-clip { position: relative; display: inline-flex; overflow: hidden; border-radius: 4px; }
.bio-badge-clip::after,
.bio-verified-badge::after {
  content: none;
}
@supports ((mask-image: none) or (-webkit-mask-image: none)) {
  .bio-badges--chrome .bio-badge-clip::after,
  .bio-verified-badge--chrome::after {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.95) 50%, transparent 62%);
    background-size: 320% 100%;
    background-position: 180% 0;
    -webkit-mask-image: var(--badge-mask);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: var(--badge-mask);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mix-blend-mode: overlay;
    pointer-events: none;
    will-change: background-position;
    animation: bio-mask-shine 2.6s ease-in-out infinite alternate;
    animation-delay: var(--badge-delay, 0s);
  }
}
@keyframes bio-mask-shine {
  0%   { background-position: 180% 0; }
  100% { background-position: -70% 0; }
}



.bio-badge-wrap:nth-child(2) { --badge-delay: 0.45s; }
.bio-badge-wrap:nth-child(3) { --badge-delay: 0.9s; }
.bio-badge-wrap:nth-child(4) { --badge-delay: 1.35s; }
.bio-badge-wrap:nth-child(5) { --badge-delay: 1.8s; }
.bio-badge-wrap:nth-child(6) { --badge-delay: 2.25s; }
.bio-badge-wrap:nth-child(7) { --badge-delay: 2.7s; }

@media (prefers-reduced-motion: reduce) {
  .bio-badges--chrome i.bio-badge,
  .bio-badges--chrome .bio-badge-clip::after,
  .bio-verified-badge--chrome::after { animation: none; }
}





.bio-badge-tip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15,15,19,0.95);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.bio-badge-tip::after {
  content: '';
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15,15,19,0.95);
}
@media (min-width: 641px) {
  .bio-badge-wrap:hover .bio-badge-tip,
  .bio-badge-wrap:focus-visible .bio-badge-tip {
    opacity: 1; transform: translateX(-50%) translateY(0);
  }
}
.bio-badge-wrap.badge-tip-active .bio-badge-tip {
  opacity: 1; transform: translateX(-50%) translateY(0);
}








.lt-name .bio-badges,
.bio-name .bio-badges,
.bio-card-name .bio-badges {
  position: absolute; top: 50%; left: 100%;
  transform: translateY(-50%);
  margin-left: 6px; white-space: nowrap;
}

@media (max-width: 640px) {
  .lt-name, .bio-name, .bio-card-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .lt-name .bio-badges,
  .bio-name .bio-badges,
  .bio-card-name .bio-badges {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-left: 0;
  }
}



.badge-dropdown { position: relative; display: inline-block; }
.badge-dropdown-summary {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; list-style: none;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e4e4e7; font-size: 0.8rem;
  transition: background 0.15s ease, border-color 0.15s ease;
  min-width: 90px;
}
.badge-dropdown-summary::-webkit-details-marker { display: none; }
.badge-dropdown-summary:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }
.badge-summary-icons { display: flex; align-items: center; gap: 6px; flex: 1; min-height: 16px; }
.badge-summary-icons img { width: 15px; height: 15px; object-fit: contain; }
.badge-summary-icons i:not(.badge-dropdown-caret) { font-size: 0.85rem; }
.badge-summary-empty { color: #71717a; font-style: italic; font-size: 0.75rem; }
.badge-dropdown-caret { font-size: 0.7rem; color: #71717a; transition: transform 0.15s ease; flex-shrink: 0; }
.badge-dropdown[open] .badge-dropdown-caret { transform: rotate(180deg); }
.badge-dropdown-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  background: #1c1c22; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 10px; min-width: 150px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.55);
  max-height: min(320px, 70vh); overflow-y: auto;
}

.badge-form { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badges-visibility-list { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.badge-toggle { cursor: pointer; }
.badge-toggle input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #a1a1aa; font-size: 0.78rem; font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  user-select: none;
}
.badge-chip i { font-size: 0.85em; color: rgba(255,255,255,0.4); transition: color 0.15s ease; }
.badge-chip img { width: 14px; height: 14px; object-fit: contain; opacity: 0.55; filter: grayscale(1); transition: opacity 0.15s ease, filter 0.15s ease; }
.badge-toggle:hover .badge-chip { border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.08); }
.badge-toggle input:checked + .badge-chip {
  background: rgba(255,255,255,0.12);
  border-color: var(--badge-color);
  color: #fff;
}
.badge-toggle input:checked + .badge-chip i { color: var(--badge-color); }
.badge-toggle input:checked + .badge-chip img { opacity: 1; filter: none; }
.badge-toggle input:active + .badge-chip { transform: scale(0.96); }
.badge-toggle input:focus-visible + .badge-chip { outline: 2px solid var(--badge-color); outline-offset: 2px; }

.file-preview img, .file-preview video {
  max-width: 100%; max-height: 160px; border-radius: 10px; margin-top: 8px;
}


.dash-body { background: #0a0a0d; }

.dash-shell {
  display: flex;
  min-height: 100vh;
}

.dash-mobile-topbar { display: none; }
.dash-sidebar-backdrop { display: none; }
.dash-menu-toggle { display: none; }


.dash-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #101014;
  border-right: 1px solid #1e1e24;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh; 
  overflow-y: auto;
  

  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}
.dash-brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: #f1f1f3;
  padding: 0 4px 18px;
  display: block;
}
.dash-brand .accent { color: #a78bfa; }

.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.dash-nav-item i { width: 16px; text-align: center; color: inherit; }
.dash-nav-item:hover { background: rgba(255,255,255,0.05); color: #f1f1f3; }
.dash-nav-item.active {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
}

.dash-sidebar-spacer { flex: 1; }

.dash-sidebar-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.dash-help-box {
  background: #16161c;
  border: 1px solid #232329;
  border-radius: 12px;
  padding: 12px;
}
.dash-help-box p { margin: 0 0 10px; font-size: 0.8rem; color: #a1a1aa; }
.dash-sidebar-label { font-size: 0.75rem; color: #71717a; margin: 4px 0 0; }

.btn.block { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn.small.block { padding: 8px 10px; font-size: 0.82rem; }

.dash-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #16161c;
  border: 1px solid #232329;
  border-radius: 12px;
  padding: 8px 10px;
  margin-top: 6px;
}
.dash-user-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chip-avatar-form { flex-shrink: 0; }
.chip-avatar-wrap {
  position: relative; display: block; width: 34px; height: 34px; cursor: pointer;
}
.chip-avatar-wrap img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.chip-avatar-fallback {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 700; font-size: 0.85rem;
  background: linear-gradient(135deg, #7c3aed, #4338ca); user-select: none;
}
.chip-avatar-edit {
  position: absolute; bottom: -2px; right: -2px; width: 15px; height: 15px;
  background: #7c3aed; border: 2px solid #16161c; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 7px;
}
.chip-avatar-wrap:hover .chip-avatar-edit { background: #9333ea; }
.dash-user-chip-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-user-chip-info strong { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-chip-info small { font-size: 0.7rem; color: #71717a; }
.dash-logout-btn {
  border: none; background: rgba(255,255,255,0.06); color: #f87171;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-logout-btn:hover { background: rgba(248,113,113,0.15); }


.dash-main { flex: 1; min-width: 0; }
.dash-main-inner { max-width: 880px; margin: 0 auto; padding: 32px 28px 80px; }

.dash-panel { display: none; }
.dash-panel.active { display: block; }

.dash-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e4e4e7;
  margin: 30px 0 14px;
}
.dash-panel-title:first-child { margin-top: 0; }
.dash-panel-title small { color: #71717a; font-weight: 500; font-size: 0.8rem; }


.uploader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.uploader-label { display: block; font-size: 0.8rem; color: #a1a1aa; margin-bottom: 8px; }
.uploader-label small { color: #71717a; font-weight: 400; }
.uploader-form { margin: 0; }
.uploader-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 150px;
  border-radius: 14px;
  background: #101014;
  border: 1.5px dashed #2c2c34;
  color: #71717a;
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.uploader-box:hover { border-color: #7c3aed; background: #131318; }
.uploader-box.has-file { border-style: solid; border-color: #232329; color: #e4e4e7; padding: 0; }
.uploader-box img, .uploader-box video {
  width: 100%; height: 100%; object-fit: cover;
}
.uploader-icon { font-size: 1.6rem; color: #52525b; }
.uploader-box.has-file .uploader-icon.accent-icon { color: #a78bfa; font-size: 1.8rem; }
.uploader-file-name { padding: 0 8px; word-break: break-word; }
.uploader-box-link { justify-content: center; }


.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-field { display: flex; flex-direction: column; }
.span-2 { grid-column: 1 / -1; }
.form-field label { margin-bottom: 6px; }


.form-grid .toggle-item {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.color-input { height: 44px; padding: 4px; cursor: pointer; }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field .color-input { width: 52px; flex-shrink: 0; border-radius: 8px; }
.color-field-hex {
  font-family: 'Courier New', monospace; font-size: 0.85rem; color: #a1a1aa;
  background: #16161c; border: 1px solid #232329; border-radius: 8px;
  padding: 10px 12px; text-transform: uppercase; flex: 1;
}



.range-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px 28px;
}
.range-field { display: flex; flex-direction: column; gap: 10px; }
.range-field > label {
  font-size: 0.85rem; color: #d4d4d8;
  display: flex; align-items: center; gap: 6px;
}
.range-field > label i { color: #52525b; font-size: 0.78rem; cursor: help; }
.range-input {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 999px;
  background: linear-gradient(to right, #7c3aed var(--range-fill, 50%), #2c2c34 var(--range-fill, 50%));
  outline: none; cursor: pointer; margin: 4px 0;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid #7c3aed;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.range-input::-moz-range-track { height: 4px; border-radius: 999px; background: #2c2c34; }
.range-input::-moz-range-progress { height: 4px; border-radius: 999px; background: #7c3aed; }
.range-input::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid #7c3aed; cursor: pointer;
}
.range-ticks { display: flex; justify-content: space-between; font-size: 0.72rem; color: #71717a; }

.form-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid #232329;
}
.form-footer .dash-hint { margin: 0; }
.dash-hint { color: #71717a; font-size: 0.82rem; margin-top: 10px; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  font-weight: 600;
  color: #a1a1aa;
  margin-top: 8px;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.checkbox-row:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  color: #d4d4d8;
}
.checkbox-row:has(input:checked) {
  background: rgba(124,58,237,0.14);
  border-color: rgba(124,58,237,0.55);
  color: #fff;
}
.checkbox-row input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.2);
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checkbox-row input[type="checkbox"] { border-radius: 6px; }
.checkbox-row input::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #7c3aed;
  transform: scale(0);
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1);
}
.checkbox-row input[type="checkbox"]::after { border-radius: 2px; }
.checkbox-row input:checked {
  border-color: #7c3aed;
  background: rgba(124,58,237,0.15);
}
.checkbox-row input:checked::after { transform: scale(1); }
.checkbox-row input:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .checkbox-row { padding: 12px 14px; font-size: 0.88rem; }
  .checkbox-row input { width: 21px; height: 21px; }
}


dialog.upload-modal {
  width: min(440px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid #232329;
  border-radius: 16px;
  background: #17171d;
  color: #f1f1f3;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
dialog.upload-modal::backdrop {
  background: rgba(8,8,11,0.7);
  backdrop-filter: blur(2px);
}
dialog.upload-modal.audio-modal { width: min(520px, 92vw); }
.upload-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.upload-modal-head h3 { margin: 0; font-size: 1.05rem; }
.modal-close-btn {
  border: none;
  background: rgba(255,255,255,0.06);
  color: #a1a1aa;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-close-btn:hover { background: rgba(255,255,255,0.12); color: #f1f1f3; }
.upload-modal-desc { color: #a1a1aa; font-size: 0.85rem; line-height: 1.5; margin: 0 0 18px; }
.audio-modal-subtitle { font-size: 0.85rem; color: #e4e4e7; margin: 4px 0 10px; }

.audio-track-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.audio-track-row {
  background: #101014;
  border: 1px solid #232329;
  border-radius: 12px;
  padding: 12px;
}
.audio-track-main { display: flex; align-items: center; gap: 10px; }
.audio-track-main > i { color: #a78bfa; font-size: 1.1rem; }
.audio-track-cover { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: rgba(255,255,255,0.06); flex-shrink: 0; }
.audio-track-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.audio-track-meta strong { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-track-meta small { font-size: 0.75rem; color: #71717a; }
.audio-track-row audio {
  color-scheme: dark;
  accent-color: #8b5cf6;
  border-radius: 8px;
  background: #18181d;
}


.mini-player {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0 2px; padding: 8px 10px;
  background: #18181d; border: 1px solid #232329; border-radius: 10px;
}
.mini-play-btn {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  border: none; background: #8b5cf6; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.75rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mini-play-btn:hover { background: #7c3aed; transform: scale(1.06); }
.mini-play-btn:active { transform: scale(0.95); }
.mini-progress {
  position: relative; flex: 1; height: 4px;
  background: rgba(255,255,255,0.12); border-radius: 2px; cursor: pointer;
}
.mini-progress-bar {
  position: relative; height: 100%; width: 0%;
  background: linear-gradient(90deg, #a78bfa, #8b5cf6); border-radius: 2px;
}
.mini-progress-thumb {
  position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.5); cursor: grab;
  opacity: 0; transition: opacity 0.15s ease;
}
.mini-progress:hover .mini-progress-thumb { opacity: 1; }
.mini-time {
  font-variant-numeric: tabular-nums; font-size: 0.72rem; font-weight: 600;
  color: rgba(255,255,255,0.6); flex-shrink: 0; min-width: 68px; text-align: right;
}
.audio-track-current {
  font-size: 0.68rem;
  color: #a78bfa;
  background: rgba(124,58,237,0.15);
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.audio-track-actions { display: flex; gap: 8px; margin-top: 10px; }

@media (max-width: 900px) {
  .dash-shell { flex-direction: column; }

  .dash-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 60;
    background: #101014;
    border-bottom: 1px solid #1e1e24;
    padding: 14px 18px;
  }
  .dash-menu-toggle {
    border: 1px solid #232329;
    background: #16161c;
    color: #f1f1f3;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
  }
  .dash-menu-toggle:hover { background: #1c1c22; }

  

  .dash-mobile-topbar .dash-brand {
    padding: 0;
    display: flex;
    align-items: center;
  }

  .dash-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 65;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .dash-sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: 280px;
    max-width: 82vw;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 70;
    box-shadow: 4px 0 24px rgba(0,0,0,0.4);
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-sidebar .dash-brand-desktop { display: none; }

  .dash-sidebar-spacer { display: block; }
  .dash-sidebar-bottom { flex-direction: column; flex-wrap: nowrap; width: auto; }
  .dash-help-box, .dash-user-chip { flex: initial; }

  body.dash-menu-open { overflow: hidden; }

  .form-grid { grid-template-columns: 1fr; }
  .dash-main-inner { padding: 20px 16px 60px; }
  .form-footer { justify-content: center; text-align: center; }
  .form-footer .btn { width: 100%; }
}


.toggles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px 20px;
}
.toggle-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toggle-item-label {
  font-size: 0.85rem;
  color: #d4d4d8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toggle-item-label i { color: #52525b; font-size: 0.78rem; cursor: help; }

.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #2c2c34; border-radius: 999px;
  transition: background 0.18s ease;
}
.toggle-slider::before {
  content: ""; position: absolute;
  height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform 0.18s ease;
}
.toggle-switch input:checked + .toggle-slider { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.35; cursor: not-allowed; }
.toggle-switch input:focus-visible + .toggle-slider { outline: 2px solid #7c3aed; outline-offset: 2px; }

@media (max-width: 640px) {
  .toggles-grid { grid-template-columns: repeat(2, 1fr); }
}



.bio-social.colored i, .bio-card-social.colored i { color: #fff; }
.platform-twitter.colored   { background: #000000 !important; }
.platform-instagram.colored { background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; }
.platform-tiktok.colored    { background: #010101 !important; }
.platform-youtube.colored   { background: #FF0000 !important; }
.platform-github.colored    { background: #181717 !important; }
.platform-twitch.colored    { background: #9146FF !important; }
.platform-discord.colored   { background: #5865F2 !important; }
.platform-spotify.colored   { background: #1DB954 !important; }
.platform-telegram.colored  { background: #26A5E4 !important; }
.platform-facebook.colored  { background: #1877F2 !important; }


body.invert-boxes .bio-social:not(.colored),
body.invert-boxes .bio-card-social:not(.colored) {
  background: var(--accent, #7c3aed) !important;
}
body.invert-boxes .now-playing {
  background: var(--accent, #7c3aed) !important;
  border-color: rgba(255,255,255,0.25) !important;
}
body.invert-boxes .lt-link {
  background: var(--accent, #7c3aed) !important;
  border-color: rgba(255,255,255,0.25) !important;
}


.role-form { margin: 0; }
.role-select {
  width: auto;
  padding: 4px 8px;
  margin: 0;
  font-size: 0.82rem;
  border-radius: 6px;
}




.chrome-shine { --sic: var(--social-icon-color, #ffffff); position: relative; }
.chrome-shine i {
  color: var(--sic);
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.35));
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .chrome-shine i {
    

    background-image: linear-gradient(115deg, var(--sic) 30%, #ffffff 50%, var(--sic) 70%);
    background-image: linear-gradient(115deg, color-mix(in srgb, var(--sic) 84%, #000) 30%, #ffffff 50%, color-mix(in srgb, var(--sic) 84%, #000) 70%);
    background-size: 240% 100%;
    background-position: 180% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--sic) 55%, transparent));
    will-change: background-position;
    animation: chrome-social-glyph-shine 2.8s ease-in-out infinite alternate;
  }
}
@keyframes chrome-social-glyph-shine {
  0%   { background-position: 180% 0; }
  100% { background-position: -70% 0; }
}

.bio-social.chrome-shine::after, .bio-card-social.chrome-shine::after {
  content: '';
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 3px #fff);
  opacity: 0; transform: scale(0.3);
  animation: chrome-social-twinkle 3.4s ease-in-out infinite;
  pointer-events: none;
}
.bio-social.chrome-shine:nth-child(2n)::after, .bio-card-social.chrome-shine:nth-child(2n)::after { animation-delay: 0.7s; }
.bio-social.chrome-shine:nth-child(3n)::after, .bio-card-social.chrome-shine:nth-child(3n)::after { animation-delay: 1.4s; }
@keyframes chrome-social-twinkle {
  0%, 60%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  72%           { opacity: 1; transform: scale(1) rotate(45deg); }
  86%           { opacity: 0; transform: scale(0.4) rotate(90deg); }
}

.bio-card-social.chrome-shine {
  box-shadow: 0 0 10px rgba(255,255,255,0.10), inset 0 0 0 1px rgba(255,255,255,0.14);
}

.bio-social.chrome-shine {
  background: transparent; box-shadow: none;
  font-size: 1.55rem; width: 48px; height: 48px;
  transition: transform 0.2s ease;
}
.bio-social.chrome-shine:hover { background: transparent; transform: scale(1.12); }
.bio-social.chrome-shine::after { top: 6px; right: 6px; }
@media (prefers-reduced-motion: reduce) {
  .chrome-shine i, .bio-social.chrome-shine::after, .bio-card-social.chrome-shine::after { animation: none; }
}


.social-color-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding: 14px 16px;
  background: #101014; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
}
.social-color-row[hidden] { display: none; }
.social-color-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 200px; }
.social-color-info strong { font-size: 0.88rem; color: #f4f4f5; }
.social-color-info small { font-size: 0.75rem; color: #a1a1aa; line-height: 1.4; }
.social-color-controls { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; }
.social-color-controls .color-input { width: 52px; height: 44px; flex-shrink: 0; border-radius: 8px; }
.social-color-controls .color-field-hex { flex: 0 0 auto; min-width: 88px; text-align: center; }
.social-color-preview {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
@media (max-width: 480px) {
  .social-color-controls { width: 100%; }
  .social-color-controls .color-field-hex { flex: 1; }
}


.autoplay-card {
  display: flex; align-items: center; gap: 14px;
  margin: 6px 0 18px; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(124,58,237,0.04));
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 14px;
}
.autoplay-card-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124,58,237,0.22); color: #c4b5fd; font-size: 1.05rem;
}
.autoplay-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.autoplay-card-text strong { font-size: 0.9rem; color: #f4f4f5; }
.autoplay-card-text small { font-size: 0.75rem; line-height: 1.45; color: #a1a1aa; }
.autoplay-card .toggle-switch { width: 46px; height: 26px; }
.autoplay-card .toggle-slider::before { height: 20px; width: 20px; }
.autoplay-card .toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.autoplay-card:has(input:checked) {
  border-color: rgba(167,139,250,0.55);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
@media (max-width: 480px) {
  .autoplay-card { gap: 10px; padding: 12px; }
  .autoplay-card-icon { width: 34px; height: 34px; border-radius: 10px; }
}


.yt-cover-current {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; background: #101014;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
}
.yt-cover-current .audio-track-cover { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.yt-cover-current-text { flex: 1; min-width: 120px; font-size: 0.82rem; color: #d4d4d8; }



.yt-audio-player .np-cover img { object-fit: cover; }


.lt-btn-preview {
  display: flex; align-items: center; justify-content: center;
  padding: 26px 18px; margin-bottom: 18px; border-radius: 12px;
  background: #0f0f13; 
  border: 1px solid rgba(255,255,255,0.08);
}
.lt-btn-preview-sample {
  display: block; width: 100%; max-width: 320px; text-align: center;
  padding: 14px; border-radius: 12px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15); color: #fff;
}
.lt-btn-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 480px) { .lt-btn-actions .btn { flex: 1 1 100%; } }



form[action="/dashboard/linktree/buttons"] .form-grid { row-gap: 28px; }
form[action="/dashboard/linktree/buttons"] .range-pair { row-gap: 26px; column-gap: 28px; margin-top: 4px; }
form[action="/dashboard/linktree/buttons"] .range-field { gap: 12px; }
@media (max-width: 640px) {
  form[action="/dashboard/linktree/buttons"] .form-grid { row-gap: 24px; }
  form[action="/dashboard/linktree/buttons"] .range-pair { grid-template-columns: 1fr; row-gap: 24px; }
  .lt-btn-actions { margin-top: 24px; }
}








a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
  border-radius: 4px;
}


.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}




.skip-link {
  position: absolute;
  top: -48px; left: 8px;
  background: #7c3aed;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000000;
  transition: top 0.15s ease;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.skip-link:focus {
  top: 8px;
}



.error[role="alert"] { }




.cookie-banner {
  position: fixed !important;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 999999;
  max-width: 720px;
  margin: 0 auto;
  background: #17171d;
  border: 1px solid #2c2c34;
  border-radius: 16px;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  display: flex !important;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  height: auto !important;
  max-height: calc(100dvh - 24px) !important;
  overflow-y: auto;
  animation: cookieBannerIn 0.25s ease;
}
.cookie-banner-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #d4d4d8;
  flex: 1 1 260px;
}
.cookie-banner-text a { color: #a78bfa; text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner-hide { opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 560px) {
  .cookie-banner {
    left: 8px; right: 8px; bottom: 8px;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 13px 13px calc(11px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 12px;
    height: auto !important;
    max-height: calc(100dvh - 16px) !important;
  }
  .cookie-banner-text { font-size: 0.74rem; line-height: 1.4; flex: none !important; }
  .cookie-banner-actions { flex-direction: row; justify-content: stretch; gap: 7px; flex: none !important; }
  .cookie-banner-actions .btn { flex: 1; text-align: center; padding: 8px 8px; font-size: 0.76rem; border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
  .cookie-banner-hide { transition: none; }
}




.legal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(124,58,237,0.10), transparent 60%),
    #0f0f13;
}
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 20px 72px;
  flex: 1;
  width: 100%;
}
.legal-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 22px;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.legal-subnav a {
  padding: 9px 16px;
  border-radius: 999px;
  background: #17171d;
  border: 1px solid #232329;
  color: #d4d4d8;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.legal-subnav a:hover { border-color: rgba(124,58,237,0.5); color: #fff; }
.legal-subnav a[aria-current="page"] {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  font-weight: 600;
}
.legal-card {
  line-height: 1.7;
  padding: 30px 32px 36px;
  box-shadow: 0 24px 60px -32px rgba(0,0,0,0.6);
}
.legal-card h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.7rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.legal-card h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.08rem;
  margin: 30px 0 10px;
  color: #f1f1f3;
  padding-top: 18px;
  border-top: 1px solid #1e1e24;
}
.legal-card h2:first-of-type { border-top: none; padding-top: 0; }
.legal-card p, .legal-card li { color: #c4c4cc; font-size: 0.94rem; }
.legal-card > p:first-of-type { color: #d4d4d8; font-size: 0.98rem; }
.legal-card ul { padding-left: 20px; margin: 10px 0; }
.legal-card li { margin-bottom: 7px; }
.legal-card a { color: #a78bfa; text-decoration: underline; text-underline-offset: 2px; }
.legal-card a:hover { color: #c4b5fd; }
.legal-updated {
  display: inline-block;
  color: #a1a1aa;
  font-size: 0.78rem;
  margin: 0 0 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #232329;
  border-radius: 999px;
  padding: 5px 12px;
}
.legal-pref-box {
  background: #0f0f13;
  border: 1px solid #2c2c34;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #d4d4d8;
  margin-bottom: 12px;
}
.legal-pref-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.legal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid #232329;
  margin: 12px 0 20px;
}
.legal-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.legal-table th, .legal-table td {
  border-bottom: 1px solid #232329;
  border-right: 1px solid #1e1e24;
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-table th:last-child, .legal-table td:last-child { border-right: none; }
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table th { background: #17171d; color: #f1f1f3; font-weight: 700; }
.legal-table td { color: #c4c4cc; }
.legal-table code {
  color: #a78bfa;
  background: rgba(124,58,237,0.12);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.85em;
}
@media (max-width: 640px) {
  .legal-wrap { padding: 22px 14px 56px; }
  .legal-card { padding: 22px 18px 26px; border-radius: 16px; }
  .legal-card h1 { font-size: 1.4rem; }
  .legal-card h2 { font-size: 1rem; margin: 24px 0 8px; }
  .legal-card p, .legal-card li { font-size: 0.9rem; }
  .legal-subnav a { font-size: 0.8rem; padding: 8px 13px; }
}
