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

    html {
      overflow-x: hidden;
    }

    body {
      background-color: var(--bg-primary);
      color: var(--text-primary);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      min-height: 100vh;
      overflow-x: hidden;
      transition: background-color 0.3s ease, color 0.3s ease;
    }

    /* CSS Variables for themes */
    :root {
      --bg-primary: #080808;
      --bg-secondary: #0e0e0e;
      --bg-tertiary: #0a0a0a;
      --bg-card: #0e0e0e;
      --bg-card-hover: #131313;
      --border-color: #1c1c1c;
      --border-hover: #2a2a2a;
      --text-primary: #fff;
      --text-secondary: #999;
      --text-tertiary: #666;
      --accent: #fff;
      --shadow: rgba(0, 0, 0, 0.4);
    }

    body.light-theme {
      --bg-primary: #fafafa;
      --bg-secondary: #ffffff;
      --bg-tertiary: #f5f5f5;
      --bg-card: #ffffff;
      --bg-card-hover: #f8f8f8;
      --border-color: #e0e0e0;
      --border-hover: #c0c0c0;
      --text-primary: #0a0a0a;
      --text-secondary: #555;
      --text-tertiary: #888;
      --accent: #0a0a0a;
      --shadow: rgba(0, 0, 0, 0.1);
    }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.2rem 2.5rem;
      background: rgba(8, 8, 8, 0.4);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      transition: all 0.3s ease;
      opacity: 1 !important;
      visibility: visible !important;
    }

    body.light-theme nav {
      background: rgba(250, 250, 250, 0.4);
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    nav:hover {
      border-bottom-color: var(--border-color);
    }

    .nav-logo {
      font-size: 1rem;
      font-weight: 900;
      letter-spacing: 0.2em;
      color: var(--text-primary);
      text-decoration: none;
      opacity: 1 !important;
      visibility: visible !important;
      transform: none !important;
      position: relative;
      z-index: 1000;
      display: inline-block !important;
      transition: color 0.3s ease !important;
      pointer-events: auto !important;
    }

    .nav-logo:hover,
    .nav-logo:focus,
    .nav-logo:active {
      opacity: 1 !important;
      visibility: visible !important;
      transform: none !important;
      color: var(--text-primary) !important;
      display: inline-block !important;
      filter: none !important;
      text-shadow: none !important;
    }

    /* Дополнительная защита для логотипа */
    nav .nav-logo,
    nav .nav-logo:hover,
    nav .nav-logo:focus,
    nav .nav-logo:active {
      opacity: 1 !important;
      visibility: visible !important;
      display: inline-block !important;
      transform: none !important;
      filter: none !important;
      text-shadow: none !important;
      pointer-events: auto !important;
      position: relative;
      z-index: 1000;
    }

    /* Максимальная защита от animations.css */
    a.nav-logo:hover,
    a.nav-logo:focus {
      opacity: 1 !important;
      visibility: visible !important;
      display: inline-block !important;
    }

    /* Отключаем псевдоэлементы для логотипа */
    .nav-logo::before,
    .nav-logo::after,
    a.nav-logo::before,
    a.nav-logo::after,
    nav .nav-logo::before,
    nav .nav-logo::after {
      display: none !important;
      content: none !important;
      opacity: 0 !important;
      visibility: hidden !important;
    }

    /* Theme Toggle Button */
    .theme-toggle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-right: 0.5rem;
      position: relative;
    }

    .theme-toggle:hover {
      background: var(--bg-card-hover);
      border-color: var(--border-hover);
      transform: rotate(20deg);
    }

    .theme-toggle svg {
      position: absolute;
      transition: all 0.3s ease;
      color: var(--text-secondary);
    }

    .theme-toggle .sun-icon {
      opacity: 0;
      transform: rotate(-90deg) scale(0);
    }

    .theme-toggle .moon-icon {
      opacity: 1;
      transform: rotate(0deg) scale(1);
    }

    body.light-theme .theme-toggle .sun-icon {
      opacity: 1;
      transform: rotate(0deg) scale(1);
    }

    body.light-theme .theme-toggle .moon-icon {
      opacity: 0;
      transform: rotate(90deg) scale(0);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nav-links a,
    .nav-links button.btn-login,
    .nav-links button.btn-signup {
      text-decoration: none;
      font-family: inherit;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      padding: 0.5rem 1.1rem;
      border-radius: 999px;
      transition: background 0.2s, color 0.2s;
    }

    .nav-links .btn-login {
      color: var(--text-secondary);
      background: transparent;
      border: 1px solid var(--border-color);
    }

    .nav-links .btn-login:hover {
      color: var(--text-primary);
      border-color: var(--border-hover);
      background: var(--bg-card-hover);
    }

    .nav-links .btn-signup {
      color: #000;
      background: #fff;
      border: 1px solid #fff;
    }

    .nav-links .btn-signup:hover {
      background: #e8e8e8;
      border-color: #e8e8e8;
    }

    body.light-theme .nav-links .btn-signup {
      border: 1px solid #222;
    }

    body.light-theme .nav-links .btn-signup:hover {
      background: #e8e8e8;
      border-color: #222;
    }

    /* account icon (shown when logged in) */
    .nav-links .btn-account {
      display: none;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      color: var(--text-secondary);
      text-decoration: none;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
      padding: 0;
    }

    .nav-links .btn-account:visited {
      color: var(--text-secondary);
    }

    .nav-links .btn-account.visible {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .nav-links .btn-account:hover {
      background: var(--bg-card-hover);
      border-color: var(--border-hover);
      color: var(--text-primary);
    }

    #bg {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      will-change: auto;
      opacity: 1;
      transition: opacity 0.3s ease;
    }

    #bg.loaded {
      opacity: 1;
    }

    nav {
      z-index: 100 !important;
    }

    .hero,
    .feature-section,
    .pricing,
    footer {
      position: relative;
      z-index: 1;
    }

    .hero-label {
      font-size: 0.65rem;
      letter-spacing: 0.5em;
      text-transform: uppercase;
      color: var(--text-tertiary);
      margin-bottom: 1rem;
      font-weight: 600;
    }

    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      height: auto;
      padding: 8rem 2rem 4rem;
      text-align: center;
      position: relative;
      background: transparent;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
      pointer-events: none;
    }

    .hero>* {
      width: fit-content;
      max-width: 90vw;
      pointer-events: auto;
      position: relative;
      z-index: 1;
    }

    .hero h1 {
      font-size: 8rem;
      font-weight: 900;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      line-height: 1;
      background: linear-gradient(90deg,
          #ffffff 0%,
          #666666 25%,
          #ffffff 50%,
          #666666 75%,
          #ffffff 100%);
      background-size: 200% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: heroShimmer 4s linear infinite;
      text-shadow: none;
      transition: filter 0.3s ease;
    }

    body.light-theme .hero h1 {
      background: linear-gradient(90deg,
          #0a0a0a 0%,
          #888888 25%,
          #0a0a0a 50%,
          #888888 75%,
          #0a0a0a 100%);
      background-size: 200% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: heroShimmer 4s linear infinite;
    }

    @keyframes heroShimmer {
      0% {
        background-position: 200% center;
      }

      100% {
        background-position: -200% center;
      }
    }

    .hero h1:hover {
      filter: brightness(1.3);
    }

    /* pill badge */
    .hero-badge {
      margin-top: 1.8rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.65rem;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 999px;
      padding: 0.5rem 1.4rem;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      color: var(--text-primary);
      text-transform: uppercase;
      white-space: nowrap;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(12px);
      transition: all 0.3s ease;
      width: auto;
      max-width: none;
      overflow: visible;
    }

    .hero-badge:hover {
      border-color: var(--border-hover);
      color: var(--text-primary);
      box-shadow:
        0 6px 16px var(--shadow),
        inset 0 1px 0 rgba(128, 128, 128, 0.05);
    }

    .hero-badge .status-pulse {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #10b981;
      box-shadow: 0 0 8px #10b981, 0 0 16px rgba(16, 185, 129, 0.4);
      animation: pulseGreen 2s infinite ease-in-out;
      flex-shrink: 0;
      display: inline-block;
    }

    .hero-badge-text {
      display: inline-block;
      width: auto !important;
      height: auto !important;
      font-size: inherit;
      color: inherit;
    }

    /* BUY button — modern pill */
    .btn-buy {
      margin-top: 2.5rem;
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      padding: 1.1rem 3.2rem;
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      background: #1a1a1a;
      color: #fff;
      border: 1px solid var(--border-hover);
      border-radius: 999px;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 4px 20px var(--shadow);
      position: relative;
      overflow: hidden;
      animation: btnPulse 3s ease-in-out infinite;
    }

    @keyframes btnPulse {

      0%,
      100% {
        box-shadow: 0 4px 20px var(--shadow);
      }

      50% {
        box-shadow: 0 4px 20px var(--shadow), 0 0 30px rgba(255, 255, 255, 0.1);
      }
    }

    body.light-theme .btn-buy {
      background: #fff;
      color: #000;
      border: 1px solid #c0c0c0;
    }

    .btn-buy::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      transform: translate(-50%, -50%);
      transition: width 0.6s ease, height 0.6s ease;
    }

    body.light-theme .btn-buy::before {
      background: rgba(0, 0, 0, 0.05);
    }

    .btn-buy:hover::before {
      width: 400px;
      height: 400px;
    }

    .btn-buy:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 8px 30px var(--shadow);
      border-color: var(--border-hover);
      background: #2a2a2a;
    }

    .btn-buy:active {
      transform: translateY(-1px) scale(0.98);
      box-shadow: 0 2px 10px var(--shadow);
      transition: all 0.1s ease;
    }

    body.light-theme .btn-buy:hover {
      background: #f5f5f5;
      border-color: #a0a0a0;
    }

    body.light-theme .btn-buy:active {
      background: #e8e8e8;
      transform: translateY(-1px) scale(0.98);
    }

    .btn-buy svg {
      width: 14px;
      height: 14px;
      fill: #fff;
      position: relative;
      z-index: 1;
    }

    body.light-theme .btn-buy svg {
      fill: #000;
    }

    body.light-theme .btn-card {
      background: #fff;
      color: #222;
      border: 1px solid #222;
    }

    body.light-theme .btn-card:hover {
      background: #f5f5f5;
      border-color: #222;
    }

    body.light-theme .card.featured .btn-card {
      background: #fff;
      border-color: #222;
    }

    body.light-theme .card {
      background: #fff;
      border: 1px solid #e0e0e0;
    }

    body.light-theme .card:hover {
      background: #fafafa;
      border-color: #d0d0d0;
    }

    body.light-theme .card h3 {
      color: #222;
    }

    body.light-theme .card .price {
      color: #222;
    }

    body.light-theme .card li {
      color: #666;
    }

    .btn-buy span {
      position: relative;
      z-index: 1;
    }

    .scroll-arrow {
      margin-top: 3rem;
      font-size: 1.3rem;
      color: #666;
      animation: bounce 1.8s infinite;
      z-index: 10;
      padding: 1rem;
      user-select: none;
      -webkit-user-select: none;
      cursor: pointer;
    }

    @keyframes bounce {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(7px);
      }
    }

    /* ── FADE UP ANIMATION ── */
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
      }
    }

    /* hero elements — fire immediately on load */
    .fade-up {
      opacity: 0;
      animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .delay-1 {
      animation-delay: 0.1s;
    }

    .delay-2 {
      animation-delay: 0.3s;
    }

    .delay-3 {
      animation-delay: 0.5s;
    }

    .delay-4 {
      animation-delay: 0.7s;
    }

    /* scroll-triggered elements start hidden */
    .reveal {
      opacity: 0;
      transform: translateY(60px);
      filter: blur(10px);
      transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }

    /* ── FEATURE BLOCK ── */
    .feature-section {
      padding: 5rem 2rem 3rem;
      display: flex;
      justify-content: center;
    }

    .feature-block {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 24px;
      width: 100%;
      max-width: 850px;
      overflow: hidden;
      box-shadow:
        0 8px 30px var(--shadow),
        inset 0 1px 0 rgba(128, 128, 128, 0.03);
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.light-theme .feature-block {
      background: #fff;
      border: 1px solid #e0e0e0;
    }

    body.light-theme .feature-block:hover {
      box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 0 60px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(0, 0, 0, 0.03);
      border-color: #c0c0c0;
    }

    .feature-block:hover {
      border-color: var(--border-hover);
      box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(128, 128, 128, 0.05);
      transform: translateY(-4px);
    }

    .feature-screenshot {
      width: 100%;
      height: 320px;
      background: #000;
      position: relative;
      overflow: hidden;
      border-bottom: 1px solid #1a1a1a;
      cursor: pointer;
      pointer-events: auto;
    }

    .feature-screenshot img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      opacity: 0.9;
      pointer-events: none;
      transform: translateZ(0);
      transition: all 0.4s ease;
    }

    .feature-screenshot:hover img {
      opacity: 0.6;
      transform: scale(1.05);
    }

    /* Play Button */
    .play-button {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      opacity: 0;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      pointer-events: none;
      z-index: 3;
    }

    .feature-screenshot:hover .play-button {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.1);
    }

    .play-button svg {
      filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
      transition: all 0.3s ease;
    }

    .feature-screenshot:hover .play-button svg {
      transform: scale(1.1);
    }

    .play-text {
      font-size: 1.2rem;
      font-weight: 700;
      letter-spacing: 0.3em;
      color: #fff;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    /* Video Modal */
    .video-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.95);
      z-index: 10000;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(10px);
      animation: fadeIn 0.3s ease;
    }

    .video-modal.active {
      display: flex;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    .video-modal-content {
      position: relative;
      width: 90%;
      max-width: 1200px;
      aspect-ratio: 16/9;
      background: #000;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
      animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .video-modal-close {
      position: absolute;
      top: -50px;
      right: 0;
      background: none;
      border: none;
      color: #fff;
      font-size: 3rem;
      cursor: pointer;
      z-index: 10001;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      opacity: 0.7;
    }

    .video-modal-close:hover {
      opacity: 1;
      transform: rotate(90deg);
    }

    .video-container {
      width: 100%;
      height: 100%;
      position: relative;
    }

    .video-container iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    /* gradient fade at bottom */
    .feature-screenshot::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 80px;
      background: linear-gradient(to bottom, transparent, var(--bg-card));
    }

    .screen-label {
      position: absolute;
      top: 14px;
      right: 16px;
      font-size: 0.6rem;
      letter-spacing: 0.25em;
      color: rgba(255, 255, 255, 0.2);
      text-transform: uppercase;
      z-index: 2;
    }

    .feature-info {
      padding: 1.8rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
      gap: 1.3rem;
    }

    .feature-item .tag {
      font-size: 0.62rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--text-tertiary);
      margin-bottom: 0.3rem;
    }

    .feature-item .name {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-secondary);
      margin-bottom: 0.35rem;
    }

    .feature-item .desc {
      font-size: 0.78rem;
      color: var(--text-tertiary);
      line-height: 1.6;
    }

    /* Feature Item Hover Effect */
    .feature-item {
      padding: 1rem;
      border-radius: 16px;
      background: transparent;
      border: 1px solid transparent;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: pointer;
    }

    .feature-item:hover {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 255, 255, 0.15),
        0 0 150px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      transform: translateY(-4px) scale(1.02);
    }

    body.light-theme .feature-item:hover {
      background: rgba(0, 0, 0, 0.02);
      border: 1px solid rgba(0, 0, 0, 0.1);
      box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.2),
        0 0 100px rgba(0, 0, 0, 0.08),
        0 0 150px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(0, 0, 0, 0.03);
    }

    /* ── PRICING ── */
    .pricing {
      padding: 2rem 2rem 7rem;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .pricing h2 {
      font-size: 0.72rem;
      letter-spacing: 0.5em;
      text-transform: uppercase;
      color: var(--text-tertiary);
      margin-bottom: 2.5rem;
    }

    .cards {
      display: flex;
      gap: 1.25rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    /* ── PRICING HALO TILE ── */
    .halo-tile {
      display: flex;
      flex-direction: column;
      width: 280px;
      padding: 1px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.05);
      position: relative;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      text-align: left;
    }

    body.light-theme .halo-tile {
      background: rgba(0, 0, 0, 0.1);
    }

    .halo-tile::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      border-radius: 20px;
      background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.15), transparent 60%);
      pointer-events: none;
      z-index: 0;
      opacity: 0.5;
      transition: opacity 0.4s ease;
    }

    body.light-theme .halo-tile::before {
      background: radial-gradient(circle at 50% -20%, rgba(0, 0, 0, 0.1), transparent 60%);
    }

    .halo-tile:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
      background: rgba(255, 255, 255, 0.08);
    }

    body.light-theme .halo-tile:hover {
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
      background: rgba(0, 0, 0, 0.15);
    }

    .halo-tile:hover::before {
      opacity: 1;
      background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(255, 255, 255, 0.35), transparent 70%);
    }

    /* Scroll progress bar at the very top */
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      background: linear-gradient(90deg, rgba(255,255,255,0.2), #ffffff, #ffffff, rgba(255,255,255,0.2));
      box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
      width: 0%;
      z-index: 999999 !important;
      pointer-events: none;
      transition: width 0.05s ease-out;
    }
    body.light-theme .scroll-progress {
      background: linear-gradient(90deg, rgba(0,0,0,0.2), #0a0a0a, #0a0a0a, rgba(0,0,0,0.2));
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    body.light-theme .halo-tile:hover::before {
      background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.15), transparent 70%);
    }

    .halo-tile__body {
      background: var(--bg-card);
      border-radius: 19px;
      padding: 2.2rem 1.75rem;
      display: flex;
      flex-direction: column;
      height: 100%;
      position: relative;
      z-index: 1;
    }

    .halo-tile__band {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem 1.2rem;
      background: rgba(255, 255, 255, 0.04);
      position: relative;
      z-index: 1;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: 19px 19px 0 0;
      margin: 0 1px;
      margin-top: 1px;
    }

    body.light-theme .halo-tile__band {
      background: rgba(0, 0, 0, 0.02);
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .halo-tile__eyebrow {
      font-size: 0.65rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-tertiary);
    }

    .halo-tile__chip {
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-primary);
      font-size: 0.65rem;
      font-weight: 700;
      padding: 0.2rem 0.5rem;
      border-radius: 99px;
    }

    body.light-theme .halo-tile__chip {
      background: rgba(0, 0, 0, 0.05);
    }

    .halo-tile__title {
      font-size: 0.95rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--text-secondary);
      margin-bottom: 0.75rem;
    }

    .halo-tile__price {
      margin-bottom: 1rem;
      display: flex;
      align-items: baseline;
      gap: 0.25rem;
    }

    .halo-tile__amount {
      font-size: 3rem;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1;
      letter-spacing: -0.02em;
    }

    .halo-tile__unit {
      color: var(--text-tertiary);
      font-size: 0.9rem;
    }

    .halo-tile__desc {
      font-size: 0.85rem;
      color: var(--text-tertiary);
      line-height: 1.5;
      margin-bottom: 1.5rem;
    }

    .halo-tile__list {
      list-style: none;
      margin-bottom: 2rem;
      flex: 1;
      padding: 0;
    }

    .halo-tile__list li {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      font-size: 0.85rem;
      color: var(--text-secondary);
      margin-bottom: 0.8rem;
    }

    .halo-tile__list svg {
      width: 16px;
      height: 16px;
      color: var(--text-primary);
      flex-shrink: 0;
      margin-top: 2px;
    }

    .halo-tile__cta {
      width: 100%;
      padding: 0.85rem;
      font-size: 0.85rem;
      font-weight: 600;
      background: var(--text-primary);
      color: var(--bg-primary);
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .halo-tile__cta:hover {
      background: var(--text-secondary);
      transform: translateY(-2px);
    }

    .halo-tile--secondary .halo-tile__cta {
      background: transparent;
      color: var(--text-primary);
      border: 1px solid var(--border-color);
    }

    .halo-tile--secondary .halo-tile__cta:hover {
      background: rgba(255,255,255,0.05);
      border-color: rgba(255,255,255,0.2);
    }
    
    body.light-theme .halo-tile--secondary .halo-tile__cta:hover {
      background: rgba(0, 0, 0, 0.05);
      border-color: rgba(0, 0, 0, 0.2);
    }

    /* lang switcher */
    .lang-switch {
      display: flex;
      align-items: center;
      gap: 0.1rem;
      margin-left: 0.75rem;
    }

    .lang-switch button {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      color: #555;
      padding: 0.3rem 0.5rem;
      border-radius: 4px;
      transition: color 0.2s;
      opacity: 0.35;
    }

    .lang-switch button:hover {
      color: #aaa;
    }

    .lang-switch .sep {
      color: #2a2a2a;
      font-size: 0.7rem;
    }

    /* scroll to top button */
    .scroll-top {
      position: fixed;
      bottom: 2rem;
      left: 2rem;
      width: 48px;
      height: 48px;
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 99;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s, transform 0.2s, background 0.2s;
    }

    .scroll-top.visible {
      opacity: 1;
      pointer-events: all;
    }

    .scroll-top:hover {
      background: #222;
      transform: translateY(-3px);
    }

    .scroll-top svg {
      width: 20px;
      height: 20px;
      stroke: #888;
    }

    footer {
      text-align: center;
      padding: 2rem;
      color: #ccc;
      background: transparent;
      font-size: 0.7rem;
      letter-spacing: 0.2em;
    }

    body.light-theme footer {
      color: #222;
      background: transparent;
    }

    /* Social buttons */
    .social-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1.2rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 999px;
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .social-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.2);
      color: var(--text-primary);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    body.light-theme .social-btn {
      background: rgba(0, 0, 0, 0.03);
      border-color: rgba(0, 0, 0, 0.1);
      color: var(--text-secondary);
    }

    body.light-theme .social-btn:hover {
      background: rgba(0, 0, 0, 0.06);
      border-color: rgba(0, 0, 0, 0.15);
      color: var(--text-primary);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    footer a {
      color: #999 !important;
    }

    footer a:hover {
      color: #ccc !important;
    }

    body.light-theme footer a {
      color: #333 !important;
    }

    body.light-theme footer a:hover {
      color: #666 !important;
    }

    /* ── MOBILE RESPONSIVE ── */
    @media (max-width: 768px) {
      nav {
        padding: 1rem 1.5rem;
      }

      .nav-logo {
        font-size: 0.9rem;
      }

      .nav-links {
        gap: 0.3rem;
      }

      .nav-links a {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
      }

      .nav-links .btn-account {
        width: 30px;
        height: 30px;
      }

      .lang-switch button {
        font-size: 0.65rem;
        padding: 0.25rem 0.35rem;
      }

      .hero h1 {
        font-size: 4rem;
      }

      .hero-label {
        font-size: 0.6rem;
      }

      .hero-badge {
        font-size: 0.6rem;
        padding: 0.35rem 0.9rem;
      }

      .btn-buy {
        padding: 0.85rem 2.5rem;
        font-size: 0.75rem;
      }

      .scroll-arrow {
        bottom: 5rem;
      }

      .feature-section {
        padding: 3rem 1rem 2rem;
      }

      .feature-screenshot {
        height: 280px;
      }

      .play-button svg {
        width: 60px;
        height: 60px;
      }

      .play-text {
        font-size: 1rem;
      }

      .video-modal-content {
        width: 95%;
      }

      .video-modal-close {
        top: -40px;
        font-size: 2.5rem;
      }

      .feature-info {
        padding: 1.5rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .pricing {
        padding: 2rem 1rem 5rem;
      }

      .pricing h2 {
        font-size: 0.65rem;
        margin-bottom: 2rem;
      }

      .cards {
        gap: 1rem;
      }

      .card {
        width: 100%;
        max-width: 320px;
        padding: 1.75rem 1.5rem;
      }

      .card.featured {
        width: 100%;
        max-width: 320px;
        padding: 2rem 1.5rem;
        transform: translateY(0);
      }

      .card.featured:hover {
        transform: translateY(-8px) scale(1.02);
      }

      .card .price {
        font-size: 2.8rem;
      }

      .scroll-top {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 44px;
        height: 44px;
      }

      footer {
        font-size: 0.65rem;
        padding: 1.5rem 1rem;
      }
    }

    @media (max-width: 480px) {
      .hero h1 {
        font-size: 3rem;
      }

      .hero-label {
        font-size: 0.55rem;
      }

      .hero-badge {
        font-size: 0.55rem;
        padding: 0.3rem 0.8rem;
        letter-spacing: 0.1em;
      }

      .btn-buy {
        padding: 0.75rem 2rem;
        font-size: 0.7rem;
      }

      .feature-screenshot {
        height: 220px;
      }

      .play-button svg {
        width: 50px;
        height: 50px;
      }

      .play-text {
        font-size: 0.9rem;
      }

      .card .price {
        font-size: 2.5rem;
      }
    }

    /* ── Uiverse Sliding Tabs ── */
    .cir-tabs {
      position: relative;
      display: flex;
      background-color: var(--bg-card);
      border: 1px solid var(--border-color);
      padding: 4px;
      border-radius: 99px;
      width: max-content;
      margin: 0 auto 3rem auto;
      box-shadow: rgb(35, 37, 42) 0px 0px 0px 1px inset;
      z-index: 2;
    }

    body.light-theme .cir-tabs {
      background-color: #fff;
      border: 1px solid #e0e0e0;
      box-shadow: none;
    }

    .cir-tabs::before {
      content: "";
      position: absolute;
      top: 4px;
      left: 4px;
      width: 120px;
      height: calc(100% - 8px);
      background-color: var(--accent);
      border-radius: 99px;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 0;
      box-shadow: 0 4px 12px rgba(228,242,34,0.15);
    }

    .cir-tabs:has(#cir-r-external:checked)::before {
      transform: translateX(120px);
    }

    .cir-tabs__r {
      display: none;
    }

    .cir-tabs__t {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 120px;
      height: 36px;
      font-size: 0.8125rem;
      font-weight: 510;
      color: var(--text-tertiary);
      cursor: pointer;
      transition: color 0.3s ease;
      user-select: none;
      letter-spacing: -0.011em;
    }

    .cir-tabs__t:hover {
      color: var(--text-secondary);
    }

    .cir-tabs__r:checked + .cir-tabs__t {
      color: var(--bg-primary); /* Contrast against the white/accent sliding background */
    }
  

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE OVERHAUL & POLISH
   ═══════════════════════════════════════════════════════════ */
body.light-theme {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f3f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f4f6;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent: #0f172a;
  --shadow: rgba(0, 0, 0, 0.06);
}

body.light-theme nav {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .nav-brand-img {
  filter: invert(1);
}

body.light-theme .hero h1 {
  color: #0f172a !important;
}

body.light-theme .hero-label {
  color: #64748b !important;
}

body.light-theme .hero-badge {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .btn-buy {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15) !important;
}
body.light-theme .btn-buy:hover {
  background: #1e293b !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25) !important;
}

body.light-theme .halo-tile {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .halo-tile:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.09) !important;
  border-color: #cbd5e1 !important;
}
body.light-theme .halo-tile__body {
  background: #ffffff !important;
}
body.light-theme .halo-tile__amount {
  color: #0f172a !important;
}
body.light-theme .halo-tile__title {
  color: #475569 !important;
}
body.light-theme .halo-tile__desc {
  color: #64748b !important;
}
body.light-theme .halo-tile__list li {
  color: #334155 !important;
}
body.light-theme .halo-tile.featured {
  background: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12) !important;
}
body.light-theme .halo-tile.featured .halo-tile__band {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.light-theme .halo-tile.featured .halo-tile__chip {
  background: #0f172a !important;
  color: #ffffff !important;
}
body.light-theme .halo-tile__cta {
  background: #0f172a !important;
  color: #ffffff !important;
}
body.light-theme .halo-tile__cta:hover {
  background: #1e293b !important;
}
body.light-theme .halo-tile--secondary .halo-tile__cta {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}
body.light-theme .halo-tile--secondary .halo-tile__cta:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

body.light-theme .feature-screenshot {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06) !important;
}
body.light-theme .feature-item {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
body.light-theme .feature-item .name {
  color: #0f172a !important;
}
body.light-theme .feature-item .desc {
  color: #475569 !important;
}
body.light-theme .feature-item .tag {
  color: #64748b !important;
}

body.light-theme .cir-tabs {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}
body.light-theme .cir-tabs__t {
  color: #64748b !important;
}
body.light-theme .cir-tabs__r:checked + .cir-tabs__t {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme #payment-modal-box,
body.light-theme .auth-modal-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}
body.light-theme .payment-btn,
body.light-theme .auth-input {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
body.light-theme .social-btn {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

/* ═══════════════════════════════════════════════════════════
   AUTH & ACCOUNT MODALS STYLING
   ═══════════════════════════════════════════════════════════ */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem;
}

.auth-modal.active {
  display: flex;
  opacity: 1;
}

.auth-modal-box {
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 20px;
  padding: 2.2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal.active .auth-modal-box {
  transform: scale(1);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .auth-tabs {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.65rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.light-theme .auth-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.auth-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.auth-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #121212;
  border: 1px solid #222;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: #161616;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

.auth-btn-submit {
  width: 100%;
  padding: 0.95rem;
  background: #ffffff;
  color: #080808;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.auth-btn-submit:hover {
  background: #e6e6e6;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.auth-message {
  font-size: 0.8rem;
  padding: 0.6rem;
  border-radius: 8px;
  display: none;
  margin-top: 0.5rem;
}
.auth-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.auth-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* User Account View in Modal */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #333 0%, #111 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}

.license-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.license-key-code {
  font-family: monospace;
  font-size: 0.85rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-copy-key {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-copy-key:hover {
  background: #fff;
  color: #000;
}


    /* === PIXEL-PERFECT NAVBAR ICONS FIX === */
    .theme-toggle,
    .btn-account,
    a.btn-account,
    .nav-links a.btn-account {
      width: 36px !important;
      height: 36px !important;
      min-width: 36px !important;
      max-width: 36px !important;
      min-height: 36px !important;
      max-height: 36px !important;
      padding: 0 !important;
      margin: 0 !important;
      border-radius: 50% !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      position: relative !important;
      box-sizing: border-box !important;
      background: rgba(255, 255, 255, 0.03) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      color: #888888 !important;
      text-decoration: none !important;
      cursor: pointer !important;
      overflow: hidden !important;
      line-height: 1 !important;
      vertical-align: middle !important;
      flex-shrink: 0 !important;
      transition: all 0.2s ease !important;
    }

    .theme-toggle:hover,
    .btn-account:hover,
    a.btn-account:hover,
    .nav-links a.btn-account:hover {
      background: rgba(255, 255, 255, 0.08) !important;
      border-color: rgba(255, 255, 255, 0.25) !important;
      color: #ffffff !important;
    }

    .theme-toggle svg,
    .btn-account svg,
    a.btn-account svg {
      width: 18px !important;
      height: 18px !important;
      display: block !important;
      margin: auto !important;
      padding: 0 !important;
      position: static !important;
      transform: none !important;
      stroke: currentColor !important;
      flex-shrink: 0 !important;
    }

    .theme-toggle .sun-icon { display: none !important; }
    .theme-toggle .moon-icon { display: block !important; }
    body.light-theme .theme-toggle .sun-icon { display: block !important; }
    body.light-theme .theme-toggle .moon-icon { display: none !important; }

    body.light-theme .theme-toggle,
    body.light-theme .btn-account,
    body.light-theme a.btn-account {
      background: #f1f5f9 !important;
      border-color: #cbd5e1 !important;
      color: #0f172a !important;
    }

    .nav-links {
      display: flex !important;
      align-items: center !important;
      gap: 0.65rem !important;
    }

    .nav-right {
      display: flex !important;
      align-items: center !important;
      gap: 0.65rem !important;
    }

    /* ═══════════════════════════════════════════════════════════
       TRUCE SCOREBOARD & RANKING SECTION STYLES
       ═══════════════════════════════════════════════════════════ */
    .nav-ranking-pill {
      display: inline-flex !important;
      align-items: center !important;
      gap: 0.4rem !important;
      padding: 0.35rem 0.85rem !important;
      background: rgba(255, 255, 255, 0.05) !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-radius: 999px !important;
      color: #e4e4e7 !important;
      font-size: 0.74rem !important;
      font-weight: 750 !important;
      letter-spacing: 0.03em !important;
      text-decoration: none !important;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
      cursor: pointer !important;
    }

    .nav-ranking-pill:hover {
      background: rgba(255, 255, 255, 0.1) !important;
      border-color: rgba(255, 255, 255, 0.25) !important;
      color: #ffffff !important;
      transform: translateY(-1px) scale(1.02) !important;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    }

    .ranking-section {
      position: relative;
      padding: 5rem 1.5rem 4rem;
      width: 100%;
      box-sizing: border-box;
      overflow: hidden;
    }

    .ranking-container {
      max-width: 1160px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
    }

    .ranking-glow-bg {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 600px;
      height: 450px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(139, 92, 246, 0.03) 50%, transparent 80%);
      pointer-events: none;
      filter: blur(80px);
      z-index: 1;
    }

    .ranking-header {
      text-align: center;
      margin-bottom: 2.75rem;
      position: relative;
      z-index: 2;
    }

    .ranking-badge-pill-header {
      margin-bottom: 0.85rem !important;
      font-size: 0.68rem !important;
      padding: 0.4rem 1.1rem !important;
      border-color: rgba(255, 255, 255, 0.14) !important;
      background: rgba(255, 255, 255, 0.05) !important;
      color: #d4d4d8 !important;
    }

    .ranking-pulse-white {
      background: #ffffff !important;
      box-shadow: 0 0 10px #ffffff, 0 0 18px rgba(255, 255, 255, 0.5) !important;
    }

    .ranking-title {
      font-size: 2.35rem;
      font-weight: 850;
      letter-spacing: -0.02em;
      color: #ffffff;
      margin: 0 0 0.65rem;
      text-transform: uppercase;
      line-height: 1.15;
    }

    .ranking-subtitle {
      font-size: 0.88rem;
      color: #a1a1aa;
      max-width: 620px;
      margin: 0 auto;
      line-height: 1.6;
    }

    .ranking-tabs-wrap {
      display: inline-flex;
      background: rgba(20, 20, 24, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 999px;
      padding: 0.35rem;
      margin-top: 1.85rem;
      gap: 0.4rem;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      flex-wrap: wrap;
      justify-content: center;
    }

    .ranking-tab-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.6rem 1.25rem;
      border-radius: 999px;
      background: transparent;
      border: 1px solid transparent;
      color: #a1a1aa;
      font-size: 0.78rem;
      font-weight: 750;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      letter-spacing: 0.02em;
    }

    .ranking-tab-btn:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.06);
    }

    .ranking-tab-btn.active {
      background: #ffffff;
      color: #09090b;
      box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
    }

    .ranking-tab-badge {
      font-size: 0.58rem;
      font-weight: 800;
      padding: 0.12rem 0.42rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      color: #a1a1aa;
      border: 1px solid rgba(255, 255, 255, 0.12);
      letter-spacing: 0.04em;
    }

    .ranking-tab-btn.active .ranking-tab-badge {
      background: rgba(0, 0, 0, 0.12);
      color: #09090b;
      border-color: rgba(0, 0, 0, 0.2);
    }

    /* ── Podium Grid ── */
    .ranking-podium-grid {
      display: grid;
      grid-template-columns: 1fr 1.15fr 1fr;
      gap: 1.5rem;
      align-items: flex-end;
      margin-bottom: 2.5rem;
    }

    @media (max-width: 860px) {
      .ranking-podium-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
      }
    }

    .podium-card {
      position: relative;
      background: #0f0f13;
      border-radius: 24px;
      padding: 2.25rem 1.6rem 1.85rem;
      text-align: center;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      box-sizing: border-box;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
      display: flex;
      flex-direction: column;
      align-items: center;
      border: 1px solid rgba(255, 255, 255, 0.08);
      overflow: visible;
    }

    .podium-card:hover {
      transform: translateY(-4px);
    }

    /* Rank 1 (Gold) */
    .podium-card--1 {
      order: 2;
      padding-top: 2.85rem;
      padding-bottom: 2.35rem;
      border-color: rgba(245, 158, 11, 0.45);
      background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15) 0%, #12100d 80%);
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(245, 158, 11, 0.18);
    }

    .podium-card--1:hover {
      border-color: rgba(245, 158, 11, 0.7);
      box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 65px rgba(245, 158, 11, 0.28);
    }

    /* Rank 2 (Silver) */
    .podium-card--2 {
      order: 1;
      border-color: rgba(226, 232, 240, 0.35);
      background: radial-gradient(circle at 50% 0%, rgba(226, 232, 240, 0.12) 0%, #0e1116 80%);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(226, 232, 240, 0.1);
    }

    /* Rank 3 (Bronze) */
    .podium-card--3 {
      order: 3;
      border-color: rgba(217, 119, 6, 0.35);
      background: radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.12) 0%, #130d09 80%);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(217, 119, 6, 0.1);
    }

    @media (max-width: 860px) {
      .podium-card--1 { order: 1; }
      .podium-card--2 { order: 2; }
      .podium-card--3 { order: 3; }
    }

    .podium-crown {
      position: absolute;
      top: -24px;
      left: 50%;
      transform: translateX(-50%);
      width: 44px;
      height: 44px;
      filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.8));
      animation: crownFloatAnim 3s infinite ease-in-out;
      z-index: 4;
    }

    @keyframes crownFloatAnim {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50% { transform: translateX(-50%) translateY(-5px); }
    }

    .podium-avatar-wrap {
      position: relative;
      margin-bottom: 1.15rem;
    }

    .podium-avatar-img {
      width: 78px;
      height: 78px;
      border-radius: 50%;
      object-fit: cover;
      display: block;
      border: 3px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
      background: #141418;
    }

    .podium-card--1 .podium-avatar-img {
      width: 96px;
      height: 96px;
      border-color: #f59e0b;
      box-shadow: 0 0 25px rgba(245, 158, 11, 0.45);
    }

    .podium-card--2 .podium-avatar-img {
      border-color: #cbd5e1;
      box-shadow: 0 0 20px rgba(226, 232, 240, 0.35);
    }

    .podium-card--3 .podium-avatar-img {
      border-color: #d97706;
      box-shadow: 0 0 20px rgba(217, 119, 6, 0.35);
    }

    .podium-rank-badge {
      position: absolute;
      bottom: -6px;
      right: -6px;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    }

    .podium-rank-badge img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .podium-username {
      font-size: 1.25rem;
      font-weight: 850;
      color: #ffffff;
      text-decoration: none;
      letter-spacing: -0.01em;
      margin-bottom: 0.35rem;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      transition: color 0.2s;
    }

    .podium-username:hover {
      color: #cbd5e1;
    }

    .podium-card--1 .podium-username {
      font-size: 1.45rem;
    }

    .podium-bio-snippet {
      font-size: 0.76rem;
      color: #888899;
      max-width: 240px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin-bottom: 0.95rem;
    }

    .podium-stat-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.45rem 1rem;
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 850;
      margin-bottom: 1.25rem;
      letter-spacing: 0.02em;
    }

    .podium-card--1 .podium-stat-pill {
      background: rgba(245, 158, 11, 0.16);
      border: 1px solid rgba(245, 158, 11, 0.4);
      color: #fde68a;
    }

    .podium-card--2 .podium-stat-pill {
      background: rgba(226, 232, 240, 0.12);
      border: 1px solid rgba(226, 232, 240, 0.3);
      color: #ffffff;
    }

    .podium-card--3 .podium-stat-pill {
      background: rgba(217, 119, 6, 0.14);
      border: 1px solid rgba(217, 119, 6, 0.35);
      color: #fed7aa;
    }

    .podium-btn-profile {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      width: 100%;
      padding: 0.65rem 1rem;
      border-radius: 12px;
      font-size: 0.78rem;
      font-weight: 800;
      text-decoration: none;
      transition: all 0.2s ease;
      box-sizing: border-box;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.04);
      color: #ffffff;
    }

    .podium-btn-profile:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.25);
      transform: translateY(-1px);
    }

    .podium-card--1 .podium-btn-profile {
      background: #ffffff;
      color: #080808;
      border: none;
      box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }

    .podium-card--1 .podium-btn-profile:hover {
      background: #f4f4f5;
      transform: translateY(-1px);
    }

    /* ── Table Card ── */
    .ranking-table-card {
      background: #0d0d11;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    }

    .ranking-table-topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.15rem 1.6rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      flex-wrap: wrap;
      gap: 1rem;
    }

    .ranking-table-title {
      font-size: 0.95rem;
      font-weight: 800;
      color: #ffffff;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .ranking-search-wrap {
      position: relative;
      display: flex;
      align-items: center;
      min-width: 220px;
    }

    .ranking-search-wrap svg {
      position: absolute;
      left: 0.85rem;
      pointer-events: none;
    }

    .ranking-search-input {
      width: 100%;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 999px;
      padding: 0.45rem 1rem 0.45rem 2.25rem;
      color: #ffffff;
      font-size: 0.78rem;
      outline: none;
      transition: all 0.2s ease;
      box-sizing: border-box;
    }

    .ranking-search-input:focus {
      background: rgba(255, 255, 255, 0.07);
      border-color: rgba(255, 255, 255, 0.35);
      box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
    }

    .ranking-table-list {
      display: flex;
      flex-direction: column;
    }

    .ranking-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.95rem 1.6rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
      transition: background 0.18s ease;
      gap: 1rem;
    }

    .ranking-row:last-child {
      border-bottom: none;
    }

    .ranking-row:hover {
      background: rgba(255, 255, 255, 0.03);
    }

    .ranking-row-left {
      display: flex;
      align-items: center;
      gap: 1rem;
      min-width: 0;
      flex: 1;
    }

    .ranking-row-rank {
      font-family: monospace;
      font-size: 0.95rem;
      font-weight: 850;
      color: #71717a;
      width: 28px;
      text-align: center;
      flex-shrink: 0;
    }

    .ranking-row-avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
      border: 1.5px solid rgba(255, 255, 255, 0.1);
      background: #141418;
    }

    .ranking-row-info {
      overflow: hidden;
      min-width: 0;
    }

    .ranking-row-username {
      font-size: 0.92rem;
      font-weight: 800;
      color: #ffffff;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      transition: color 0.18s;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ranking-row-username:hover {
      color: #cbd5e1;
    }

    .ranking-row-sub {
      font-size: 0.72rem;
      color: #71717a;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ranking-row-right {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      flex-shrink: 0;
    }

    .ranking-row-stat {
      font-size: 0.84rem;
      font-weight: 850;
      color: #ffffff;
      letter-spacing: 0.02em;
      text-align: right;
    }

    .ranking-row-btn {
      padding: 0.4rem 0.9rem;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #d4d4d8;
      font-size: 0.74rem;
      font-weight: 750;
      text-decoration: none;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .ranking-row-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.2);
      color: #ffffff;
    }

    /* ── Empty / Coming Soon State ── */
    .ranking-empty-state {
      grid-column: 1 / -1;
      background: #0f0f13;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 24px;
      padding: 3.5rem 2rem;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    }

    .ranking-empty-icon {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.25rem;
      color: #a1a1aa;
    }

    .ranking-empty-title {
      font-size: 1.2rem;
      font-weight: 800;
      color: #ffffff;
      margin: 0 0 0.5rem;
      letter-spacing: -0.01em;
    }

    .ranking-empty-desc {
      font-size: 0.82rem;
      color: #71717a;
      max-width: 460px;
      line-height: 1.6;
      margin: 0 0 1.5rem;
    }

    .btn-ranking-back {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.6rem 1.35rem;
      background: #ffffff;
      color: #09090b;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 800;
      cursor: pointer;
      border: none;
      transition: all 0.2s ease;
      box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
    }

    .btn-ranking-back:hover {
      background: #e4e4e7;
      transform: translateY(-1px);
    }

    /* ── Main View Transitions (Home / Ranking View Separation) ── */
    .main-view-container {
      width: 100%;
      position: relative;
    }

    #viewRanking {
      padding-top: 4.5rem;
      min-height: 80vh;
    }

    #viewRanking .ranking-section {
      padding-top: 1rem;
    }

    /* ── Floating Navigation Dock (Centered, Smooth Glassmorphism) ── */
    .floating-nav-dock {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 9998;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 8px;
      background: rgba(14, 14, 18, 0.82);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
      border: 1px solid rgba(255, 255, 255, 0.13);
      border-radius: 999px;
      box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
      animation: floatingDockEntrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
      user-select: none;
    }

    @keyframes floatingDockEntrance {
      0% {
        opacity: 0;
        transform: translate(-50%, 20px) scale(0.92);
      }
      100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
      }
    }

    .floating-nav-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 18px;
      border-radius: 999px;
      background: transparent;
      border: 1px solid transparent;
      color: #9ca3af;
      font-size: 0.8rem;
      font-weight: 750;
      cursor: pointer;
      outline: none;
      transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
      letter-spacing: 0.02em;
      white-space: nowrap;
    }

    .floating-nav-icon {
      flex-shrink: 0;
      transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .floating-nav-btn:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.08);
      transform: translateY(-1px);
    }

    .floating-nav-btn:hover .floating-nav-icon {
      transform: scale(1.12);
    }

    .floating-nav-btn.active {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.24);
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .floating-nav-btn.active .floating-nav-icon {
      color: #ffffff;
      transform: scale(1.08);
    }

    .floating-nav-divider {
      width: 1px;
      height: 18px;
      background: rgba(255, 255, 255, 0.12);
      margin: 0 2px;
    }

    @media (max-width: 600px) {
      .floating-nav-dock {
        bottom: 16px;
        padding: 4px 6px;
      }
      .floating-nav-btn {
        padding: 7px 14px;
        font-size: 0.74rem;
        gap: 6px;
      }
    }

    .ranking-spinner {
      width: 28px;
      height: 28px;
      border: 2.5px solid rgba(255, 255, 255, 0.1);
      border-top-color: #ffffff;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin: 0 auto;
    }

    .ranking-loading-state {
      grid-column: 1 / -1;
      text-align: center;
      padding: 3.5rem 1rem;
      color: #71717a;
      font-size: 0.85rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.85rem;
    }
