    :root {
      --bg: #0a0e27;
      --text: #ffffff;
      --text-muted: rgba(255,255,255,0.75);
      --text-soft: rgba(255,255,255,0.55);
      --line: rgba(255,255,255,0.1);
      --line-strong: rgba(255,255,255,0.15);
      --glass: rgba(255,255,255,0.02);
      --glass-hover: rgba(255,255,255,0.04);
      --chip: rgba(255,255,255,0.06);
      --chip-active: rgba(255,255,255,0.15);
      --primary: #6366f1;
      --primary-glow: rgba(99, 102, 241, 0.3);
      --accent: #ec4899;
      --accent-glow: rgba(236, 72, 153, 0.25);
    }

    * { box-sizing: border-box; }
    html {
      scroll-behavior: smooth;
      overflow-x: hidden;
      overflow-y: auto;
    }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: "Inter", "Segoe UI", Arial, sans-serif;
      background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 50%, #0f1535 100%);
      color: var(--text);
      overflow-x: hidden;
      overflow-x: clip;
      display: flow-root;
      position: relative;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body.nav-open {
      overflow: hidden;
    }

    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; }

    html, body {
      touch-action: manipulation;
    }

    * {
      -webkit-tap-highlight-color: transparent;
    }

    .site-loader {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at center, rgba(99,102,241,0.18), rgba(10,14,39,0.96) 45%, rgba(5,7,17,1) 100%);
      z-index: 9999;
      transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
    }

    .site-loader.hidden {
      opacity: 0;
      visibility: hidden;
      transform: scale(1.03);
      pointer-events: none;
    }

    .site-loader.hidden .loader-art {
      animation-play-state: paused;
    }

    .loader-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
    }

    .loader-art {
      width: min(420px, 58vw);
      filter: drop-shadow(0 0 28px rgba(162, 110, 255, 0.7));
      animation: loaderFloat 1.8s ease-in-out infinite alternate, loaderPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }

    .brand-svg {
      width: 100%;
      height: auto;
      display: block;
    }

    @keyframes loaderFloat {
      from { transform: translateY(8px); }
      to { transform: translateY(-8px); }
    }

    @keyframes loaderPop {
      from { opacity: 0; transform: scale(0.82); }
      to { opacity: 1; transform: scale(1); }
    }

    .loader-progress {
      width: min(220px, 50vw);
      height: 3px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      overflow: hidden;
    }

    .loader-progress-fill {
      height: 100%;
      width: 0%;
      border-radius: 999px;
      background: linear-gradient(90deg, #6d4af0, #d0a4ff, #f0d9ff);
      animation: loaderProgress 0.85s ease-out forwards;
    }

    @keyframes loaderProgress {
      from { width: 0%; }
      to { width: 100%; }
    }

    .loader-label {
      font-size: 0.7rem;
      letter-spacing: 0.32em;
      text-transform: uppercase;
      font-weight: 700;
      color: rgba(255,255,255,0.5);
    }

    .page {
      width: min(1560px, calc(100vw - 34px));
      margin: 18px auto 26px;
      background: rgba(15, 21, 53, 0.7);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 24px;
      box-shadow:
        0 50px 150px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 0 150px rgba(99, 102, 241, 0.15),
        inset 0 0 100px rgba(99, 102, 241, 0.05);
      overflow: visible;
      position: relative;
      z-index: 10;
      animation: pageReveal 0.9s ease-out 0.2s backwards;
    }

    @keyframes pageReveal {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .topbar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 18px 12px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      position: sticky;
      top: 0;
      z-index: 1000;
      width: 100%;
      background: #0d122e;
      border-top-left-radius: inherit;
      border-top-right-radius: inherit;
    }

    @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
      .topbar {
        background: transparent;
      }

      .topbar::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        background: rgba(13, 18, 46, 0.42);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        backdrop-filter: blur(20px) saturate(180%);
        pointer-events: none;
      }
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      flex-shrink: 0;
      cursor: pointer;
      text-decoration: none;
      transition: opacity 0.3s ease;
    }

    .brand:hover { opacity: 0.8; }

    .brand-svg.compact {
      width: 118px;
      height: auto;
      display: block;
    }

    .nav {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      gap: 2px;
      margin: 0;
      min-width: 0;
    }

    .nav.left {
      justify-content: flex-start;
      flex-shrink: 0;
    }

    .nav.right {
      justify-content: flex-end;
      margin-left: auto;
      flex-shrink: 0;
    }

    .nav.right.hidden-until-auth {
      display: none !important;
    }

    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
      color: var(--text-muted);
      font-size: 0.76rem;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      font-weight: 600;
      padding: 8px 14px;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
      border: 1px solid transparent;
      background: transparent;
    }

    .nav-item:hover {
      background: rgba(99, 102, 241, 0.15);
      color: var(--text);
      border-color: rgba(99, 102, 241, 0.3);
    }

    .nav-item.active {
      background: rgba(99, 102, 241, 0.25);
      border-color: rgba(99, 102, 241, 0.5);
      color: var(--text);
      box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }

    .nav-plus-cat {
      width: 18px;
      height: 18px;
      margin-right: 7px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .nav-plus-sign {
      background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    @media (min-width: 1001px) and (max-width: 1099px) {
      .topbar .nav-item {
        padding: 8px 6px;
        letter-spacing: 0;
      }
    }

    @media (min-width: 1001px) and (max-width: 1199px) {
      .nav-item {
        padding: 8px 10px;
      }

      .nav-plus-text,
      .profile-name {
        display: none;
      }

      .nav-plus-cat {
        margin-right: 0;
      }
    }

    .nav-dropdown {
      position: relative;
      display: inline-block;
    }

    .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      background: rgba(12, 14, 17, 0.95);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 8px 0;
      min-width: 180px;
      margin-top: 6px;
      backdrop-filter: blur(10px);
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
      opacity: 0;
      pointer-events: none;
      z-index: 10000;
      transition: opacity 0.2s ease;
    }

    .dropdown-menu.show {
      opacity: 1;
      pointer-events: auto;
    }

    .dropdown-menu:empty {
      display: none;
    }

    .dropdown-menu a {
      display: block;
      padding: 10px 16px;
      color: var(--text-muted);
      font-size: 0.85rem;
      text-transform: capitalize;
      letter-spacing: 0;
      font-weight: 500;
      transition: all 0.2s ease;
      border-left: 3px solid transparent;
    }

    .dropdown-menu a:hover {
      background: rgba(255,255,255,0.06);
      color: var(--text);
      border-left-color: rgba(255,255,255,0.3);
    }

    .top-actions .dropdown-menu {
      left: auto;
      right: 0;
    }

    .top-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      min-width: auto;
      position: relative;
      z-index: 1001;
      flex-shrink: 0;
    }

    .nav.right.hidden-until-auth ~ .top-actions {
      margin-left: auto;
    }

    .lang-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border: 1.5px solid rgba(99, 102, 241, 0.5);
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
      color: rgba(255,255,255,0.9);
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      font-size: 0.75rem;
      font-weight: 700;
      position: relative;
      overflow: hidden;
    }

    .lang-btn::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .lang-btn:hover {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);
      color: var(--text);
      border-color: rgba(99, 102, 241, 0.8);
      box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
      transform: translateY(-2px);
    }

    .lang-btn:hover::before { opacity: 1; }

    .profile-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border: 1.5px solid rgba(99, 102, 241, 0.5);
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
      color: var(--text);
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      font-size: 0.85rem;
      font-weight: 600;
      position: relative;
      overflow: hidden;
    }

    .profile-btn::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .profile-btn:hover {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);
      border-color: rgba(99, 102, 241, 0.8);
      box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
      transform: translateY(-2px);
    }

    .profile-btn:hover::before { opacity: 1; }

    .profile-avatar {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);
      border: 1.5px solid rgba(99, 102, 241, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      transition: all 0.3s ease;
    }

    .profile-btn:hover .profile-avatar {
      box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    }

    .profile-avatar.has-image {
      background-size: cover;
      background-position: center;
    }

    .profile-name {
      max-width: 110px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .nav-close {
      display: none;
    }

    .menu-toggle {
      display: none;
      width: 40px;
      height: 40px;
      border: 1px solid rgba(99, 102, 241, 0.4);
      background: rgba(99, 102, 241, 0.1);
      color: var(--text);
      border-radius: 8px;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      transition: all 0.2s ease;
      position: relative;
    }

    .menu-toggle:hover {
      background: rgba(99, 102, 241, 0.18);
      border-color: rgba(99, 102, 241, 0.6);
      box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
    }

    @media (max-width: 1000px) {
      .nav { display: none; }
      .menu-toggle { display: flex; }
    }

    .shell {
      padding: 18px 18px 10px;
      position: relative;
      z-index: 20;
    }

    .favs-header {
      padding: 22px 26px;
      border-radius: 20px;
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.06) 100%);
      border: 1px solid rgba(99, 102, 241, 0.3);
      margin-bottom: 18px;
      animation: authorHeaderIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    @keyframes authorHeaderIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .favs-header h1 {
      margin: 0 0 6px;
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .favs-header p {
      margin: 0;
      color: var(--text-soft);
      font-size: 0.88rem;
    }

    .favs-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 18px;
      flex-wrap: wrap;
    }

    .favs-login-gate {
      padding: 50px 24px;
      text-align: center;
      border-radius: 18px;
      background: rgba(99, 102, 241, 0.08);
      border: 1px solid rgba(99, 102, 241, 0.25);
    }

    .favs-login-gate p {
      margin: 0 0 18px;
      color: var(--text-muted);
      font-size: 0.95rem;
    }

    .favs-login-btn {
      min-height: 42px;
      padding: 0 22px;
      border-radius: 10px;
      border: 1.5px solid rgba(99, 102, 241, 0.7);
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(236, 72, 153, 0.25) 100%);
      color: var(--text);
      font-weight: 700;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .favs-login-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    }

    .settings-shell {
      max-width: 980px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 280px;
      gap: 20px;
      align-items: start;
    }

    .settings-main {
      min-width: 0;
    }

    .settings-sidebar {
      display: flex;
      flex-direction: column;
      gap: 16px;
      position: sticky;
      top: 18px;
    }

    .settings-side-card {
      background: rgba(99, 102, 241, 0.08);
      border: 1px solid rgba(99, 102, 241, 0.25);
      border-radius: 18px;
      padding: 20px;
      text-align: center;
    }

    .settings-side-avatar {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      margin: 0 auto 12px;
      background-size: cover;
      background-position: center;
      background-color: rgba(99, 102, 241, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1.4rem;
      color: var(--text);
      border: 2px solid rgba(99, 102, 241, 0.5);
    }

    .settings-side-name {
      font-weight: 800;
      font-size: 1rem;
      color: var(--text);
    }

    .settings-side-username {
      font-size: 0.82rem;
      color: var(--text-soft);
      margin-bottom: 14px;
    }

    .settings-side-stats {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-bottom: 16px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--line);
    }

    .settings-side-stat {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 0.75rem;
      color: var(--text-soft);
    }

    .settings-side-stat-value {
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--text);
    }

    .settings-side-link {
      width: 100%;
      box-sizing: border-box;
    }

    .settings-side-card h3 {
      margin: 0 0 12px;
      font-size: 0.9rem;
      font-weight: 800;
      color: var(--text);
      text-align: left;
    }

    .settings-side-quicklink {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 4px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.85rem;
      border-radius: 8px;
      transition: background 0.2s ease, color 0.2s ease;
      text-align: left;
    }

    .settings-side-quicklink:hover {
      background: rgba(99, 102, 241, 0.12);
      color: var(--text);
    }

    @media (max-width: 900px) {
      .settings-shell {
        grid-template-columns: 1fr;
      }
      .settings-sidebar {
        position: static;
      }
    }

    .settings-section[hidden] { display: none; }

    .settings-section {
      background: rgba(99, 102, 241, 0.08);
      border: 1px solid rgba(99, 102, 241, 0.25);
      border-radius: 18px;
      padding: 20px 22px;
      margin-bottom: 16px;
    }

    .settings-section h2 {
      margin: 0 0 6px;
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text);
    }

    .settings-section-desc {
      margin: 0 0 14px;
      color: var(--text-soft);
      font-size: 0.85rem;
    }

    .settings-section textarea {
      width: 100%;
      min-height: 84px;
      resize: vertical;
      border-radius: 12px;
      border: 1.5px solid var(--line-strong);
      background: rgba(255,255,255,0.04);
      color: var(--text);
      font-family: inherit;
      font-size: 0.9rem;
      padding: 12px;
      box-sizing: border-box;
      transition: border-color 0.2s ease;
    }

    .settings-section textarea:focus {
      outline: none;
      border-color: var(--primary);
    }

    .settings-row-end {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 10px;
    }

    .settings-char-count {
      font-size: 0.78rem;
      color: var(--text-soft);
      margin-right: auto;
    }

    .settings-save-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      padding: 0 20px;
      border-radius: 10px;
      border: 1.5px solid rgba(99, 102, 241, 0.7);
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(236, 72, 153, 0.25) 100%);
      color: var(--text);
      font-weight: 700;
      font-size: 0.85rem;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s ease;
    }

    .settings-save-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    }

    .settings-save-btn:disabled {
      opacity: 0.6;
      cursor: default;
      transform: none;
      box-shadow: none;
    }

    .settings-toggle-group {
      display: flex;
      gap: 8px;
    }

    .settings-toggle-btn {
      min-height: 38px;
      padding: 0 18px;
      border-radius: 10px;
      border: 1.5px solid var(--line-strong);
      background: rgba(255,255,255,0.04);
      color: var(--text-muted);
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .settings-toggle-btn.active {
      border-color: rgba(99, 102, 241, 0.8);
      background: rgba(99, 102, 241, 0.25);
      color: var(--text);
    }

    .settings-volume-row {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .settings-volume-row input[type="range"] {
      flex: 1;
      accent-color: var(--primary);
    }

    .settings-volume-value {
      font-size: 0.85rem;
      color: var(--text-muted);
      min-width: 42px;
      text-align: right;
    }

    .settings-switch-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      cursor: pointer;
      color: var(--text-muted);
      font-size: 0.9rem;
    }

    .settings-switch-row + .settings-switch-row {
      margin-top: 12px;
    }

    .settings-switch {
      position: relative;
      display: inline-block;
      width: 42px;
      height: 24px;
      flex-shrink: 0;
    }

    .settings-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .settings-switch-slider {
      position: absolute;
      inset: 0;
      background: rgba(255,255,255,0.15);
      border-radius: 999px;
      transition: background 0.2s ease;
    }

    .settings-switch-slider::before {
      content: '';
      position: absolute;
      width: 18px;
      height: 18px;
      left: 3px;
      top: 3px;
      background: #fff;
      border-radius: 50%;
      transition: transform 0.2s ease;
    }

    .settings-switch input:checked + .settings-switch-slider {
      background: rgba(99, 102, 241, 0.8);
    }

    .settings-switch input:checked + .settings-switch-slider::before {
      transform: translateX(18px);
    }

    .settings-hint {
      margin: 10px 0 0;
      font-size: 0.78rem;
      color: var(--text-soft);
    }

    .settings-hint a {
      color: var(--primary);
    }

    .settings-danger {
      border-color: rgba(248, 113, 113, 0.3);
      background: rgba(248, 113, 113, 0.06);
    }

    .settings-danger-btn {
      border-color: rgba(248, 113, 113, 0.6);
      background: linear-gradient(135deg, rgba(248, 113, 113, 0.25) 0%, rgba(236, 72, 153, 0.15) 100%);
    }

    .settings-badge-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .settings-badge-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 36px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1.5px solid var(--line-strong);
      background: rgba(255,255,255,0.04);
      color: var(--text-muted);
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .settings-badge-chip:hover {
      border-color: rgba(99, 102, 241, 0.6);
    }

    .settings-badge-chip.active {
      border-color: rgba(99, 102, 241, 0.8);
      background: rgba(99, 102, 241, 0.25);
      color: var(--text);
    }

    .settings-badge-icon {
      font-size: 1rem;
      line-height: 1;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      border-radius: 999px;
      padding: 6px 16px;
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.3);
      color: var(--text-muted);
      font-size: 0.85rem;
      font-weight: 600;
      line-height: 1;
      white-space: nowrap;
      transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
    }

    .chip:hover {
      background: rgba(99, 102, 241, 0.2);
      border-color: rgba(99, 102, 241, 0.6);
    }

    .chip.active {
      background: rgba(99, 102, 241, 0.3);
      border-color: rgba(99, 102, 241, 0.8);
      color: var(--text);
      box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    }

    .library-count {
      font-size: 0.8rem;
      color: var(--text-soft);
      white-space: nowrap;
      align-self: center;
      margin-left: auto;
    }

    .list-panel {
      background: rgba(99, 102, 241, 0.08);
      border: 1px solid rgba(99, 102, 241, 0.25);
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 0 50px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    }

    .track-list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      padding: 14px 14px 16px;
      min-height: 120px;
    }

    .track-row {
      display: grid;
      grid-template-columns: 24px 64px 1fr auto;
      grid-template-areas:
        "index cover meta meta"
        "index cover likes actions";
      align-items: center;
      row-gap: 8px;
      column-gap: 12px;
      padding: 12px 14px;
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(236, 72, 153, 0.03) 100%);
      border: 1px solid rgba(99, 102, 241, 0.2);
      transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      animation: trackRowIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
      cursor: pointer;
    }

    .track-row.skeleton {
      cursor: default;
    }

    @keyframes trackRowIn {
      from { opacity: 0; transform: translateY(14px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .track-row.skeleton {
      pointer-events: none;
      background: linear-gradient(100deg,
        rgba(99, 102, 241, 0.06) 30%,
        rgba(99, 102, 241, 0.16) 50%,
        rgba(99, 102, 241, 0.06) 70%);
      background-size: 250% 100%;
      animation: trackRowIn 0.3s ease both, skeletonShimmer 1.3s ease-in-out infinite;
    }

    .skeleton-block {
      background: rgba(255,255,255,0.08);
      border-radius: 8px;
    }

    @keyframes skeletonShimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .track-row:hover {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.08) 100%);
      border-color: rgba(99, 102, 241, 0.6);
      box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
      transform: translateY(-3px) translateX(2px);
    }

    .track-row:hover .track-cover {
      transform: scale(1.08) rotateY(5deg);
      box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    }

    .track-index {
      grid-area: index;
      font-size: 0.88rem;
      color: rgba(255,255,255,0.48);
      text-align: center;
      font-weight: 600;
    }

    .track-cover {
      grid-area: cover;
      width: 64px;
      height: 64px;
      border-radius: 14px;
      background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
      position: relative;
      box-shadow: 0 4px 16px rgba(0,0,0,0.3), inset 0 0 20px rgba(255,255,255,0.1);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      overflow: hidden;
    }

    .track-cover::before {
      content: "";
      position: absolute;
      inset: 12px;
      border-radius: 8px;
      background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 50%),
                  radial-gradient(circle, rgba(20,20,20,0.9) 0%, rgba(10,10,10,0.95) 100%);
      border: 1.5px solid rgba(255,255,255,0.15);
    }

    .track-cover::after {
      content: "🎵";
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      opacity: 0;
      transition: all 0.3s ease;
    }

    .track-row:hover .track-cover::after { opacity: 1; }

    .track-cover.c1 { background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%); }
    .track-cover.c2 { background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%); }
    .track-cover.c3 { background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%); }
    .track-cover.c4 { background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%); }

    .track-cover.has-image {
      background-size: cover;
      background-position: center;
    }

    .track-cover.has-image::before,
    .track-cover.has-image::after {
      content: none;
    }

    .track-meta {
      grid-area: meta;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
      color: rgba(255,255,255,0.9);
    }

    .track-meta > .track-titles {
      min-width: 0;
      flex: 1 1 auto;
    }

    .track-uploader {
      flex-shrink: 1;
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 6px;
      max-width: 122px;
      padding: 3px 10px 3px 3px;
      border-radius: 999px;
      background: rgba(10, 14, 30, 0.55);
      border: 1px solid rgba(255,255,255,0.14);
      color: var(--text-soft);
      font-size: 0.7rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.2s ease;
    }

    .track-uploader:hover {
      background: rgba(99, 102, 241, 0.4);
      border-color: rgba(99, 102, 241, 0.7);
      color: var(--text);
    }

    .uploader-avatar {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      flex-shrink: 0;
      background: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.58rem;
      font-weight: 800;
      color: #fff;
    }

    .uploader-name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
    }

    .uploader-badge {
      flex-shrink: 0;
      font-size: 0.78rem;
      line-height: 1;
    }

    .track-name {
      font-weight: 700;
      font-size: 1.08rem;
      letter-spacing: -0.02em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .track-sub {
      font-size: 0.78rem;
      color: rgba(255,255,255,0.6);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .track-duration {
      grid-area: likes;
      text-align: left;
      font-size: 0.8rem;
      color: rgba(255,255,255,0.75);
      font-weight: 700;
      letter-spacing: 0.3px;
      min-width: 50px;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .track-actions {
      grid-area: actions;
      display: flex;
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 8px;
    }

    .track-button {
      min-width: 96px;
      min-height: 36px;
      border: 1.5px solid rgba(99, 102, 241, 0.6);
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%);
      color: #ffffff;
      border-radius: 10px;
      cursor: pointer;
      font-size: 0.82rem;
      font-weight: 700;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      letter-spacing: 0.4px;
      text-transform: uppercase;
    }

    .track-button:hover {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(236, 72, 153, 0.3) 100%);
      border-color: rgba(99, 102, 241, 0.9);
      box-shadow: 0 0 25px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
      transform: translateY(-2px);
    }

    .track-button.copied {
      background: linear-gradient(135deg, rgba(52, 211, 153, 0.35) 0%, rgba(52, 211, 153, 0.2) 100%);
      border-color: rgba(52, 211, 153, 0.7);
    }

    .report-button,
    .play-inline-button {
      min-width: 0;
      width: 36px;
      padding: 0;
      font-size: 1rem;
    }

    .report-button {
      border-color: rgba(248, 113, 113, 0.45);
      background: linear-gradient(135deg, rgba(248, 113, 113, 0.14) 0%, rgba(236, 72, 153, 0.1) 100%);
    }

    .report-button:hover {
      border-color: rgba(248, 113, 113, 0.85);
      background: linear-gradient(135deg, rgba(248, 113, 113, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);
      box-shadow: 0 0 25px rgba(248, 113, 113, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    }

    .play-inline-button {
      border-color: rgba(52, 211, 153, 0.5);
      background: linear-gradient(135deg, rgba(52, 211, 153, 0.16) 0%, rgba(99, 102, 241, 0.1) 100%);
    }

    .play-inline-button:hover {
      border-color: rgba(52, 211, 153, 0.9);
      background: linear-gradient(135deg, rgba(52, 211, 153, 0.32) 0%, rgba(99, 102, 241, 0.2) 100%);
      box-shadow: 0 0 25px rgba(52, 211, 153, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(6, 8, 20, 0.72);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: flex-start;
      justify-content: center;
      z-index: 1000;
      padding: 16px;
      overflow-y: auto;
      overscroll-behavior: contain;
      animation: modalFadeIn 0.2s ease both;
    }

    .modal-overlay[hidden] { display: none; }

    .modal-overlay > .modal-box { margin-block: auto; }

    @keyframes modalFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal-box {
      width: 100%;
      max-width: 420px;
      background: linear-gradient(160deg, #171b3a 0%, #14183a 100%);
      border: 1px solid rgba(99, 102, 241, 0.35);
      border-radius: 18px;
      padding: 24px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
      animation: trackRowIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .modal-box h3 {
      margin: 0 0 6px;
      font-size: 1.2rem;
      font-weight: 800;
      color: var(--text);
    }

    .modal-box p.modal-subtitle {
      margin: 0 0 16px;
      font-size: 0.85rem;
      color: var(--text-soft);
    }

    .modal-box textarea {
      width: 100%;
      min-height: 96px;
      resize: vertical;
      border-radius: 12px;
      border: 1.5px solid var(--line-strong);
      background: rgba(255,255,255,0.04);
      color: var(--text);
      font-family: inherit;
      font-size: 0.9rem;
      padding: 12px;
      box-sizing: border-box;
      transition: border-color 0.2s ease;
    }

    .modal-box textarea:focus {
      outline: none;
      border-color: var(--primary);
    }

    .modal-message {
      margin-top: 10px;
      font-size: 0.82rem;
      min-height: 1.2em;
    }

    .modal-message.error { color: #f87171; }
    .modal-message.success { color: #34d399; }

    .sponsors-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px 16px;
      align-items: start;
      max-height: min(440px, 52vh);
      overflow-y: auto;
      overflow-x: hidden;
      margin: 4px 0;
      scrollbar-width: thin;
      scrollbar-color: rgba(99, 102, 241, 0.5) rgba(255,255,255,0.05);
    }

    .sponsors-list::-webkit-scrollbar {
      width: 6px;
    }

    .sponsors-list::-webkit-scrollbar-track {
      background: rgba(255,255,255,0.04);
      border-radius: 8px;
    }

    .sponsors-list::-webkit-scrollbar-thumb {
      background: rgba(99, 102, 241, 0.5);
      border-radius: 8px;
    }

    .sponsors-list::-webkit-scrollbar-thumb:hover {
      background: rgba(99, 102, 241, 0.75);
    }

    .sponsor-item {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      text-decoration: none;
      transition: all 0.2s ease;
    }

    .sponsor-item:hover {
      background: rgba(99, 102, 241, 0.14);
      border-color: rgba(99, 102, 241, 0.45);
      transform: translateX(2px);
    }

    @media (min-width: 641px) {
      .modal-box.sponsors-wide {
        max-width: 860px;
      }

      .sponsors-list.two-columns {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      }
    }

    .sponsor-column {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 0;
    }

    .sponsor-group-title {
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-soft);
      margin: 0 2px;
    }

    .sponsor-name {
      font-weight: 700;
      font-size: 0.92rem;
      color: var(--text);
      overflow-wrap: anywhere;
    }

    .howto-steps {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 4px 0 6px;
    }

    .howto-step {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px;
      border-radius: 12px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
    }

    .howto-step-num {
      flex-shrink: 0;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(236, 72, 153, 0.25) 100%);
      border: 1px solid rgba(99, 102, 241, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.82rem;
      color: var(--text);
    }

    .howto-step-text {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.4;
      padding-top: 3px;
    }

    a.modal-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      box-sizing: border-box;
    }

    .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 18px;
    }

    .modal-btn {
      min-height: 40px;
      padding: 0 18px;
      border-radius: 10px;
      font-size: 0.85rem;
      font-weight: 700;
      cursor: pointer;
      border: 1.5px solid var(--line-strong);
      background: transparent;
      color: var(--text);
      transition: all 0.2s ease;
    }

    .modal-btn.primary {
      border-color: rgba(99, 102, 241, 0.7);
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(236, 72, 153, 0.25) 100%);
    }

    .modal-btn.primary:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .modal-btn:hover:not(:disabled) {
      transform: translateY(-1px);
      border-color: rgba(255,255,255,0.4);
    }

    .sec-show-row {
      margin: 2px 0 6px;
      padding-left: 30px;
      font-size: 0.84rem;
      color: var(--text-muted);
    }

    .toast-container {
      position: fixed;
      top: 16px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 2000;
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: center;
      width: 100%;
      max-width: 460px;
      padding: 0 16px;
      box-sizing: border-box;
      pointer-events: none;
    }

    .toast {
      pointer-events: auto;
      width: auto;
      max-width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 14px;
      border-radius: 12px;
      background: linear-gradient(160deg, #171b3a 0%, #14183a 100%);
      border: 1px solid rgba(99, 102, 241, 0.4);
      box-shadow: 0 12px 40px rgba(0,0,0,0.45);
      color: var(--text);
      font-size: 0.86rem;
      line-height: 1.4;
      animation: toastIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .toast.error { border-color: rgba(248, 113, 113, 0.55); }
    .toast.success { border-color: rgba(52, 211, 153, 0.55); }
    .toast.info { border-color: rgba(99, 102, 241, 0.55); }

    .toast.leaving {
      animation: toastOut 0.2s ease forwards;
    }

    .toast-icon { flex-shrink: 0; font-size: 1.05rem; }
    .toast-text { flex: 0 1 auto; min-width: 0; word-break: break-word; }

    .toast-close {
      background: none;
      border: none;
      color: var(--text-soft);
      cursor: pointer;
      font-size: 0.95rem;
      padding: 0;
      line-height: 1;
      flex-shrink: 0;
      width: 26px;
      height: 26px;
      margin: -3px -5px -3px 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 7px;
    }

    .toast-close:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.08);
    }

    @keyframes toastIn {
      from { opacity: 0; transform: translateY(-14px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @keyframes toastOut {
      from { opacity: 1; transform: translateY(0) scale(1); }
      to { opacity: 0; transform: translateY(-14px) scale(0.96); }
    }

    .empty-state-row, .loading-state-row {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 120px;
      color: var(--text-muted);
      font-size: 0.9rem;
      text-align: center;
      padding: 24px;
    }

    .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 16px 14px 18px;
    }

    .page-btn {
      min-width: 36px;
      min-height: 36px;
      padding: 0 10px;
      border-radius: 10px;
      border: 1px solid rgba(99, 102, 241, 0.3);
      background: rgba(99, 102, 241, 0.1);
      color: var(--text-muted);
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 600;
      transition: all 0.2s ease;
    }

    .page-btn:hover:not(:disabled) {
      background: rgba(99, 102, 241, 0.25);
      color: var(--text);
      border-color: rgba(99, 102, 241, 0.6);
    }

    .page-btn:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

    .page-status {
      font-size: 0.82rem;
      color: var(--text-soft);
      min-width: 90px;
      text-align: center;
    }

    .menu-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(2px);
      z-index: 998;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-overlay.active {
      opacity: 1;
      pointer-events: all;
    }

    @media (max-width: 1000px) {
      @keyframes slideInRight {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
      }

      @keyframes slideOutRight {
        from { transform: translateX(0); opacity: 1; }
        to { transform: translateX(100%); opacity: 0; }
      }

      .nav.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 0; right: 0; left: 0; bottom: 0;
        width: 100%;
        height: 100vh;
        overflow-x: hidden;
        background: rgba(10, 12, 20, 0.35);
        padding: 55px 14px 16px;
        gap: 4px;
        z-index: 999;
        animation: slideInRight 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        backdrop-filter: blur(20px);
        overflow-y: auto;
      }

      .nav.left:not(.mobile-open) {
        animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
      }

      .nav.left.mobile-open .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 12px;
        right: 14px;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: 1px solid rgba(99, 102, 241, 0.4);
        background: rgba(99, 102, 241, 0.12);
        color: var(--text);
        font-size: 1rem;
        cursor: pointer;
      }

      .nav.left.mobile-open .nav.right {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        padding-top: 12px;
        justify-content: flex-start;
        border-top: 1px solid rgba(255,255,255,0.08);
      }

      .nav.left.mobile-open .nav-dropdown {
        display: flex;
        flex-direction: column;
        width: 100%;
      }

      .nav-item {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 12px 14px;
        font-size: 0.92rem;
        letter-spacing: 0;
        text-transform: none;
        font-weight: 600;
        border-radius: 10px;
        color: var(--text-muted);
        border: 1px solid transparent;
        background: transparent;
        box-shadow: none;
        transition: all 0.2s ease;
      }

      .nav-item:hover {
        background: rgba(99, 102, 241, 0.12);
        color: var(--text);
        border-color: transparent;
      }

      .nav-item.active {
        background: rgba(99, 102, 241, 0.16);
        border-color: transparent;
        color: var(--primary);
        border-left: 3px solid var(--primary);
        padding-left: 11px;
        box-shadow: none;
      }

      .nav.left.mobile-open .dropdown-menu {
        position: static;
        opacity: 1;
        pointer-events: auto;
        display: none;
        min-width: 0;
        width: 100%;
        margin: 4px 0 0;
        padding: 2px 0 2px 14px;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
      }

      .nav.left.mobile-open .dropdown-menu.show {
        display: flex;
        flex-direction: column;
      }

      .nav.left.mobile-open .dropdown-menu a {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-left: 2px solid rgba(255,255,255,0.1);
      }
    }

    @media (max-width: 760px) {
      .page {
        width: min(100vw, calc(100vw - 20px));
        margin: 12px auto 16px;
        border-radius: 16px;
      }

      .topbar { padding: 12px 14px 10px; gap: 10px; }
      .brand { min-width: auto; gap: 8px; font-size: 0.95rem; }
      .brand-svg.compact { width: 92px; }
      .top-actions { gap: 6px; }
      .profile-btn { padding: 0; width: 40px; height: 40px; justify-content: center; gap: 0; }
      .profile-name { display: none; }
      .profile-label { display: none; }

      * { backdrop-filter: none !important; }

      .top-actions {
        gap: 8px;
        margin-left: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
      }

      .track-list {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 1180px) and (min-width: 761px) {
      .track-list {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 480px) {
      .profile-name {
        max-width: 60px;
      }

      .track-cover { width: 48px; height: 48px; }
      .track-name { font-size: 0.95rem; }

      .track-button {
        min-width: 0;
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.72rem;
      }

      .report-button,
    .play-inline-button {
        width: 30px;
      }

      .track-uploader {
        max-width: 88px;
        font-size: 0.62rem;
      }

      .uploader-avatar {
        width: 15px;
        height: 15px;
      }

      .favs-header { padding: 16px; }
      .favs-header h1 { font-size: 1.25rem; }
    }

    #security-section [hidden] { display: none !important; }
    #roblox-library-section [hidden] { display: none !important; }
    #roblox-library-section .sec-form + .settings-switch-row,
    #rbx-unlink-row { margin-top: 14px; }
    #rbx-unlink-row { margin-bottom: 0; }
    .sec-hint.rbx-warning { margin-top: -6px; color: #fcd34d; }
    #rbx-artist { text-decoration: underline; text-underline-offset: 3px; }

    .sec-block {
      padding: 16px 0;
      border-top: 1px solid var(--line);
    }

    .sec-block:first-of-type { border-top: 0; padding-top: 4px; }

    .sec-block-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 6px;
    }

    .sec-block-title { font-weight: 600; }

    .sec-status {
      padding: 3px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.06);
      color: var(--text-soft);
      font-size: 12px;
      white-space: nowrap;
    }

    .sec-status.is-on {
      background: rgba(34, 197, 94, 0.15);
      color: #86efac;
    }

    .sec-hint {
      margin: 0 0 12px;
      color: var(--text-soft);
      font-size: 13px;
      line-height: 1.5;
    }

    .sec-hint code {
      padding: 2px 6px;
      border-radius: 6px;
      background: rgba(0, 0, 0, 0.35);
      font-size: 13px;
    }

    .sec-hint a { color: #c7d2fe; text-decoration: underline; }

    .sec-form {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .sec-form input {
      flex: 1 1 180px;
      min-width: 0;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: rgba(0, 0, 0, 0.25);
      color: var(--text);
    }

    .sec-form input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--primary-glow);
    }

    .sec-form .settings-save-btn { flex: 0 0 auto; }

    .sec-btn-quiet {
      background: rgba(255, 255, 255, 0.06);
      color: var(--text);
      box-shadow: none;
    }

    .sec-btn-quiet:hover { background: rgba(255, 255, 255, 0.1); }

    .sec-qr {
      width: 180px;
      max-width: 100%;
      margin: 0 0 12px;
      padding: 10px;
      border-radius: 14px;
      background: #fff;
    }

    .sec-qr svg { display: block; width: 100%; height: auto; }

    .sec-secret {
      display: inline-block;
      margin-bottom: 12px;
      padding: 8px 12px;
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.35);
      font-size: 14px;
      letter-spacing: 0.08em;
      word-break: break-all;
    }

    .sec-codes {
      margin-top: 14px;
      padding: 14px;
      border-radius: 14px;
      border: 1px solid rgba(245, 158, 11, 0.35);
      background: rgba(245, 158, 11, 0.08);
    }

    .sec-codes-warning { color: #fcd34d; }

    .sec-codes-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 6px 14px;
      margin: 0 0 12px;
      padding-left: 22px;
      font-size: 14px;
      letter-spacing: 0.05em;
    }

    .sec-link-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 0;
    }

    .sec-link-name {
      flex: 0 0 auto;
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .sec-link-icon {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
      color: var(--brand);
    }

    .sec-link-tg { --brand: #29a9eb; }
    .sec-link-ds { --brand: #7c85f5; }

    .sec-link-state {
      flex: 1 1 auto;
      color: var(--text-soft);
      font-size: 13px;
    }

    .sec-link-state.is-on { color: #86efac; }

    @media (max-width: 560px) {
      .sec-form input { flex-basis: 100%; }
      .sec-link-row { flex-wrap: wrap; }
    }

.sec-unconfirmed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 190, 90, 0.28);
  background: rgba(255, 190, 90, 0.08);
}

.sec-unconfirmed[hidden] { display: none !important; }

.sec-invalid {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.sec-invalid[hidden] { display: none !important; }

.merge-overlay[hidden] { display: none; }

.merge-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 18, 0.72);
  backdrop-filter: blur(4px);
}

.merge-card {
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #141a3a;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.merge-title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
  color: #fff;
}

.merge-intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.merge-list {
  margin: 0 0 14px;
  padding: 12px 14px;
  list-style: none;
  display: grid;
  gap: 6px;
  background: rgba(10, 14, 39, 0.6);
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
}

.merge-list b { font-variant-numeric: tabular-nums; }

.merge-warn {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #fbbf24;
}

.merge-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.merge-buttons .settings-save-btn { flex: 1 1 auto; }

@media (max-width: 420px) {
  .merge-card { padding: 20px 18px; }
  .merge-buttons .settings-save-btn { flex-basis: 100%; }
}

    @media (max-width: 340px) {
      .topbar { padding: 10px 6px 8px; gap: 6px; }

      .brand-svg.compact { width: 58px; }

      .top-actions { gap: 4px; }

      .lang-btn,
      .profile-btn,
      .menu-toggle {
        width: 32px;
        height: 32px;
      }

      .at-trigger-btn {
        height: 32px;
        padding: 0 8px;
      }
    }

    .lyacc-grants { display: grid; gap: 8px; margin-top: 10px; }
    .lyacc-grant { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
      background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
    .lyacc-grant-info { display: grid; min-width: 0; flex: 1; }
    .lyacc-grant-info small { color: var(--text-soft, rgba(255,255,255,0.55)); font-size: 0.78rem; }
    .lyacc-grant .settings-link-btn { margin: 0; flex: none; }

    .settings-link-btn {
      display: inline-flex;
      align-items: center;
      min-height: 38px;
      padding: 0 16px;
      border-radius: 12px;
      border: 1px solid rgba(129, 140, 248, 0.5);
      background: rgba(99, 102, 241, 0.18);
      color: #fff;
      font-weight: 700;
      font-size: 0.88rem;
      text-decoration: none;
      transition: background 0.2s;
    }

    .settings-link-btn:hover { background: rgba(99, 102, 241, 0.3); }
