*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html, body {
      width: 100%; height: 100%;
      background: #000;
      font-family: 'Segoe UI', 'Arial', sans-serif;
      overflow: hidden;
      color: #fff;
    }

    /* ══════════════════════════════════════
       GLOBAL HEADER
    ══════════════════════════════════════ */
    #global-header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 999;
      height: 56px;
      background: #060608;
      border-bottom: 1.5px solid rgba(255,255,255,0.09);
      border-bottom-left-radius: 18px;
      border-bottom-right-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 14px;
      box-shadow: 0 4px 24px rgba(0,0,0,0.7);
    }

    .header-spacer {
      width: 36px;
      flex-shrink: 0;
    }
    
    .header-logout {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.7);
      font-size: 18px;
      cursor: pointer;
      flex-shrink: 0;
      transition: color 0.2s;
    }
    .header-logout:hover {
      color: #ef5350;
    }

    .header-brand {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .header-brand-text {
      display: flex;
      align-items: baseline;
      gap: 6px;
      animation: headerScale 3s ease-in-out infinite;
    }
    @keyframes headerScale {
      0%,100% { transform: scale(1); }
      50%      { transform: scale(1.06); }
    }
    .hb-main {
      font-size: 15px;
      font-weight: 900;
      letter-spacing: 2px;
      color: #1565c0;
      position: relative;
      overflow: hidden;
      white-space: nowrap;
    }
    .hb-main::after {
      content: '';
      position: absolute;
      top: 0; left: -100%;
      width: 60%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(66,165,245,0.38), transparent);
      animation: shimmer 2.8s ease-in-out infinite;
    }
    @keyframes shimmer {
      0%   { left: -80%; }
      100% { left: 140%; }
    }
    .hb-vip {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 2px;
      color: #fff;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.13);
      border-radius: 6px;
      padding: 2px 7px;
      white-space: nowrap;
    }

    .header-logo {
      width: 36px; height: 36px;
      border-radius: 9px;
      object-fit: cover;
      border: 1.5px solid rgba(255,255,255,0.1);
      flex-shrink: 0;
    }

    /* ══════════════════════════════════════
       TAB SYSTEM
    ══════════════════════════════════════ */
    .tab {
      display: none; width: 100%; height: 100vh;
      position: absolute; top: 0; left: 0;
      padding-top: 56px;
    }
    .tab.active { display: flex; }
    .fade-in { animation: fadeInAnim 0.5s ease forwards; }
    @keyframes fadeInAnim { from { opacity: 0; } to { opacity: 1; } }

    /* ════════════════════════════════════
       TAB 1 — SPLASH
    ════════════════════════════════════ */
    #splash {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #000;
      position: relative;
      overflow: hidden;
    }
    #splash::before {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.013) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.013) 1px, transparent 1px);
      background-size: 48px 48px;
      pointer-events: none;
    }

    .splash-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 22px;
      z-index: 1;
      width: min(94vw, 360px);
    }

    .splash-avatar {
      width: 110px; height: 110px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid rgba(255,255,255,0.11);
      box-shadow: 0 0 0 7px rgba(255,255,255,0.03), 0 4px 24px rgba(0,0,0,0.9);
      animation: fallDown 1.2s cubic-bezier(0.22,1,0.36,1) forwards, avatarBreath 3.5s 1.4s ease-in-out infinite;
      opacity: 0;
    }
    @keyframes fallDown {
      0%   { transform: translateY(-200px); opacity: 0; }
      68%  { transform: translateY(10px); opacity: 1; }
      84%  { transform: translateY(-4px); }
      100% { transform: translateY(0); opacity: 1; }
    }
    @keyframes avatarBreath {
      0%,100% { transform: scale(1); }
      50%      { transform: scale(1.04); }
    }

    .splash-title {
      font-size: clamp(20px, 5vw, 36px);
      font-weight: 900;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: #1565c0;
      animation: riseUp 0.9s 1s ease forwards;
      opacity: 0;
      transform: translateY(24px);
    }
    @keyframes riseUp { to { opacity: 1; transform: translateY(0); } }

    .splash-info-box {
      width: 100%;
      background: rgba(255,255,255,0.87);
      border: 1.5px solid rgba(20,20,20,0.8);
      border-radius: 14px;
      overflow: hidden;
      animation: riseUp 0.9s 1.25s ease forwards;
      opacity: 0;
      transform: translateY(20px);
    }
    .splash-check-list {
      padding: 12px 14px 8px;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }
    .splash-check-item {
      display: flex;
      align-items: center;
      gap: 9px;
    }
    .splash-check-icon {
      width: 18px; height: 18px;
      border-radius: 50%;
      background: rgba(21,101,192,0.12);
      border: 1.5px solid rgba(21,101,192,0.3);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .splash-check-icon i { font-size: 8.5px; color: #1565c0; }
    .splash-check-label {
      font-size: 11px;
      font-weight: 700;
      color: rgba(10,10,10,0.85);
      letter-spacing: 0.2px;
    }
    .splash-drop-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 14px 10px;
      background: none;
      border: none;
      border-top: 1px solid rgba(20,20,20,0.12);
      cursor: pointer;
      font-size: 10.5px;
      font-weight: 700;
      color: rgba(21,101,192,0.85);
      letter-spacing: 0.3px;
      font-family: inherit;
      transition: background 0.2s;
    }
    .splash-drop-btn:hover { background: rgba(21,101,192,0.06); }
    .splash-drop-arrow {
      font-size: 10px;
      color: rgba(21,101,192,0.7);
      transition: transform 0.3s ease;
    }
    .splash-drop-arrow.open { transform: rotate(180deg); }
    .splash-drop-panel {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
      background: rgba(240,245,255,0.95);
      border-top: 1px solid rgba(20,20,20,0.08);
    }
    .splash-drop-panel.open { max-height: 320px; }
    .sdp-inner {
      padding: 12px 14px 14px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .sdp-row {
      display: flex;
      align-items: center;
      gap: 9px;
      background: rgba(21,101,192,0.07);
      border: 1px solid rgba(21,101,192,0.15);
      border-radius: 10px;
      padding: 8px 11px;
    }
    .sdp-row-icon {
      width: 26px; height: 26px;
      border-radius: 7px;
      background: rgba(21,101,192,0.15);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .sdp-row-icon i { font-size: 11px; color: #1565c0; }
    .sdp-row-text strong { display: block; font-size: 10.5px; font-weight: 700; color: rgba(10,10,10,0.8); margin-bottom: 1px; }
    .sdp-row-text span  { font-size: 9.5px; color: rgba(10,10,10,0.5); }
    .sdp-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .sdp-mini {
      background: rgba(21,101,192,0.05);
      border: 1px solid rgba(21,101,192,0.12);
      border-radius: 9px;
      padding: 7px 10px;
      display: flex; align-items: center; gap: 7px;
    }
    .sdp-mini i { font-size: 11px; color: #1565c0; flex-shrink: 0; }
    .sdp-mini-info strong { display: block; font-size: 10px; font-weight: 700; color: rgba(10,10,10,0.75); }
    .sdp-mini-info span  { font-size: 9px; color: rgba(21,101,192,0.7); }

    /* Orbit loader */
    .splash-loader {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 9px;
      animation: riseUp 0.6s 1.55s ease forwards;
      opacity: 0;
      transform: translateY(10px);
    }
    .orbit-ring {
      position: relative;
      width: 44px; height: 44px;
    }
    .orbit-ring::before {
      content: '';
      position: absolute; inset: 0;
      border-radius: 50%;
      border: 1.5px solid rgba(255,255,255,0.07);
    }
    .orbit-dot {
      position: absolute;
      width: 7px; height: 7px;
      border-radius: 50%;
      top: 50%; left: 50%;
      transform-origin: 0 0;
    }
    .orbit-dot:nth-child(1) { animation: orbit 1.6s linear infinite; background: #1565c0; }
    .orbit-dot:nth-child(2) { animation: orbit 1.6s 0.53s linear infinite; background: #37474f; }
    .orbit-dot:nth-child(3) { animation: orbit 1.6s 1.06s linear infinite; background: #546e7a; }
    @keyframes orbit {
      0%   { transform: rotate(0deg) translateX(17px) translateY(-50%); }
      100% { transform: rotate(360deg) translateX(17px) translateY(-50%); }
    }
    .splash-timer { font-size: 10px; color: rgba(255,255,255,0.22); letter-spacing: 1px; }

    /* ════════════════════════════════════
       TAB 2 — LOGIN
    ════════════════════════════════════ */
    #login {
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      background: #000;
      position: relative;
      overflow-y: auto;
      overflow-x: hidden;
      padding-top: 72px;
      padding-bottom: 32px;
    }
    #login::before {
      content: '';
      position: fixed; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.011) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.011) 1px, transparent 1px);
      background-size: 40px 40px;
      pointer-events: none;
      z-index: 0;
    }

    .login-wrap {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      width: min(94vw, 460px);
    }

    .login-card {
      width: 100%;
      border-radius: 20px;
      background: #0c0c0f;
      border: 1.5px solid rgba(255,255,255,0.1);
      padding: 24px 22px 22px;
      display: flex;
      flex-direction: column;
      gap: 18px;
      box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 18px 50px rgba(0,0,0,0.85);
      animation: cardSlideIn 0.7s ease forwards;
      opacity: 0;
      transform: translateY(28px) scale(0.98);
    }
    @keyframes cardSlideIn { to { opacity: 1; transform: translateY(0) scale(1); } }

    .login-top { display: flex; align-items: stretch; }
    .login-left {
      display: flex; flex-direction: column; align-items: center;
      gap: 10px; padding-right: 18px; flex-shrink: 0;
    }
    .login-logo {
      width: 84px; height: 84px;
      border-radius: 15px; object-fit: cover;
      border: 1.5px solid rgba(255,255,255,0.1);
      box-shadow: 0 4px 18px rgba(0,0,0,0.7);
    }
    .login-brand-title {
      display: flex; flex-direction: column; align-items: center;
      gap: 2px; min-height: 32px;
    }
    .animated-word { display: flex; gap: 2px; justify-content: center; margin-bottom: 2px; }
    .word-prime .animated-char {
      color: #ffffff;
      text-shadow: 0 0 8px rgba(66, 165, 245, 0.8), 0 0 15px rgba(21, 101, 192, 0.5);
    }
    .word-app .animated-char {
      color: #90caf9;
      text-shadow: 0 0 8px rgba(144, 202, 249, 0.5);
    }
    .animated-char {
      display: inline-block; font-size: 13px; font-weight: 900;
      letter-spacing: 2.5px; opacity: 0;
      animation: charReveal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }
    @keyframes charReveal {
      0%   { opacity: 0; transform: translateY(8px) scale(0.8); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    .login-divider {
      width: 1px;
      background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), rgba(255,255,255,0.18), rgba(255,255,255,0.12), transparent);
      border-radius: 2px; flex-shrink: 0;
    }
    .login-right {
      flex: 1; padding-left: 18px;
      display: flex; flex-direction: column; justify-content: center; gap: 7px;
    }
    .login-right-title { font-size: 14px; font-weight: 700; color: #e0e0e0; letter-spacing: 0.4px; }
    .login-right-desc  { font-size: 10.5px; color: rgba(255,255,255,0.36); line-height: 1.6; }
    .status-row { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
    .status-dot {
      width: 6px; height: 6px; border-radius: 50%; background: #43a047;
      animation: dotPulse 1.8s ease-in-out infinite; flex-shrink: 0;
    }
    @keyframes dotPulse {
      0%,100% { opacity: 1; transform: scale(1); }
      50%      { opacity: 0.5; transform: scale(1.4); }
    }
    .status-text { font-size: 10px; color: #43a047; font-weight: 600; letter-spacing: 0.4px; }

    /* ── Key section ── */
    .key-section { display: flex; flex-direction: column; gap: 9px; }
    .key-input-wrap { position: relative; display: flex; align-items: center; }
    .key-input {
      width: 100%; background: rgba(255,255,255,0.04);
      border: 1.5px solid rgba(255,255,255,0.1);
      border-radius: 13px; padding: 12px 44px 12px 16px;
      color: #fff; font-size: 13.5px; font-weight: 500;
      letter-spacing: 1.5px; outline: none;
      transition: border-color 0.22s, background 0.22s;
      -webkit-text-security: disc; font-family: inherit;
    }
    .key-input.show-text { -webkit-text-security: none; letter-spacing: 0.4px; }
    .key-input::placeholder { color: rgba(255,255,255,0.2); font-size: 11.5px; letter-spacing: 0.4px; font-style: italic; }
    .key-input:focus { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); }
    .key-input.valid   { border-color: rgba(67,160,71,0.65);  background: rgba(67,160,71,0.05); }
    .key-input.invalid {
      border-color: rgba(229,57,53,0.65); background: rgba(229,57,53,0.05);
      animation: shake 0.38s ease;
    }
    @keyframes shake {
      0%,100% { transform: translateX(0); }
      20% { transform: translateX(-5px); }
      40% { transform: translateX(5px); }
      60% { transform: translateX(-3px); }
      80% { transform: translateX(3px); }
    }
    .eye-btn {
      position: absolute; right: 13px; background: none; border: none;
      color: rgba(255,255,255,0.3); cursor: pointer; font-size: 13px;
      padding: 4px; transition: color 0.18s; line-height: 1;
    }
    .eye-btn:hover { color: rgba(255,255,255,0.65); }

    /* ── Key status box ── */
    .key-status-box {
      border-radius: 12px; padding: 10px 14px;
      background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
      display: flex; align-items: center; gap: 11px;
      transition: border-color 0.25s, background 0.25s;
      min-height: 46px;
    }
    .key-status-box.idle      { border-color: rgba(255,255,255,0.08); }
    .key-status-box.checking  { border-color: rgba(21,101,192,0.4); background: rgba(21,101,192,0.04); }
    .key-status-box.success   { border-color: rgba(67,160,71,0.4);  background: rgba(67,160,71,0.05); }
    .key-status-box.error     { border-color: rgba(229,57,53,0.4);  background: rgba(229,57,53,0.05); }
    .key-status-box.warn      { border-color: rgba(255,193,7,0.35); background: rgba(255,193,7,0.04); }

    .key-spinner {
      display: none;
      width: 20px; height: 20px;
      flex-shrink: 0;
    }
    .checking .key-spinner { display: block; }
    .checking .key-status-icon { display: none; }
    .key-spinner-ring {
      width: 100%; height: 100%;
      border-radius: 50%;
      border: 2px solid rgba(21,101,192,0.2);
      border-top-color: #1565c0;
      border-right-color: #42a5f5;
      animation: spinRing 0.75s linear infinite;
    }
    @keyframes spinRing { to { transform: rotate(360deg); } }

    .key-status-icon { font-size: 15px; flex-shrink: 0; }
    .idle      .key-status-icon { color: rgba(255,255,255,0.22); }
    .success   .key-status-icon { color: #43a047; }
    .error     .key-status-icon { color: #e53935; }
    .warn      .key-status-icon { color: #ffc107; }

    .key-status-text { font-size: 10.5px; line-height: 1.55; color: rgba(255,255,255,0.38); flex: 1; }
    .key-status-text strong { display: block; font-size: 11px; margin-bottom: 1px; }
    .idle      .key-status-text strong { color: rgba(255,255,255,0.45); }
    .checking  .key-status-text strong { color: rgba(21,101,192,0.9); }
    .success   .key-status-text strong { color: #66bb6a; }
    .error     .key-status-text strong { color: #ef5350; }
    .warn      .key-status-text strong { color: #ffc107; }

    .caps-warn { font-size: 10px; color: rgba(255,193,7,0.7); display: none; align-items: center; gap: 5px; }
    .caps-warn.visible { display: flex; }

    /* ── Feature list with background image ── */
    .feature-list-wrap {
      width: 100%;
      position: relative;
      animation: riseUp 0.7s 0.3s ease forwards;
      opacity: 0;
      transform: translateY(14px);
    }

    .feature-bg-img {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      border-radius: 14px;
      opacity: 0.075;
      pointer-events: none;
      z-index: 0;
      animation: bgFloat 5s ease-in-out infinite;
    }
    @keyframes bgFloat {
      0%,100% { transform: scale(1) translateY(0); }
      50%      { transform: scale(1.04) translateY(-4px); }
    }

    .feature-list {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .feature-item {
      display: flex;
      align-items: stretch;
      gap: 0;
      background: rgba(12,12,15,0.88);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 13px;
      overflow: hidden;
      backdrop-filter: blur(2px);
    }

    .fi-check-col {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 14px;
      background: rgba(21,101,192,0.07);
      flex-shrink: 0;
    }
    .fi-check-circle {
      width: 22px; height: 22px;
      border-radius: 50%;
      border: 1.5px solid rgba(21,101,192,0.45);
      background: rgba(21,101,192,0.1);
      display: flex; align-items: center; justify-content: center;
    }
    .fi-check-circle i { font-size: 10px; color: #1e88e5; }

    .fi-sep {
      width: 1px;
      background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), rgba(255,255,255,0.14), rgba(255,255,255,0.1), transparent);
      flex-shrink: 0;
      margin: 8px 0;
    }

    .fi-text-col {
      flex: 1;
      padding: 11px 14px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .fi-title {
      font-size: 12px;
      font-weight: 700;
      color: #d8d8d8;
      letter-spacing: 0.3px;
    }
    .fi-inner-sep {
      width: 100%;
      height: 1px;
      background: linear-gradient(to right, rgba(21,101,192,0.3), rgba(255,255,255,0.06), transparent);
      border-radius: 1px;
    }
    .fi-desc {
      font-size: 10px;
      color: rgba(255,255,255,0.32);
      line-height: 1.5;
    }

    /* ════════════════════════════════════
       TAB 3 — MAIN APP
    ════════════════════════════════════ */
    #app {
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      background: #000;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 16px 0 28px;
    }

    .app-wrap {
      width: min(96vw, 480px);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    /* App page title */
    .app-page-title {
      font-size: clamp(22px, 6vw, 36px);
      font-weight: 900;
      letter-spacing: 3px;
      color: #fff;
      text-align: center;
      animation: riseUp 0.7s ease forwards;
      user-select: none;
    }

    /* ── Chart card ── */
    .chart-card {
      width: 100%;
      border: 1px solid rgba(21,101,192,0.55);
      border-radius: 16px;
      background: #080b10;
      overflow: hidden;
      position: relative;
      box-shadow: 0 0 0 1px rgba(21,101,192,0.1) inset;
    }

    /* Particles layer */
    #particleCanvas {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    /* Chart inner layout */
    .chart-inner {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    /* Chart header bar */
    .chart-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 11px 14px 8px;
      border-bottom: 1px solid rgba(21,101,192,0.18);
    }
    .chart-title {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      color: rgba(255,255,255,0.55);
      text-transform: uppercase;
    }
    .chart-stats-row {
      display: flex;
      gap: 10px;
    }
    .chart-stat {
      font-size: 10px;
      font-weight: 700;
      color: rgba(255,255,255,0.3);
      letter-spacing: 0.5px;
    }
    .chart-stat span { color: #42a5f5; }

    /* Canvas chart */
    #chartCanvas {
      display: block;
      width: 100%;
    }

    /* Metric bar */
    .chart-metrics {
      display: flex;
      border-top: 1px solid rgba(21,101,192,0.15);
    }
    .chart-metric-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 8px 6px;
      gap: 3px;
    }
    .chart-metric-item + .chart-metric-item {
      border-left: 1px solid rgba(21,101,192,0.12);
    }
    .cm-label {
      font-size: 9px;
      font-weight: 700;
      color: rgba(255,255,255,0.25);
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    .cm-value {
      font-size: 14px;
      font-weight: 800;
      color: #42a5f5;
      letter-spacing: 0.5px;
    }
    .cm-value.orange { color: #fb8c00; }
    .cm-value.green  { color: #43a047; }

    /* ── Function buttons row ── */
    .func-btn-row {
      display: flex;
      gap: 10px;
      padding: 12px 12px 14px;
      border-top: 1px solid rgba(21,101,192,0.13);
    }

    .func-btn {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      padding: 14px 10px 12px;
      border-radius: 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.07);
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: border-color 0.3s, background 0.3s;
      user-select: none;
    }
    .func-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
    .func-btn-label {
      font-size: 11px; font-weight: 700;
      color: rgba(255,255,255,0.5);
      letter-spacing: 0.4px;
      transition: color 0.3s;
    }
    .func-btn-status {
      font-size: 9.5px; font-weight: 800;
      letter-spacing: 1px;
      color: rgba(255,255,255,0.2);
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: 5px;
      padding: 2px 8px;
      transition: color 0.3s, background 0.3s, border-color 0.3s;
    }

    /* Active state */
    .func-btn.active {
      border-color: rgba(21,101,192,0.55);
      background: rgba(21,101,192,0.07);
    }
    .func-btn.active .func-btn-label { color: #42a5f5; }
    .func-btn.active .func-btn-status {
      color: #43a047;
      background: rgba(67,160,71,0.1);
      border-color: rgba(67,160,71,0.35);
    }

    /* Loading state */
    .func-loading-ring {
      position: absolute; inset: 0;
      border-radius: inherit;
      border: 1.5px solid transparent;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s;
    }
    .func-btn.loading .func-loading-ring {
      opacity: 1;
      border-color: rgba(21,101,192,0.5);
      animation: ringRotate 1.2s linear infinite;
    }
    @keyframes ringRotate {
      0%   { clip-path: inset(0 50% 0 0 round 14px); }
      25%  { clip-path: inset(0 0 50% 0 round 14px); }
      50%  { clip-path: inset(50% 0 0 0 round 14px); }
      75%  { clip-path: inset(0 0 0 50% round 14px); }
      100% { clip-path: inset(0 50% 0 0 round 14px); }
    }
    .func-online-dot {
      position: absolute; top: 8px; right: 9px;
      width: 6px; height: 6px; border-radius: 50%;
      background: rgba(255,255,255,0.12);
      transition: background 0.3s;
    }
    .func-btn.active .func-online-dot { background: #43a047; animation: dotPulse 1.8s ease-in-out infinite; }

    /* ════════════════════════════════════
       NEW: FEATURES PANEL (7 functions)
    ════════════════════════════════════ */
    .features-panel {
      width: 100%;
      position: relative;
      border: 1px solid rgba(21, 101, 192, 0.6);
      border-radius: 14px;
      background: #06090f;
      overflow: hidden;
      box-shadow:
        0 0 0 1px rgba(21,101,192,0.1) inset,
        0 0 24px rgba(21,101,192,0.1),
        0 8px 32px rgba(0,0,0,0.8);
    }

    /* Red falling particles canvas for features panel */
    #featParticleCanvas {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    /* Panel header */
    .features-panel-header {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 13px 16px 11px;
      border-bottom: 1px solid rgba(21,101,192,0.25);
      background: rgba(21,101,192,0.06);
    }
    .features-panel-header-icon {
      width: 30px; height: 30px;
      border-radius: 9px;
      background: rgba(21,101,192,0.18);
      border: 1px solid rgba(21,101,192,0.4);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .features-panel-title {
      flex: 1;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 1.5px;
      color: #42a5f5;
      text-transform: uppercase;
    }
    .features-panel-badge {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1px;
      color: #42a5f5;
      background: rgba(21,101,192,0.15);
      border: 1px solid rgba(21,101,192,0.4);
      border-radius: 6px;
      padding: 2px 8px;
    }

    /* List of 7 feature items */
    .feat-list {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 10px 12px 12px;
    }

    /* Single feature row */
    .feat-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 10px;
      border-radius: 13px;
      background: rgba(255,255,255,0.025);
      border: 1px solid rgba(21,101,192,0.15);
      margin-bottom: 7px;
      transition: background 0.25s, border-color 0.25s;
      position: relative;
      overflow: hidden;
    }
    .feat-item:last-child { margin-bottom: 0; }
    .feat-item::before {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 3px;
      border-radius: 3px 0 0 3px;
      background: rgba(21,101,192,0.35);
      transition: background 0.3s;
    }
    .feat-item.feat-on {
      background: rgba(21,101,192,0.07);
      border-color: rgba(21,101,192,0.4);
    }
    .feat-item.feat-on::before {
      background: linear-gradient(to bottom, #42a5f5, #1565c0);
    }

    /* Android-style switch on the LEFT */
    .feat-switch {
      position: relative;
      width: 36px;
      height: 20px;
      flex-shrink: 0;
      cursor: pointer;
    }
    .feat-switch input {
      opacity: 0;
      width: 0; height: 0;
      position: absolute;
    }
    .feat-switch-track {
      position: absolute;
      inset: 0;
      border-radius: 10px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.15);
      transition: background 0.28s, border-color 0.28s;
    }
    .feat-switch input:checked + .feat-switch-track {
      background: #2e7d32;
      border-color: #43a047;
      box-shadow: 0 0 8px rgba(67,160,71,0.5);
    }
    .feat-switch-thumb {
      position: absolute;
      top: 2px; left: 2px;
      width: 16px; height: 16px;
      border-radius: 50%;
      background: rgba(255,255,255,0.5);
      box-shadow: 0 1px 4px rgba(0,0,0,0.5);
      transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), background 0.28s;
    }
    .feat-switch input:checked ~ .feat-switch-thumb {
      transform: translateX(16px);
      background: #a5d6a7;
      box-shadow: 0 1px 6px rgba(67,160,71,0.7);
    }

    /* Text block */
    .feat-text {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }
    .feat-name {
      font-size: 12px;
      font-weight: 700;
      color: #d0d8e8;
      letter-spacing: 0.3px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: color 0.25s;
    }
    .feat-item.feat-on .feat-name { color: #90caf9; }
    .feat-desc {
      font-size: 9.5px;
      color: rgba(255,255,255,0.28);
      line-height: 1.5;
      transition: color 0.25s;
    }
    .feat-item.feat-on .feat-desc { color: rgba(144,202,249,0.5); }

    /* Icon on the RIGHT */
    .feat-icon {
      width: 32px; height: 32px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 9px;
      background: rgba(21,101,192,0.1);
      border: 1px solid rgba(21,101,192,0.2);
      transition: background 0.25s, border-color 0.25s;
    }
    .feat-item.feat-on .feat-icon {
      background: rgba(21,101,192,0.18);
      border-color: rgba(21,101,192,0.45);
    }
    .feat-icon svg {
      width: 18px; height: 18px;
    }

    /* Status label */
    .feat-status-tag {
      font-size: 8.5px;
      font-weight: 800;
      letter-spacing: 0.8px;
      color: rgba(255,255,255,0.2);
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 4px;
      padding: 1px 6px;
      white-space: nowrap;
      flex-shrink: 0;
      transition: color 0.25s, background 0.25s, border-color 0.25s;
    }
    .feat-item.feat-on .feat-status-tag {
      color: #69f0ae;
      background: rgba(105,240,174,0.08);
      border-color: rgba(105,240,174,0.3);
    }

    /* ════════════════════════════════════
       CODER CONSOLE PANEL
    ════════════════════════════════════ */
    .coder-panel {
      position: relative;
      z-index: 2;
      margin: 0 12px 12px;
      border: 1px solid rgba(21,101,192,0.35);
      border-radius: 8px;
      background: #020509;
      overflow: hidden;
      box-shadow: 0 0 16px rgba(21,101,192,0.08) inset, 0 2px 12px rgba(0,0,0,0.7);
    }

    /* Coder panel top bar */
    .coder-topbar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      background: rgba(21,101,192,0.07);
      border-bottom: 1px solid rgba(21,101,192,0.2);
    }
    .coder-topbar-dots {
      display: flex;
      gap: 5px;
      flex-shrink: 0;
    }
    .coder-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
    }
    .coder-dot:nth-child(1) { background: #ef5350; }
    .coder-dot:nth-child(2) { background: #ffc107; }
    .coder-dot:nth-child(3) { background: #43a047; }
    .coder-topbar-title {
      flex: 1;
      font-size: 9.5px;
      font-weight: 700;
      letter-spacing: 1.5px;
      color: rgba(66,165,245,0.7);
      font-family: 'Courier New', monospace;
      text-transform: uppercase;
    }
    .coder-topbar-icon {
      flex-shrink: 0;
      opacity: 0.6;
    }
    .coder-status-led {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: rgba(255,255,255,0.12);
      flex-shrink: 0;
      transition: background 0.3s;
    }
    .coder-status-led.active {
      background: #43a047;
      box-shadow: 0 0 6px rgba(67,160,71,0.8);
      animation: dotPulse 1.4s ease-in-out infinite;
    }

    /* Code display area */
    .coder-body {
      padding: 10px 12px 10px;
      min-height: 88px;
      max-height: 160px;
      overflow-y: auto;
      overflow-x: hidden;
      font-family: 'Courier New', 'Consolas', monospace;
      font-size: 10.5px;
      line-height: 1.65;
      scrollbar-width: thin;
      scrollbar-color: rgba(21,101,192,0.3) transparent;
    }
    .coder-body::-webkit-scrollbar { width: 3px; }
    .coder-body::-webkit-scrollbar-thumb { background: rgba(21,101,192,0.35); border-radius: 2px; }

    /* Idle placeholder */
    .coder-idle {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 0;
    }
    .coder-idle-icon { flex-shrink: 0; opacity: 0.25; }
    .coder-idle-text {
      font-size: 10px;
      color: rgba(255,255,255,0.18);
      letter-spacing: 0.5px;
      font-family: 'Courier New', monospace;
    }

    /* Each code line */
    .coder-line {
      display: flex;
      align-items: baseline;
      gap: 6px;
      margin-bottom: 1px;
      animation: codeLineIn 0.18s ease forwards;
      opacity: 0;
    }
    @keyframes codeLineIn {
      from { opacity: 0; transform: translateX(-6px); }
      to   { opacity: 1; transform: translateX(0); }
    }
    .coder-line-ts {
      color: rgba(66,165,245,0.4);
      font-size: 9px;
      flex-shrink: 0;
      letter-spacing: 0.3px;
    }
    .coder-line-prefix {
      font-size: 10px;
      flex-shrink: 0;
    }
    .coder-line-text {
      flex: 1;
      word-break: break-all;
    }
    .cl-green  { color: #69f0ae; }
    .cl-blue   { color: #42a5f5; }
    .cl-cyan   { color: #26c6da; }
    .cl-red    { color: #ef5350; }
    .cl-yellow { color: #ffd740; }
    .cl-gray   { color: rgba(255,255,255,0.35); }
    .cl-white  { color: rgba(255,255,255,0.75); }

    /* Blinking cursor */
    .coder-cursor {
      display: inline-block;
      width: 7px; height: 12px;
      background: #42a5f5;
      vertical-align: text-bottom;
      animation: cursorBlink 1s step-end infinite;
      margin-left: 3px;
      border-radius: 1px;
    }
    @keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

    /* Scanline overlay effect */
    .coder-panel::after {
      content: '';
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0,0,0,0.06) 2px,
        rgba(0,0,0,0.06) 4px
      );
      pointer-events: none;
      z-index: 3;
      border-radius: 8px;
    }

    /* ════════════════════════════════════
       ACTION BOXES (2 setting boxes)
    ════════════════════════════════════ */
    .action-boxes-wrap {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .action-box {
      width: 100%;
      position: relative;
      border: 1px solid rgba(21,101,192,0.52);
      border-radius: 13px;
      background: #05080e;
      overflow: hidden;
      box-shadow:
        0 0 0 1px rgba(21,101,192,0.08) inset,
        0 0 18px rgba(21,101,192,0.08),
        0 4px 20px rgba(0,0,0,0.75);
    }

    /* Yellow particles canvas */
    .action-box-canvas {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    /* Content row */
    .action-box-inner {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 13px;
    }

    /* Spinning gear wrapper */
    .action-gear-wrap {
      flex-shrink: 0;
      width: 44px; height: 44px;
      border-radius: 11px;
      background: rgba(21,101,192,0.1);
      border: 1px solid rgba(21,101,192,0.28);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .action-gear-svg {
      display: block;
      animation: gearSpin 3.5s linear infinite;
    }
    @keyframes gearSpin {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }

    /* Text area */
    .action-text {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }
    .action-title {
      font-size: 12.5px;
      font-weight: 800;
      color: #d4e0f0;
      letter-spacing: 0.3px;
    }
    .action-desc {
      font-size: 9.5px;
      color: rgba(255,255,255,0.27);
      line-height: 1.5;
    }

    /* Right-side button */
    .action-btn {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 7px 11px;
      border-radius: 8px;
      border: 1px solid rgba(21,101,192,0.42);
      background: rgba(21,101,192,0.1);
      cursor: pointer;
      transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
    .action-btn:hover {
      background: rgba(21,101,192,0.18);
      border-color: rgba(21,101,192,0.65);
    }
    .action-btn:active { transform: scale(0.96); }

    .action-btn.done {
      background: rgba(21,101,192,0.16);
      border-color: rgba(66,165,245,0.75);
      box-shadow: 0 0 10px rgba(21,101,192,0.3);
    }

    /* Rocket icon (default) */
    .action-btn-rocket {
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.2s, transform 0.2s;
    }
    /* Check icon (done state) */
    .action-btn-check {
      display: none;
      align-items: center;
      justify-content: center;
      transition: opacity 0.2s;
    }
    .action-btn.done .action-btn-rocket { display: none; }
    .action-btn.done .action-btn-check  { display: flex; }

    .action-btn-label {
      font-size: 9.5px;
      font-weight: 800;
      letter-spacing: 0.5px;
      color: rgba(66,165,245,0.75);
      white-space: nowrap;
      transition: color 0.25s;
    }
    .action-btn.done .action-btn-label { color: #42a5f5; }

    /* Top accent line on action-box */
    .action-box::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(21,101,192,0.5), rgba(66,165,245,0.35), transparent);
      z-index: 2;
    }

    /* ════════════════════════════════════
       GAME PICKER BOX
    ════════════════════════════════════ */
    .game-picker-box {
      width: 100%;
      position: relative;
      border: 1px solid rgba(21,101,192,0.52);
      border-radius: 16px;
      background: linear-gradient(145deg, #030814 0%, #050d1c 55%, #071228 100%);
      overflow: hidden;
      box-shadow:
        0 0 0 1px rgba(21,101,192,0.08) inset,
        0 0 28px rgba(21,101,192,0.1),
        0 6px 28px rgba(0,0,0,0.82);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 22px 16px 18px;
      gap: 13px;
    }

    /* Stamp watermark corner ribbon */
    .gp-stamp {
      position: absolute;
      top: 0; right: 0;
      width: 88px; height: 88px;
      overflow: hidden;
      pointer-events: none;
      z-index: 1;
    }
    .gp-stamp::before {
      content: 'ULTRA PLUS';
      position: absolute;
      top: 18px; right: -26px;
      width: 100px;
      text-align: center;
      transform: rotate(45deg);
      font-size: 7.5px;
      font-weight: 900;
      letter-spacing: 1.2px;
      color: rgba(66,165,245,0.4);
      background: rgba(21,101,192,0.1);
      border-top: 1px solid rgba(21,101,192,0.3);
      border-bottom: 1px solid rgba(21,101,192,0.3);
      padding: 2px 0;
    }

    /* Top accent glow */
    .game-picker-box::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(21,101,192,0.55), rgba(66,165,245,0.4), transparent);
      z-index: 2;
    }

    /* Circular + button */
    .gp-circle-btn {
      width: 64px; height: 64px;
      border-radius: 50%;
      border: 1.5px solid rgba(21,101,192,0.55);
      background: rgba(21,101,192,0.07);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      position: relative;
      z-index: 2;
      transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
      box-shadow:
        0 0 0 5px rgba(21,101,192,0.05),
        0 0 18px rgba(21,101,192,0.12);
      flex-shrink: 0;
    }
    .gp-circle-btn:hover {
      border-color: rgba(66,165,245,0.8);
      background: rgba(21,101,192,0.13);
      box-shadow: 0 0 0 7px rgba(21,101,192,0.09), 0 0 24px rgba(21,101,192,0.22);
    }
    .gp-circle-btn:active { transform: scale(0.94); }

    /* Plus SVG */
    .gp-plus-svg { display: block; }
    .gp-circle-btn.selected .gp-plus-svg { display: none; }

    /* Selected game image inside circle */
    .gp-selected-img {
      display: none;
      width: 42px; height: 42px;
      border-radius: 11px;
      object-fit: cover;
    }
    .gp-circle-btn.selected .gp-selected-img { display: block; }

    /* Rotating pulse ring around circle */
    .gp-circle-btn::after {
      content: '';
      position: absolute;
      inset: -5px;
      border-radius: 50%;
      border: 1px solid rgba(21,101,192,0.22);
      animation: gpRing 3s linear infinite;
    }
    @keyframes gpRing {
      from { transform: rotate(0deg); border-color: rgba(21,101,192,0.22); }
      50%  { border-color: rgba(66,165,245,0.45); }
      to   { transform: rotate(360deg); border-color: rgba(21,101,192,0.22); }
    }

    /* Label */
    .gp-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.5px;
      color: rgba(66,165,245,0.45);
      text-align: center;
      position: relative; z-index: 2;
    }

    /* Selected game info bar */
    .gp-info-bar {
      display: none;
      width: 100%;
      background: rgba(21,101,192,0.07);
      border: 1px solid rgba(21,101,192,0.3);
      border-radius: 11px;
      padding: 10px 12px;
      gap: 10px;
      align-items: center;
      position: relative; z-index: 2;
    }
    .gp-info-bar.visible { display: flex; }
    .gp-info-img {
      width: 38px; height: 38px;
      border-radius: 10px;
      object-fit: cover;
      border: 1px solid rgba(21,101,192,0.35);
      flex-shrink: 0;
      background: rgba(0,0,0,0.4);
    }
    .gp-info-text {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }
    .gp-info-name {
      font-size: 11.5px;
      font-weight: 800;
      color: #90caf9;
    }
    .gp-info-status {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 9.5px;
      color: rgba(105,240,174,0.8);
    }
    .gp-info-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: #69f0ae;
      animation: dotPulse 1.8s ease-in-out infinite;
      flex-shrink: 0;
    }
    .gp-info-version {
      font-size: 8.5px;
      color: rgba(255,255,255,0.22);
      margin-left: auto;
      flex-shrink: 0;
    }

    /* ─── GAME PICKER MODAL ─── */
    .gp-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 9100;
      pointer-events: none;
      background: rgba(0,0,0,0);
      transition: background 0.35s;
    }
    .gp-modal-overlay.open {
      pointer-events: all;
      background: rgba(0,0,0,0.45);
    }

    .gp-modal {
      position: absolute;
      top: 50%;
      right: 0;
      transform: translateX(110%) translateY(-50%);
      width: min(88vw, 320px);
      border-radius: 16px 0 0 16px;
      border: 1px solid rgba(139,92,246,0.42);
      border-right: none;
      background: #08051a;
      overflow: hidden;
      transition: transform 0.42s cubic-bezier(0.22,1,0.36,1);
      box-shadow:
        -10px 0 48px rgba(139,92,246,0.22),
        0 0 0 1px rgba(139,92,246,0.07) inset;
    }
    .gp-modal-overlay.open .gp-modal {
      transform: translateX(0) translateY(-50%);
    }

    /* Lightning canvas */
    .gp-modal-canvas {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    /* Modal inner content */
    .gp-modal-inner {
      position: relative;
      z-index: 1;
      padding: 18px 15px 20px;
      display: flex;
      flex-direction: column;
      gap: 11px;
    }

    /* Modal header */
    .gp-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-bottom: 11px;
      border-bottom: 1px solid rgba(139,92,246,0.2);
    }
    .gp-modal-title {
      font-size: 13px;
      font-weight: 800;
      color: #c4b5fd;
      letter-spacing: 1px;
    }
    .gp-modal-subtitle {
      font-size: 9px;
      color: rgba(196,181,253,0.4);
      font-weight: 600;
      letter-spacing: 0.5px;
      margin-top: 1px;
    }
    .gp-modal-close {
      width: 28px; height: 28px;
      border-radius: 7px;
      border: 1px solid rgba(139,92,246,0.3);
      background: rgba(139,92,246,0.08);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      color: rgba(196,181,253,0.65);
      font-size: 13px;
      line-height: 1;
      transition: background 0.2s, border-color 0.2s;
      flex-shrink: 0;
    }
    .gp-modal-close:hover {
      background: rgba(139,92,246,0.18);
      border-color: rgba(139,92,246,0.55);
    }

    /* Game option rows */
    .gp-game-option {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 12px;
      border-radius: 13px;
      border: 1px solid rgba(220,38,38,0.42);
      background: rgba(220,38,38,0.04);
      cursor: pointer;
      transition: background 0.22s, border-color 0.22s, box-shadow 0.22s;
      position: relative;
      overflow: hidden;
    }
    .gp-game-option::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(135deg, rgba(220,38,38,0.05) 0%, transparent 55%);
      pointer-events: none;
    }
    .gp-game-option:hover {
      background: rgba(220,38,38,0.09);
      border-color: rgba(220,38,38,0.68);
      box-shadow: 0 0 14px rgba(220,38,38,0.15);
    }
    .gp-game-option:active { transform: scale(0.98); }

    /* Circular game icon */
    .gp-game-opt-icon-wrap {
      width: 48px; height: 48px;
      border-radius: 13px;
      border: 1.5px solid rgba(220,38,38,0.38);
      overflow: hidden;
      flex-shrink: 0;
      background: rgba(0,0,0,0.35);
      display: flex; align-items: center; justify-content: center;
    }
    .gp-game-opt-icon {
      width: 100%; height: 100%;
      object-fit: cover;
      border-radius: 11px;
    }

    .gp-game-opt-text {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }
    .gp-game-opt-name {
      font-size: 12px;
      font-weight: 800;
      color: #fca5a5;
    }
    .gp-game-opt-desc {
      font-size: 9px;
      color: rgba(255,255,255,0.26);
      line-height: 1.4;
    }
    .gp-game-opt-badge {
      font-size: 8px;
      font-weight: 800;
      letter-spacing: 0.5px;
      color: rgba(105,240,174,0.7);
      background: rgba(105,240,174,0.07);
      border: 1px solid rgba(105,240,174,0.22);
      border-radius: 4px;
      padding: 1px 5px;
      white-space: nowrap;
    }
    .gp-game-opt-arrow {
      flex-shrink: 0;
      width: 22px; height: 22px;
      border-radius: 6px;
      border: 1px solid rgba(220,38,38,0.32);
      background: rgba(220,38,38,0.08);
      display: flex; align-items: center; justify-content: center;
    }

    /* ════════════════════════════════════
       RED FUNCTION BOX (4 items)
    ════════════════════════════════════ */
    .func-red-box {
      width: 100%;
      position: relative;
      border: 1px solid rgba(220,38,38,0.48);
      border-radius: 14px;
      background: #06030a;
      overflow: hidden;
      box-shadow:
        0 0 0 1px rgba(220,38,38,0.05) inset,
        0 0 20px rgba(220,38,38,0.08),
        0 4px 20px rgba(0,0,0,0.78);
    }
    .func-red-box::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(220,38,38,0.5), rgba(239,154,154,0.3), transparent);
      z-index: 1;
    }
    .func-red-header {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 12px 13px 10px;
      border-bottom: 1px solid rgba(220,38,38,0.12);
      background: rgba(220,38,38,0.04);
    }
    .func-red-header-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: #ef5350;
      animation: dotPulse 1.8s ease-in-out infinite;
      flex-shrink: 0;
    }
    .func-red-header-title {
      font-size: 11px;
      font-weight: 800;
      color: #ef9a9a;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    .func-red-header-badge {
      margin-left: auto;
      font-size: 8.5px;
      font-weight: 800;
      letter-spacing: 0.5px;
      color: rgba(239,154,154,0.65);
      background: rgba(220,38,38,0.1);
      border: 1px solid rgba(220,38,38,0.28);
      border-radius: 4px;
      padding: 1px 6px;
    }

    /* Radio rows */
    .func-radio-list {
      display: flex;
      flex-direction: column;
      padding: 9px 11px 11px;
    }
    .func-radio-row {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 10px 8px;
      border-radius: 10px;
      border: 1px solid transparent;
      margin-bottom: 5px;
      cursor: pointer;
      transition: background 0.22s, border-color 0.22s;
      position: relative;
    }
    .func-radio-row:last-child { margin-bottom: 0; }
    .func-radio-row:hover { background: rgba(220,38,38,0.04); border-color: rgba(220,38,38,0.1); }
    .func-radio-row.active { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.25); }

    /* Circle radio button */
    .func-radio-btn {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: #09060e;
      border: 1.5px solid rgba(255,255,255,0.1);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    }
    .func-radio-row.active .func-radio-btn {
      border-color: rgba(220,38,38,0.7);
      background: rgba(220,38,38,0.08);
      box-shadow: 0 0 12px rgba(220,38,38,0.45), 0 0 0 3px rgba(220,38,38,0.1);
    }

    /* Plus → Skull toggle */
    .func-radio-plus  { display: block; }
    .func-radio-skull { display: none; }
    .func-radio-row.active .func-radio-plus  { display: none; }
    .func-radio-row.active .func-radio-skull { display: block; }

    /* Text */
    .func-radio-text {
      flex: 1;
      display: flex; flex-direction: column; gap: 2px;
      min-width: 0;
    }
    .func-radio-name {
      font-size: 11.5px; font-weight: 800; color: #c8d0dc;
      transition: color 0.22s;
    }
    .func-radio-row.active .func-radio-name { color: #ef9a9a; }
    .func-radio-desc {
      font-size: 9px; color: rgba(255,255,255,0.24); line-height: 1.4;
    }

    /* ── TOP MODAL (slide from top) ── */
    .func-top-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 9300;
      pointer-events: none;
    }
    .func-top-modal-overlay.open { pointer-events: all; }
    .func-top-modal {
      position: absolute;
      top: 66px; left: 50%;
      transform: translateX(-50%) translateY(-130%);
      width: min(90vw, 268px);
      border-radius: 15px;
      border: 1px solid rgba(21,101,192,0.42);
      background: #060c1a;
      overflow: hidden;
      transition: transform 0.38s cubic-bezier(0.22,1,0.36,1), opacity 0.3s;
      opacity: 0;
      box-shadow: 0 10px 45px rgba(0,0,0,0.9), 0 0 22px rgba(21,101,192,0.14);
    }
    .func-top-modal-overlay.open .func-top-modal {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }
    .func-top-modal::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; height: 1px;
      background: linear-gradient(to right, transparent, rgba(21,101,192,0.6), rgba(66,165,245,0.4), transparent);
    }
    .func-top-modal-inner {
      padding: 18px 18px 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 9px;
    }
    .func-top-modal-icon-wrap {
      width: 48px; height: 48px;
      border-radius: 13px;
      background: rgba(21,101,192,0.1);
      border: 1px solid rgba(21,101,192,0.32);
      display: flex; align-items: center; justify-content: center;
    }
    .ftm-gear { animation: gearSpin 1.1s linear infinite; }
    .ftm-gear.hide { display: none; }
    .ftm-check { display: none; }
    .ftm-check.show { display: block; }
    .func-top-modal-text {
      font-size: 11.5px; font-weight: 800;
      color: #90caf9; letter-spacing: 0.3px;
      text-align: center;
    }
    .func-top-modal-sub {
      font-size: 9px; color: rgba(255,255,255,0.3);
      text-align: center;
    }
    .func-top-modal-bar {
      width: 100%; height: 3px;
      border-radius: 3px;
      background: rgba(21,101,192,0.14);
      overflow: hidden;
    }
    .func-top-modal-bar-fill {
      height: 100%; border-radius: 3px;
      background: linear-gradient(to right, #1565c0, #42a5f5);
      width: 0%;
      transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
    }

    /* ════════════════════════════════════
       INJECT ULTRA PLUS BOX
    ════════════════════════════════════ */
    .inject-box {
      width: 100%;
      position: relative;
      border: 1px solid rgba(21,101,192,0.42);
      border-radius: 14px;
      background: #04080f;
      overflow: hidden;
      box-shadow:
        0 0 0 1px rgba(21,101,192,0.06) inset,
        0 0 18px rgba(21,101,192,0.07),
        0 4px 18px rgba(0,0,0,0.75);
      transition: border-color 0.28s;
    }
    .inject-box.active {
      border-color: rgba(21,101,192,0.65);
      box-shadow:
        0 0 0 1px rgba(21,101,192,0.1) inset,
        0 0 24px rgba(21,101,192,0.14),
        0 4px 20px rgba(0,0,0,0.8);
    }
    .inject-box::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; height: 1px;
      background: linear-gradient(to right, transparent, rgba(21,101,192,0.5), rgba(66,165,245,0.35), transparent);
    }
    .inject-row {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 13px 13px;
      cursor: pointer;
    }
    /* Radio circle */
    .inject-radio-btn {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: #09060e;
      border: 1.5px solid rgba(255,255,255,0.1);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    }
    .inject-box.active .inject-radio-btn {
      border-color: rgba(21,101,192,0.7);
      background: rgba(21,101,192,0.1);
      box-shadow: 0 0 12px rgba(21,101,192,0.45), 0 0 0 3px rgba(21,101,192,0.1);
    }
    .inject-radio-off { display: block; }
    .inject-box.active .inject-radio-off { display: none; }
    .inject-radio-on  { display: none; }
    .inject-box.active .inject-radio-on  { display: block; }

    .inject-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
    .inject-name { font-size: 12px; font-weight: 800; color: #ccd8ec; transition: color 0.25s; }
    .inject-box.active .inject-name { color: #90caf9; }
    .inject-desc { font-size: 9px; color: rgba(255,255,255,0.24); }

    /* Process area */
    .inject-process {
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      padding: 0 14px 16px;
      border-top: 1px solid rgba(21,101,192,0.1);
    }
    .inject-box.active .inject-process { display: flex; }

    /* Spinner row */
    .inject-spinner-row {
      display: flex;
      align-items: center;
      gap: 7px;
      padding-top: 4px;
    }
    .inject-spin-svg { animation: gearSpin 0.9s linear infinite; }
    .inject-spin-svg.paused { animation-play-state: paused; }
    .inject-spin-label {
      font-size: 9.5px; font-weight: 700;
      color: rgba(66,165,245,0.7); letter-spacing: 0.3px;
    }
    .inject-spin-label.done { color: rgba(105,240,174,0.85); }

    /* Gun grid */
    .inject-guns {
      display: flex; flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      width: 100%;
    }
    .gun-slot {
      display: flex; flex-direction: column;
      align-items: center; gap: 4px;
      width: 56px;
      opacity: 0;
      transform: scale(0.65) translateY(10px);
      transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1);
    }
    .gun-slot.loaded { opacity: 1; transform: scale(1) translateY(0); }
    .gun-icon-wrap {
      width: 52px; height: 36px;
      border-radius: 9px;
      background: rgba(21,101,192,0.08);
      border: 1px solid rgba(21,101,192,0.22);
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
      transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
    }
    .gun-slot.loaded .gun-icon-wrap {
      border-color: rgba(105,240,174,0.42);
      background: rgba(105,240,174,0.05);
      box-shadow: 0 0 8px rgba(105,240,174,0.14);
    }
    .gun-name-label {
      font-size: 8px; font-weight: 800;
      color: rgba(66,165,245,0.55);
      letter-spacing: 0.3px;
      text-align: center;
      transition: color 0.4s;
    }
    .gun-slot.loaded .gun-name-label { color: rgba(105,240,174,0.7); }

    /* Inject success */
    .inject-success {
      display: none;
      align-items: center; gap: 6px;
      padding: 6px 12px;
      border-radius: 8px;
      background: rgba(105,240,174,0.07);
      border: 1px solid rgba(105,240,174,0.25);
      font-size: 10px; font-weight: 800;
      color: rgba(105,240,174,0.88);
      letter-spacing: 0.3px;
    }
    .inject-success.visible { display: flex; }

    /* ════════════════════════════════════
       LOGIN — 4th FEATURE ITEM (Mua Key)
    ════════════════════════════════════ */
    .fi-buy-btn {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 7px 11px;
      border-radius: 9px;
      background: #0a0a0f;
      border: 1px solid rgba(255,255,255,0.12);
      cursor: pointer;
      transition: background 0.22s, border-color 0.22s, box-shadow 0.22s;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
    .fi-buy-btn:hover {
      background: #111118;
      border-color: rgba(255,255,255,0.22);
      box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    }
    .fi-buy-btn:active { transform: scale(0.96); }
    .fi-buy-btn-label {
      font-size: 9.5px;
      font-weight: 800;
      letter-spacing: 0.4px;
      color: rgba(255,255,255,0.7);
      white-space: nowrap;
    }

    /* ════════════════════════════════════
       SHOP TAB
    ════════════════════════════════════ */
    #shop {
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      background: #000;
      overflow-y: auto;
      overflow-x: hidden;
      padding-top: 70px;
      padding-bottom: 32px;
    }
    #shop::before {
      content: '';
      position: fixed; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.011) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.011) 1px, transparent 1px);
      background-size: 40px 40px;
      pointer-events: none; z-index: 0;
    }

    .shop-wrap {
      position: relative; z-index: 1;
      display: flex; flex-direction: column;
      gap: 12px;
      width: min(94vw, 460px);
    }

    /* Shop page title */
    .shop-page-title {
      font-size: 11px; font-weight: 800;
      letter-spacing: 2px; text-transform: uppercase;
      color: rgba(255,255,255,0.2);
      text-align: center;
      padding-bottom: 2px;
    }

    /* VIP Card */
    .shop-vip-card {
      width: 100%;
      border-radius: 18px;
      background: linear-gradient(145deg, #050915 0%, #070d1f 60%, #060e1c 100%);
      border: 1px solid rgba(21,101,192,0.5);
      overflow: hidden;
      box-shadow: 0 0 0 1px rgba(21,101,192,0.07) inset, 0 0 28px rgba(21,101,192,0.12), 0 8px 32px rgba(0,0,0,0.85);
      animation: cardSlideIn 0.6s ease forwards;
      opacity: 0; transform: translateY(20px) scale(0.98);
    }
    .shop-vip-header {
      padding: 16px 18px 14px;
      border-bottom: 1px solid rgba(21,101,192,0.18);
      background: rgba(21,101,192,0.06);
      display: flex; align-items: center; gap: 11px;
    }
    .shop-vip-badge {
      padding: 3px 9px;
      border-radius: 6px;
      background: linear-gradient(135deg, #1565c0, #42a5f5);
      font-size: 8.5px; font-weight: 900; letter-spacing: 1.5px;
      color: #fff; flex-shrink: 0;
    }
    .shop-vip-name {
      font-size: 14px; font-weight: 900;
      color: #90caf9; letter-spacing: 1px;
      flex: 1;
    }
    .shop-vip-status {
      display: flex; align-items: center; gap: 5px;
      font-size: 9px; font-weight: 700; color: rgba(105,240,174,0.8);
    }
    .shop-vip-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: #69f0ae; animation: dotPulse 1.8s ease-in-out infinite;
    }
    .shop-vip-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
    .shop-vip-desc {
      font-size: 10.5px; line-height: 1.7;
      color: rgba(255,255,255,0.45);
    }
    .shop-vip-features {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 7px;
    }
    .shop-vip-feat {
      display: flex; align-items: center; gap: 7px;
      padding: 8px 10px;
      border-radius: 9px;
      background: rgba(21,101,192,0.07);
      border: 1px solid rgba(21,101,192,0.18);
    }
    .shop-vip-feat-icon {
      width: 22px; height: 22px; border-radius: 6px;
      background: rgba(21,101,192,0.15);
      border: 1px solid rgba(21,101,192,0.3);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .shop-vip-feat-label { font-size: 9.5px; font-weight: 700; color: rgba(144,202,249,0.8); }
    .shop-vip-price {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 13px;
      border-radius: 11px;
      background: rgba(21,101,192,0.08);
      border: 1px solid rgba(21,101,192,0.25);
    }
    .shop-vip-price-label { font-size: 10px; color: rgba(255,255,255,0.3); flex: 1; }
    .shop-vip-price-val {
      font-size: 13px; font-weight: 900;
      color: #42a5f5; letter-spacing: 0.5px;
    }

    /* Admin Card */
    .shop-admin-card {
      width: 100%;
      border-radius: 18px;
      background: #080810;
      border: 1px solid rgba(255,255,255,0.08);
      overflow: hidden;
      box-shadow: 0 4px 24px rgba(0,0,0,0.7);
      animation: cardSlideIn 0.7s 0.1s ease forwards;
      opacity: 0; transform: translateY(20px) scale(0.98);
    }
    .shop-admin-header {
      padding: 15px 16px;
      display: flex; align-items: center; gap: 13px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .shop-admin-avatar {
      width: 54px; height: 54px; border-radius: 14px;
      object-fit: cover;
      border: 1.5px solid rgba(21,101,192,0.4);
      box-shadow: 0 0 14px rgba(21,101,192,0.2);
      flex-shrink: 0; background: #111;
    }
    .shop-admin-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
    .shop-admin-name { font-size: 13px; font-weight: 800; color: #d0daf0; }
    .shop-admin-role {
      font-size: 9px; font-weight: 700; letter-spacing: 0.8px;
      color: #42a5f5; text-transform: uppercase;
    }
    .shop-admin-verified {
      display: flex; align-items: center; gap: 4px;
      font-size: 9px; color: rgba(105,240,174,0.7); font-weight: 700;
    }
    .shop-admin-body { padding: 13px 16px 15px; display: flex; flex-direction: column; gap: 11px; }
    .shop-admin-desc {
      font-size: 10px; line-height: 1.65; color: rgba(255,255,255,0.38);
    }
    .shop-admin-socials { display: flex; gap: 9px; }
    .shop-social-link {
      display: flex; align-items: center; gap: 7px;
      padding: 8px 13px;
      border-radius: 10px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      text-decoration: none;
      transition: background 0.22s, border-color 0.22s;
      flex: 1; justify-content: center;
    }
    .shop-social-link:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
    .shop-social-icon { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
    .shop-social-name { font-size: 10px; font-weight: 800; color: rgba(255,255,255,0.65); }

    /* About card */
    .shop-about-card {
      width: 100%;
      border-radius: 18px;
      background: #06060c;
      border: 1px solid rgba(255,255,255,0.07);
      padding: 16px 18px;
      display: flex; flex-direction: column; gap: 10px;
      animation: cardSlideIn 0.8s 0.2s ease forwards;
      opacity: 0; transform: translateY(20px) scale(0.98);
    }
    .shop-about-title {
      font-size: 11px; font-weight: 800;
      letter-spacing: 1.2px; color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      display: flex; align-items: center; gap: 8px;
    }
    .shop-about-title::after {
      content: ''; flex: 1; height: 1px;
      background: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
    }
    .shop-about-desc {
      font-size: 10px; line-height: 1.7;
      color: rgba(255,255,255,0.32);
    }
    .shop-about-tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .shop-about-tag {
      font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
      color: rgba(66,165,245,0.65);
      background: rgba(21,101,192,0.08);
      border: 1px solid rgba(21,101,192,0.2);
      border-radius: 5px; padding: 2px 8px;
    }

    /* Back button */
    .shop-back-btn {
      display: flex; align-items: center; gap: 6px;
      padding: 10px 16px;
      border-radius: 11px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      cursor: pointer;
      font-size: 10.5px; font-weight: 700;
      color: rgba(255,255,255,0.4);
      transition: background 0.22s;
      align-self: flex-start;
    }
    .shop-back-btn:hover { background: rgba(255,255,255,0.08); }

    @keyframes cardSlideIn {
      from { opacity: 0; transform: translateY(18px) scale(0.97); }
      to   { opacity: 1; transform: translateY(0)    scale(1); }
    }


  /* ── Free Key Card ── */
  .shop-freekey-card {
    background: linear-gradient(135deg, #0f2027 0%, #1a1a2e 50%, #16213e 100%);
    border: 1px solid rgba(0,230,180,0.35);
    border-radius: 18px;
    padding: 22px 20px 18px;
    margin: 0 0 18px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,230,180,0.10);
  }
  .shop-freekey-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(0,230,180,0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .shop-freekey-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #00e6b4, #00b894);
    color: #0a0a0a;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
  }
  .shop-freekey-title {
    color: #e0f7f2;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
  }
  .shop-freekey-desc {
    color: rgba(200,230,225,0.6);
    font-size: 12px;
    margin-bottom: 14px;
  }
  .shop-freekey-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(0,230,180,0.2);
    border-radius: 10px;
    padding: 8px 10px;
  }
  .shop-freekey-link-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #00e6b4;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    min-width: 0;
  }
  .shop-freekey-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
  }
  .shop-freekey-copy-btn:hover { background: rgba(0,230,180,0.12); }
  .shop-freekey-copy-btn svg { transition: all 0.25s; }
  .shop-freekey-copy-btn.copied svg { filter: drop-shadow(0 0 4px #00e6b4); }
  .shop-freekey-hint {
    color: rgba(180,215,205,0.45);
    font-size: 11px;
    margin-top: 8px;
    text-align: center;
    letter-spacing: 0.2px;
  }