    :root {
      --bg-color: #06070d;
      --card-bg: rgba(20, 22, 37, 0.6);
      --card-border: rgba(255, 255, 255, 0.05);
      --primary-color: #25d366;
      --primary-glow: rgba(37, 211, 102, 0.15);
      --accent-color: #00ffcc;
      --text-color: #e2e8f0;
      --text-muted: #64748b;
      --error-color: #ef4444;
      --success-bg: rgba(37, 211, 102, 0.1);
      --danger-bg: rgba(239, 68, 68, 0.1);
    }

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

    body {
      font-family: 'Outfit', sans-serif;
      background-color: var(--bg-color);
      background-image:
        radial-gradient(at 0% 0%, rgba(37, 211, 102, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(0, 255, 204, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(37, 211, 102, 0.03) 0px, transparent 50%);
      color: var(--text-color);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }

    /* App Layout Container */
    .app-layout {
      display: flex;
      min-height: 100vh;
      width: 100%;
    }

    /* Sidebar - Desktop */
    .sidebar {
      width: 280px;
      background: rgba(10, 11, 23, 0.85);
      border-right: 1px solid var(--card-border);
      backdrop-filter: blur(20px);
      padding: 30px 20px;
      display: flex;
      flex-direction: column;
      gap: 40px;
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      z-index: 100;
      transition: all 0.3s ease;
    }

    .sidebar-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }

    .brand-logo {
      width: 42px;
      height: 42px;
      background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      box-shadow: 0 0 20px var(--primary-glow);
    }

    .sidebar-brand h2 {
      font-size: 22px;
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.5px;
    }

    .sidebar-brand h2 span {
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .sidebar-nav {
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 1;
    }

    .nav-tab {
      background: transparent;
      border: none;
      color: var(--text-muted);
      padding: 14px 18px;
      border-radius: 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: 16px;
      font-weight: 600;
      text-align: left;
      transition: all 0.3s ease;
      width: 100%;
    }

    .nav-tab:hover {
      background: rgba(255, 255, 255, 0.03);
      color: #fff;
    }

    .nav-tab.active {
      background: var(--primary-glow);
      color: var(--primary-color);
      border: 1px solid rgba(37, 211, 102, 0.15);
    }

    .sidebar-footer {
      margin-top: auto;
      border-top: 1px solid var(--card-border);
      padding-top: 20px;
    }

    /* Mobile Top Header */
    header {
      display: none;
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--card-border);
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(6, 7, 13, 0.7);
    }

    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }

    .brand h1 {
      font-size: 22px;
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.5px;
    }

    .brand span {
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* User Pill / Login Info */
    .user-pill {
      display: flex;
      align-items: center;
      gap: 12px;
      background: rgba(255, 255, 255, 0.03);
      padding: 6px 14px;
      border-radius: 30px;
      border: 1px solid var(--card-border);
    }

    .user-pill .avatar {
      width: 24px;
      height: 24px;
      background: var(--primary-color);
      color: #000;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 12px;
    }

    .user-pill span {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
    }

    .logout-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: color 0.2s;
    }

    .logout-btn:hover {
      color: var(--error-color);
    }

    /* Mobile Bottom Navbar */
    .mobile-bottom-nav {
      display: none;
    }

    /* Main Content Area */
    main {
      flex: 1;
      max-width: 1200px;
      width: calc(100% - 280px);
      margin-left: 280px;
      padding: 40px 32px;
      display: flex;
      flex-direction: column;
      gap: 32px;
      transition: all 0.3s ease;
    }

    /* Cards */
    .card {
      background: var(--card-bg);
      border-radius: 24px;
      border: 1px solid var(--card-border);
      padding: 28px;
      backdrop-filter: blur(16px);
      transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .card:hover {
      transform: translateY(-4px);
      border-color: rgba(37, 211, 102, 0.2);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }

    .card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
      opacity: 0;
      transition: opacity 0.3s;
    }

    .card:hover::before {
      opacity: 1;
    }

    .card-title {
      font-size: 15px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .card-title span {
      font-size: 18px;
    }

    /* Grid Layouts */
    .grid-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    .dashboard-layout {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 32px;
    }

    @media (max-width: 992px) {
      .dashboard-layout {
        grid-template-columns: 1fr;
      }
    }

    /* Stats Specific */
    .stat-number {
      font-size: 42px;
      font-weight: 800;
      color: #fff;
      letter-spacing: -1px;
      line-height: 1.2;
    }

    .stat-desc {
      font-size: 13px;
      color: var(--text-muted);
      margin-top: 6px;
    }

    /* Hero section */
    .hero {
      text-align: center;
      padding: 20px 0;
    }

    .hero h2 {
      font-size: 40px;
      font-weight: 800;
      letter-spacing: -1.5px;
      color: #fff;
      margin-bottom: 12px;
    }

    .hero p {
      font-size: 16px;
      color: var(--text-muted);
      max-width: 600px;
      margin: 0 auto;
    }

    /* Guest Callout */
    .guest-banner {
      background: linear-gradient(135deg, rgba(20, 22, 37, 0.8), rgba(37, 211, 102, 0.05));
      border: 1px dashed rgba(37, 211, 102, 0.3);
      padding: 30px;
      border-radius: 24px;
      display: flex;
      align-items: center;
      gap: 24px;
      margin-bottom: 16px;
    }

    .guest-banner-icon {
      font-size: 40px;
      padding: 14px;
      background: var(--primary-glow);
      border-radius: 50%;
      color: var(--primary-color);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 20px rgba(37, 211, 102, 0.1);
    }

    .guest-banner-text h3 {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 6px;
    }

    .guest-banner-text p {
      color: var(--text-muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .guest-banner-text code {
      background: rgba(255, 255, 255, 0.05);
      padding: 2px 6px;
      border-radius: 4px;
      color: var(--primary-color);
      font-family: monospace;
      font-size: 13px;
    }

    /* Hangman Card List */
    .stats-panel {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }

    .stat-mini-card {
      background: rgba(255, 255, 255, 0.01);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      padding: 16px;
      text-align: center;
    }

    .stat-mini-card .val {
      font-size: 24px;
      font-weight: 700;
      color: #fff;
    }

    .stat-mini-card .lbl {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 4px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* History Table */
    .table-container {
      overflow-x: auto;
      margin-top: 16px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
    }

    th {
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 12px 16px;
      border-bottom: 1px solid var(--card-border);
    }

    td {
      padding: 14px 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.02);
      font-size: 14px;
    }

    .badge {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 30px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
    }

    .badge-win {
      background: var(--success-bg);
      color: var(--primary-color);
    }

    .badge-loss {
      background: var(--danger-bg);
      color: var(--error-color);
    }

    /* Leaderboard Card */
    .leaderboard-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 16px;
    }

    .leaderboard-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 16px;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--card-border);
      border-radius: 12px;
      min-width: 0;
      container-type: inline-size;
    }

    .leaderboard-rank {
      flex-shrink: 0;
      width: 24px;
      font-weight: 700;
      font-size: 14px;
    }

    .leaderboard-user {
      flex: 1 1 0%;
      min-width: 0;
      font-weight: 600;
      color: #fff;
      font-size: clamp(11px, 4cqi, 15px);
      word-break: break-word;
    }

    .leaderboard-stats {
      flex: 0 0 auto;
      text-align: right;
      white-space: nowrap;
    }

    .leaderboard-wr {
      font-weight: 700;
      color: var(--primary-color);
      font-size: 14px;
    }

    .leaderboard-played {
      font-size: 11px;
      color: var(--text-muted);
    }

    footer {
      text-align: center;
      padding: 40px;
      color: var(--text-muted);
      font-size: 13px;
      border-top: 1px solid var(--card-border);
      margin-top: 60px;
      background: rgba(6, 7, 13, 0.5);
    }

    /* Uptime live counter */
    .uptime-pill {
      font-family: monospace;
      color: var(--accent-color);
      background: rgba(0, 255, 204, 0.05);
      border: 1px solid rgba(0, 255, 204, 0.1);
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 14px;
      display: inline-block;
      margin-top: 10px;
    }

    /* Animation effects */
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
      70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
      100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
    }

    .live-dot {
      width: 8px;
      height: 8px;
      background-color: var(--primary-color);
      border-radius: 50%;
      display: inline-block;
      margin-right: 6px;
      animation: pulse 2s infinite;
    }

    /* Download Stats Styles */
    .level-container {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--card-border);
      border-radius: 20px;
      padding: 24px;
      margin-bottom: 28px;
      position: relative;
    }

    .level-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
    }

    .level-title {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .level-next {
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 500;
    }

    .progress-bar-bg {
      height: 12px;
      background: rgba(255, 255, 255, 0.04);
      border-radius: 10px;
      overflow: hidden;
      position: relative;
      border: 1px solid rgba(255, 255, 255, 0.02);
    }

    .progress-bar-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
      border-radius: 10px;
      box-shadow: 0 0 16px var(--primary-glow);
      transition: width 1.5s cubic-bezier(0.1, 0.8, 0.3, 1);
    }

    .level-footer {
      display: flex;
      justify-content: space-between;
      margin-top: 10px;
      font-size: 12px;
      color: var(--text-muted);
      font-weight: 600;
    }

    .download-stats-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-bottom: 24px;
    }

    .media-split-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 16px;
    }

    .media-type-card {
      background: rgba(255, 255, 255, 0.015);
      border: 1px solid var(--card-border);
      border-radius: 20px;
      padding: 20px 16px;
      text-align: center;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
    }

    .media-type-card:hover {
      background: rgba(255, 255, 255, 0.035);
      border-color: rgba(37, 211, 102, 0.2);
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .media-type-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 3px;
      background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
      opacity: 0;
      transition: opacity 0.3s;
    }

    .media-type-card:hover::after {
      opacity: 1;
    }

    .media-icon {
      font-size: 28px;
      margin-bottom: 10px;
    }

    .media-val {
      font-size: 26px;
      font-weight: 800;
      color: #fff;
      line-height: 1.2;
    }

    .media-lbl {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-top: 6px;
      font-weight: 600;
    }

    /* Tab Content Control */
    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
      animation: fadeIn 0.4s ease;
    }

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

    /* Profile styling wrappers */
    .profile-header-container {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 24px;
      border-bottom: 1px solid var(--card-border);
      padding-bottom: 16px;
    }
    .profile-rename-wrapper {
      margin-top: 10px;
      display: flex;
      gap: 10px;
      align-items: center;
    }
    .profile-header-meta {
      text-align: right;
    }

    /* Mobile user dropdown menu */
    .user-dropdown {
      position: absolute;
      top: calc(100% + 12px);
      right: 0;
      background: rgba(15, 17, 28, 0.98);
      border: 1px solid var(--card-border);
      border-radius: 14px;
      padding: 16px;
      backdrop-filter: blur(24px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      display: none;
      flex-direction: column;
      gap: 8px;
      min-width: 180px;
      z-index: 1000;
      text-align: left;
    }
    .user-dropdown.show {
      display: flex;
    }
    .user-dropdown-header {
      font-weight: 700;
      color: #fff;
      font-size: 14px;
    }
    .user-dropdown-sub {
      font-size: 11px;
      color: var(--text-muted);
      word-break: break-all;
      border-bottom: 1px solid var(--card-border);
      padding-bottom: 8px;
      margin-bottom: 4px;
    }

    /* Status Badge styling */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      border: 1px solid rgba(255, 255, 255, 0.05);
      transition: all 0.3s ease;
      backdrop-filter: blur(8px);
    }
    .status-badge .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block;
      position: relative;
    }

    /* Online state */
    .status-online {
      background: rgba(37, 211, 102, 0.08);
      color: var(--primary-color);
      border-color: rgba(37, 211, 102, 0.2);
    }
    .status-online .status-dot {
      background-color: var(--primary-color);
      box-shadow: 0 0 10px var(--primary-color);
    }

    /* Connecting state */
    .status-connecting {
      background: rgba(255, 165, 0, 0.08);
      color: #ffa500;
      border-color: rgba(255, 165, 0, 0.2);
    }
    .status-connecting .status-dot {
      background-color: #ffa500;
      box-shadow: 0 0 10px #ffa500;
      animation: pulse-orange 1.5s infinite;
    }

    /* Offline state */
    .status-offline {
      background: rgba(239, 68, 68, 0.08);
      color: var(--error-color);
      border-color: rgba(239, 68, 68, 0.2);
    }
    .status-offline .status-dot {
      background-color: var(--error-color);
      box-shadow: 0 0 10px var(--error-color);
    }

    @keyframes pulse-orange {
      0% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.5); }
      70% { box-shadow: 0 0 0 8px rgba(255, 165, 0, 0); }
      100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0); }
    }

    /* Responsive adjustments */
    @media (min-width: 769px) and (max-width: 900px) {
      .sidebar {
        width: 240px;
      }
      main {
        width: calc(100% - 240px);
        margin-left: 240px;
        padding: 30px 20px;
      }
    }

    @media (max-width: 768px) {
      .app-layout {
        flex-direction: column !important;
      }

      .sidebar {
        display: none !important;
      }

      header {
        display: block !important;
      }

      .nav-container {
        padding: 12px 16px !important;
      }

      main {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding: 16px !important;
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 20px !important;
        left: 0 !important;
      }

      .card {
        padding: 16px;
        border-radius: 16px;
      }

      .card-title {
        font-size: 13px;
        margin-bottom: 16px;
      }

      .hero {
        padding: 8px 0;
      }

      .hero h2 {
        font-size: 24px;
        letter-spacing: -0.5px;
        margin-bottom: 8px;
      }

      .hero p {
        font-size: 13px;
        line-height: 1.4;
      }

      .grid-3 {
        gap: 16px;
      }

      .stat-number {
        font-size: 32px;
      }

      .guest-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        gap: 16px;
      }

      .stats-panel {
        gap: 10px;
        margin-bottom: 16px;
      }

      .stat-mini-card {
        padding: 12px 8px;
        border-radius: 12px;
      }

      .stat-mini-card .val {
        font-size: 20px;
      }

      .stat-mini-card .lbl {
        font-size: 10px;
      }

      .table-container {
        -webkit-overflow-scrolling: touch;
      }

      table {
        min-width: 460px;
      }

      th, td {
        padding: 10px 8px;
        font-size: 12px;
      }

      .leaderboard-item {
        padding: 10px 12px;
        gap: 8px;
      }

      .leaderboard-rank {
        width: 20px;
        font-size: 13px;
      }

      .leaderboard-wr {
        font-size: 13px;
      }

      .leaderboard-played {
        font-size: 10px;
        white-space: nowrap;
      }

      .mobile-bottom-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 11, 23, 0.92);
        backdrop-filter: blur(24px);
        border-top: 1px solid var(--card-border);
        padding: 10px 0;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 100;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
      }

      .mobile-bottom-nav .nav-tab {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 16px;
        font-size: 11px;
        text-align: center;
        width: auto;
        border-radius: 12px;
        position: relative;
        background: transparent;
        border: none;
      }

      .mobile-bottom-nav .nav-tab .nav-icon {
        font-size: 22px;
        transition: transform 0.2s ease;
      }

      .mobile-bottom-nav .nav-tab:active .nav-icon {
        transform: scale(0.85);
      }

      .mobile-bottom-nav .nav-tab.active {
        color: var(--primary-color);
        background: transparent;
        border: none;
      }

      .mobile-bottom-nav .nav-tab.active::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 32px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 0 0 4px 4px;
        box-shadow: 0 2px 10px var(--primary-glow);
      }

      .download-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }

      .download-stats-grid .stat-mini-card:nth-child(3) {
        grid-column: span 2;
      }

      .media-split-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }

      .profile-header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
      }

      .profile-header-meta {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--card-border);
        padding-top: 12px;
      }

      .profile-rename-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
      }

      #rename-container {
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
      }

      #rename-input {
        width: 100% !important;
      }

      .live-event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 12px;
      }

      .live-event-item > div {
        width: 100%;
        font-size: 12px;
      }

      .live-event-time {
        align-self: flex-end;
        font-size: 10px;
      }
    }

    /* Live Activity Stream Items */
    .live-event-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      background: rgba(255, 255, 255, 0.015);
      border: 1px solid var(--card-border);
      border-radius: 12px;
      font-size: 13px;
      animation: slideInEvent 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
      opacity: 0;
      transform: translateY(-10px);
    }

    @keyframes slideInEvent {
      to { opacity: 1; transform: translateY(0); }
    }

    .live-event-time {
      font-size: 11px;
      color: var(--text-muted);
      font-family: monospace;
    }

    .live-event-badge {
      padding: 2px 6px;
      border-radius: 6px;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .badge-msg { background: rgba(0, 255, 204, 0.1); color: var(--accent-color); }
    .badge-cmd { background: rgba(37, 211, 102, 0.1); color: var(--primary-color); }
    .badge-dl { background: rgba(255, 200, 0, 0.1); color: #ffc800; }
    .badge-stk { background: rgba(255, 0, 128, 0.1); color: #ff0080; }
    .badge-game { background: rgba(128, 0, 255, 0.1); color: #8000ff; }

    .downloader-pulse-dot {
      animation: pulse-cyan 1.2s infinite;
    }
    @keyframes pulse-cyan {
      0% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.6); }
      70% { box-shadow: 0 0 0 8px rgba(0, 255, 204, 0); }
      100% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0); }
    }

/* ── QR Code Tab ─────────────────────────────────────────────────────────── */
.qr-gate-panel,
.qr-display-panel {
  max-width: 420px;
  margin: 48px auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.qr-gate-icon { font-size: 48px; margin-bottom: 16px; }
.qr-gate-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.qr-gate-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.5; }
.qr-gate-form { display: flex; flex-direction: column; gap: 12px; }
.qr-password-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.qr-password-input:focus { border-color: var(--accent-color, #7c3aed); }
.qr-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.qr-submit-btn:hover { opacity: 0.9; }
.qr-submit-btn:active { transform: scale(0.98); }
.qr-error-msg {
  margin-top: 14px;
  color: var(--error-color);
  font-size: 14px;
  font-weight: 600;
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.qr-image-wrapper {
  display: inline-block;
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0;
  border: 2px solid var(--card-border);
}
.qr-image { display: block; width: 280px; height: 280px; object-fit: contain; }
@media (max-width: 768px) {
  .qr-gate-panel, .qr-display-panel { margin: 24px 0; padding: 28px 20px; }
  .qr-image { width: 240px; height: 240px; }
}
