    :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;
    }

    .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;
    }

    .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);
    }

    .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:hover {
      transform: translateY(-1px);
      border-color: rgba(255,255,255,0.4);
    }

    .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); }
    }

    .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;
      }

      .invite-head h1 { font-size: 1.35rem; }
      .invite-links { grid-template-columns: 1fr; }
      .invite-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
      .invite-stat.is-main { grid-column: 1 / -1; }
    }

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

      .invite-panel, .invite-link-card { padding: 14px; }
      .invite-stat { padding: 14px 10px; }
      .invite-stat-value { font-size: 1.5rem; }
      .invite-link-row { flex-wrap: wrap; }
      .invite-copy { width: 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;
      }
    }

    .groups-head {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 4px 4px 22px;
    }

    .groups-head h1 {
      margin: 0;
      font-size: clamp(1.6rem, 2.4vw, 2.2rem);
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .groups-head p {
      max-width: 620px;
      margin: 6px 0 0;
      color: var(--text-muted);
      font-size: 0.92rem;
      line-height: 1.5;
    }

    .groups-add { white-space: nowrap; }

    .groups-state[hidden], .groups-list[hidden] { display: none; }

    .groups-panel {
      padding: 22px;
      border-radius: 18px;
      border: 1px solid rgba(99, 102, 241, 0.25);
      background: rgba(99, 102, 241, 0.06);
    }

    .groups-panel h2 { margin: 0 0 14px; font-size: 1.15rem; }

    .groups-gate-panel {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .groups-gate-panel p { margin: 0; color: var(--text-muted); }

    .groups-steps {
      display: grid;
      gap: 12px;
      margin: 0;
      padding-left: 22px;
    }

    .groups-steps li { padding-left: 4px; }

    .groups-steps strong { display: block; margin-bottom: 3px; }

    .groups-steps span { color: var(--text-muted); font-size: 0.9rem; line-height: 1.45; }

    .groups-list {
      display: grid;
      gap: 18px;
    }

    .group-card {
      padding: 20px 22px;
      border-radius: 20px;
      border: 1px solid rgba(99, 102, 241, 0.25);
      background:
        radial-gradient(120% 80% at 0% 0%, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0) 55%),
        rgba(99, 102, 241, 0.05);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
      scroll-margin-top: 90px;
    }

    .group-card.is-focused { border-color: rgba(167, 139, 250, 0.8); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18); }

    .group-card-head {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
    }

    .group-ava {
      display: grid;
      place-items: center;
      flex: none;
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: linear-gradient(135deg, #6366f1 0%, #a855f7 52%, #ec4899 100%);
      font-weight: 800;
      font-size: 1.1rem;
    }

    .group-card-title { flex: 1; min-width: 160px; }

    .group-card-title h2 { margin: 0; font-size: 1.1rem; }

    .group-card-title span { color: var(--text-soft); font-size: 0.82rem; }

    .group-card-title a { color: #c4b5fd; }

    .group-status {
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 0.76rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .group-status.ok { background: rgba(52, 211, 153, 0.15); color: #a7f3d0; }
    .group-status.warn { background: rgba(251, 191, 36, 0.14); color: #fde68a; }

    .group-hint {
      margin: 12px 0 0;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px dashed rgba(251, 191, 36, 0.35);
      color: rgba(255, 255, 255, 0.78);
      font-size: 0.85rem;
      line-height: 1.45;
    }

    .group-rows {
      display: grid;
      margin-top: 14px;
    }

    .group-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px 16px;
      padding: 12px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .group-row-label { display: flex; flex-direction: column; gap: 2px; min-width: 200px; flex: 1; }

    .group-row-label span { font-weight: 700; font-size: 0.92rem; }

    .group-row-label small { color: var(--text-soft); font-size: 0.78rem; line-height: 1.4; }

    .group-seg {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 2px;
      padding: 3px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(8, 10, 28, 0.38);
    }

    .group-seg button {
      min-height: 30px;
      padding: 0 12px;
      border: 0;
      border-radius: 9px;
      background: transparent;
      color: var(--text-muted);
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
    }

    .group-seg button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

    .group-seg button.on {
      background: rgba(99, 102, 241, 0.34);
      color: var(--text);
      box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.6);
    }

    .group-seg button:disabled { cursor: wait; }

    .group-welcome {
      margin-top: 4px;
      padding-top: 12px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .group-welcome[hidden] { display: none; }

    .group-welcome label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }

    .group-welcome textarea {
      width: 100%;
      min-height: 64px;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid rgba(129, 140, 248, 0.35);
      background: rgba(8, 10, 28, 0.5);
      color: var(--text);
      font: inherit;
      font-weight: 400;
      font-size: 0.9rem;
      resize: vertical;
    }

    .group-welcome textarea:focus { outline: none; border-color: rgba(167, 139, 250, 0.8); }

    .group-welcome-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: 8px;
    }

    .group-welcome-bar small { color: var(--text-soft); font-size: 0.78rem; }

    @media (max-width: 560px) {
      .group-card { padding: 16px 14px; }
      .group-seg { width: 100%; }
      .group-seg button { flex: 1 1 auto; }
      .groups-add { width: 100%; text-align: center; }
    }
