
  
    :root {
      --bg: #0a0a14;
      --surface: #0c0d1b;
      --card: #0f1224;
      --card-border: #1a1e38;
      --cyan: #00f2fe;
      --cyan-glow: rgba(0, 242, 254, 0.4);
      --purple: #a855f7;
      --pink: #f472b6;
      --amber: #f59e0b;
      --emerald: #10b981;
      --text-white: #ffffff;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
      --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
    }



    .page-title {
      font-size: 22px;
      font-weight: 900;
      letter-spacing: -0.02em;
      color: #fff;
      margin-bottom: 2px;
    }

    .page-subtitle {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 16px;
    }


    /* Toolbar & Search Bar */
    .leaderboard-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      
    }

    .toolbar-status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      background: #0f1224;
      border: 1px solid var(--card-border);
      border-radius: 9999px;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
    }

    .status-pulse-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #f59e0b;
      display: inline-block;
      box-shadow: 0 0 6px #f59e0b;
      transition: all 0.3s ease;
    }

    .status-pulse-dot.online {
      background: #10b981;
      box-shadow: 0 0 8px #10b981;
    }

    .toolbar-actions {
      display: flex;
      gap: 6px;
    }

    .toolbar-btn {
      padding: 6px 12px;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      border: 1px solid transparent;
      transition: all 0.15s ease;
    }

    .toolbar-btn.primary {
      background: var(--cyan);
      color: #060913;
      border-color: var(--cyan);
      box-shadow: 0 0 10px var(--cyan-glow);
    }

    .toolbar-btn.secondary {
      background: #151a36;
      color: var(--text-muted);
      border-color: #242c54;
    }

    .toolbar-btn.secondary:hover {
      color: #fff;
      border-color: var(--cyan);
    }

    .search-input-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #0f1224;
      border: 1px solid var(--card-border);
      border-radius: 12px;
      padding: 8px 12px;
      margin-bottom: 12px;
    }

    .search-input-wrap input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      color: #fff;
      font-size: 12px;
      font-family: inherit;
    }

    .search-input-wrap input::placeholder {
      color: var(--text-dim);
    }

    /* Leaderboard Cards */
    .leaderboard-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .rank-card {
      background: #0f1224;
      border: 1px solid var(--card-border);
      border-radius: 18px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: all 0.15s ease;
      position: relative;
    }

    .rank-card.rank-1-you {
      background: linear-gradient(135deg, rgba(17, 24, 48, 0.95), rgba(12, 16, 36, 0.95));
      border: 1.5px solid var(--cyan);
      box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
    }

    .rank-left-section {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .rank-medal-box {
      width: 24px;
      text-align: center;
      font-size: 18px;
      font-weight: 900;
      flex-shrink: 0;
    }

    .rank-number-text {
      font-size: 13px;
      font-weight: 900;
      color: var(--text-dim);
      font-family: var(--font-mono);
    }

    .player-avatar-circle {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1.5px solid #232b50;
      object-fit: cover;
      flex-shrink: 0;
      background: #111;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 900;
    }

    .player-info-meta {
      min-width: 0;
    }

    .player-username-row {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .player-name {
      font-size: 13px;
      font-weight: 800;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .badge-admin {
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
      padding: 1px 6px;
      border-radius: 4px;
      background: rgba(0, 242, 254, 0.15);
      color: var(--cyan);
      letter-spacing: 0.04em;
    }

    .badge-spooner {
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
      padding: 1px 6px;
      border-radius: 4px;
      background: rgba(56, 189, 248, 0.18);
      color: #38bdf8;
      letter-spacing: 0.04em;
    }

    .badge-you {
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
      padding: 1px 6px;
      border-radius: 4px;
      background: var(--cyan);
      color: #060913;
      letter-spacing: 0.04em;
    }

    .player-insta-handle {
      font-size: 11px;
      font-weight: 600;
      color: var(--pink);
      display: block;
      margin-top: 1px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rank-right-section {
      text-align: right;
      flex-shrink: 0;
    }

    .xp-points-num {
      font-family: var(--font-mono);
      font-size: 14px;
      font-weight: 900;
      color: var(--cyan);
    }

    .xp-points-label {
      font-size: 9px;
      font-weight: 700;
      color: var(--text-dim);
      text-transform: uppercase;
      display: block;
      margin-top: 1px;
    }

    .empty-lb-notice {
      padding: 30px 16px;
      text-align: center;
      background: #0f1224;
      border: 1px dashed var(--card-border);
      border-radius: 16px;
      color: var(--text-muted);
      font-size: 12px;
    }

    /* Modal */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.78);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }

    .modal-content {
      background: #0f1224;
      border: 1px solid var(--card-border);
      border-radius: 20px;
      width: 100%;
      max-width: 380px;
      padding: 20px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
      animation: modalPop 0.2s ease-out;
    }

    @keyframes modalPop {
      from { transform: scale(0.95); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

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

    .modal-header h3 {
      font-size: 15px;
      font-weight: 800;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .modal-close-btn {
      background: none;
      border: none;
      color: var(--text-dim);
      font-size: 22px;
      cursor: pointer;
      line-height: 1;
    }

    .form-group {
      margin-bottom: 12px;
    }

    .form-group label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 5px;
    }

    .form-group input {
      width: 100%;
      background: #090b16;
      border: 1px solid var(--card-border);
      border-radius: 10px;
      padding: 9px 12px;
      font-size: 13px;
      color: #fff;
      outline: none;
      font-family: inherit;
    }

    .form-group input:focus {
      border-color: var(--cyan);
    }

    .quick-xp-chips {
      display: flex;
      gap: 6px;
      margin-bottom: 16px;
    }

    .quick-xp-chips button {
      flex: 1;
      background: #141933;
      border: 1px solid #232a52;
      border-radius: 8px;
      padding: 6px 0;
      color: var(--cyan);
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      transition: background 0.15s;
    }

    .quick-xp-chips button:hover {
      background: #1c244a;
    }

    .modal-actions {
      display: flex;
      gap: 8px;
    }

    .btn-cancel {
      flex: 1;
      padding: 10px;
      background: #141933;
      border: 1px solid #232a52;
      color: var(--text-muted);
      border-radius: 10px;
      font-weight: 700;
      font-size: 12px;
      cursor: pointer;
    }

    .btn-save {
      flex: 2;
      padding: 10px;
      background: var(--cyan);
      color: #060913;
      border: none;
      border-radius: 10px;
      font-weight: 800;
      font-size: 12px;
      cursor: pointer;
      box-shadow: 0 0 12px var(--cyan-glow);
    }
  
/* ✅ V BADGE — Hexagon with scanning glow */
.v-badge-hex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 20px;
    margin-left: 5px;
    position: relative;
    vertical-align: middle;
}

.v-badge-hex .hex-shape {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #FFF6B0, #FFD700, #FF8C00);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.v-badge-hex .hex-inner {
    position: absolute;
    inset: 1.5px;
    background: linear-gradient(180deg, #6E3600, #391C00);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.v-badge-hex .hex-v {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 900;
    background: linear-gradient(180deg, #FFF6B0, #FFD700, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 1px gold);
}

/* Scanning glow sweep */
.v-badge-hex .hex-scan {
    position: absolute;
    inset: 0;
    z-index: 3;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    pointer-events: none;
    overflow: hidden;
}

.v-badge-hex .hex-scan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    transform: skewX(-20deg);
    animation: vBadgeScan 2.5s infinite linear;
}

@keyframes vBadgeScan {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

/* Outer pulse glow */
.v-badge-hex .hex-glow {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.4), transparent 70%);
    filter: blur(3px);
    z-index: 0;
    animation: vBadgePulse 2s infinite ease-in-out;
}

@keyframes vBadgePulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 0.8; transform: scale(1.15); }
}
