﻿:root {
      color-scheme: dark;
      --bg: #060d17;
      --panel: #0b1726;
      --panel2: #101f33;
      --panel-hover: #14273e;
      --line: #1e324a;
      --text: #f4f7fb;
      --muted: #8ca2bc;
      --gold: #ffcc5d;
      --gold2: #ff9d36;
      --blue: #5ed8ff;
      --blue2: #2b99ff;
      --green: #4de6a6;
      --danger: #ff6b7e;
      --shadow: 0 24px 80px rgba(0,0,0,0.45);
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(circle at 85% -10%, rgba(43, 153, 255, 0.15), transparent 35%),
        radial-gradient(circle at -5% 20%, rgba(255, 157, 54, 0.12), transparent 30%),
        var(--bg);
      color: var(--text);
      font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }
    button, input, select { font: inherit; }
    .shell {
      width: min(1480px, calc(100% - 36px));
      margin: auto;
      padding: 20px 0 64px;
    }

    /* TOP BAR & BRAND */
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 12px 0 20px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      cursor: pointer;
    }
    .brand-mark {
      position: relative;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--blue2), var(--gold2));
      box-shadow: 0 0 28px rgba(94, 216, 255, 0.25);
      display: grid;
      place-items: center;
      font-weight: 900;
      color: #060d17;
      font-size: 20px;
      letter-spacing: -0.05em;
    }
    .brand h1 {
      font-size: 20px;
      line-height: 1;
      margin: 0;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      font-weight: 850;
    }
    .brand small {
      display: block;
      color: var(--muted);
      font-size: 11px;
      letter-spacing: 0.14em;
      margin-top: 4px;
      text-transform: uppercase;
    }

    /* USER & STATUS WIDGET */
    .user-widget {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .server-pill {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(11, 23, 38, 0.7);
      color: #c0d1e5;
      font-size: 12px;
    }
    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #5d728a;
    }
    .dot.online {
      background: var(--green);
      box-shadow: 0 0 12px rgba(77, 230, 166, 0.6);
    }

    /* USER PROFILE DROPDOWN CONTAINER */
    .user-profile-container {
      position: relative;
      display: inline-block;
    }
    .user-profile-trigger {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 14px 6px 8px;
      border: 1px solid rgba(255, 204, 93, 0.3);
      border-radius: 999px;
      background: linear-gradient(135deg, rgba(255, 204, 93, 0.1), rgba(16, 31, 51, 0.85));
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .user-profile-trigger:hover {
      border-color: var(--gold);
      background: linear-gradient(135deg, rgba(255, 204, 93, 0.18), rgba(20, 39, 62, 0.95));
      box-shadow: 0 0 20px rgba(255, 157, 54, 0.25);
    }
    .avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: #1e344f;
      border: 2px solid var(--gold);
      display: grid;
      place-items: center;
      font-weight: 800;
      font-size: 13px;
      color: var(--gold);
      overflow: hidden;
    }
    .avatar img { width: 100%; height: 100%; object-fit: cover; }
    .user-info { display: flex; flex-direction: column; }
    .user-name { font-size: 13px; font-weight: 800; color: #fff; line-height: 1.1; }
    .user-balances {
      display: flex;
      gap: 4px;
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }
    .val-vnd { color: var(--green); font-weight: 800; }
    .dropdown-caret {
      font-size: 10px;
      color: var(--gold);
      transition: transform 0.2s ease;
      margin-left: 2px;
    }
    .user-profile-container:hover .dropdown-caret {
      transform: rotate(180deg);
    }

    /* DROPDOWN MENU */
    .user-dropdown-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: 220px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(11, 23, 38, 0.96);
      backdrop-filter: blur(20px);
      box-shadow: var(--shadow);
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      z-index: 100;
    }
    .user-profile-container:hover .user-dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    .dropdown-header {
      padding: 6px 10px 8px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      margin-bottom: 4px;
    }
    .dropdown-item {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border: 0;
      border-radius: 10px;
      background: transparent;
      color: var(--text);
      font-size: 13px;
      font-weight: 750;
      cursor: pointer;
      text-align: left;
      transition: all 0.18s ease;
    }
    .dropdown-item:hover {
      background: rgba(255, 204, 93, 0.12);
      color: var(--gold);
    }
    .dropdown-item.danger:hover {
      background: rgba(255, 107, 126, 0.15);
      color: var(--danger);
    }
    .dropdown-divider {
      height: 1px;
      background: rgba(255, 255, 255, 0.06);
      margin: 4px 0;
    }

    .btn-steam {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: 40px;
      padding: 0 18px;
      border: 1px solid rgba(94, 216, 255, 0.35);
      border-radius: 11px;
      background: linear-gradient(135deg, #17293e, #0c1827);
      color: var(--blue);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(0,0,0,0.2);
      transition: all 0.2s ease;
    }
    .btn-steam:hover {
      background: var(--blue);
      color: #060d17;
      border-color: var(--blue);
      box-shadow: 0 0 20px rgba(94, 216, 255, 0.35);
    }

    .btn-discord {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: 40px;
      padding: 0 16px;
      border: 1px solid rgba(88, 101, 242, 0.4);
      border-radius: 11px;
      background: rgba(88, 101, 242, 0.1);
      color: #fff;
      font-weight: 800;
      font-size: 13px;
      text-decoration: none;
      transition: all 0.2s ease;
    }
    .btn-discord:hover {
      background: #5865F2;
      border-color: #5865F2;
      box-shadow: 0 0 20px rgba(88, 101, 242, 0.35);
    }

    /* TAB SECTIONS */
    .tab-content { display: none; margin-top: 24px; }
    .tab-content.active { display: block; }

    /* HOME / SERVER HUB - STYLES MATCHING THE SCREENSHOT EXACTLY */
    .servers-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
      gap: 22px;
      margin-bottom: 32px;
    }
    .server-card-v2 {
      position: relative;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      background: linear-gradient(165deg, #101c2b, #09121d);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.22s ease;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }
    .server-card-v2:hover {
      transform: translateY(-4px);
      border-color: rgba(94, 216, 255, 0.35);
      box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
    }
    .sc-banner {
      position: relative;
      height: 165px;
      background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px), #08111d;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .sc-banner img {
      max-height: 120px;
      max-width: 80%;
      object-fit: contain;
      filter: drop-shadow(0 8px 16px rgba(0,0,0,0.7));
      transition: transform 0.25s ease;
    }
    .server-card-v2:hover .sc-banner img {
      transform: scale(1.05);
    }
    .sc-badge-top {
      position: absolute;
      top: 12px;
      right: 12px;
      padding: 4px 12px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 850;
      letter-spacing: 0.06em;
      display: flex;
      align-items: center;
      gap: 6px;
      text-transform: uppercase;
      backdrop-filter: blur(8px);
    }
    .sc-badge-top.online {
      background: rgba(77, 230, 166, 0.15);
      color: var(--green);
      border: 1px solid rgba(77, 230, 166, 0.35);
    }
    .sc-badge-top.offline {
      background: rgba(255, 107, 126, 0.15);
      color: var(--danger);
      border: 1px solid rgba(255, 107, 126, 0.35);
    }
    .sc-badge-top.coming {
      background: rgba(255, 204, 93, 0.15);
      color: var(--gold);
      border: 1px solid rgba(255, 204, 93, 0.35);
    }
    .sc-badge-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: currentColor;
      box-shadow: 0 0 8px currentColor;
    }

    .sc-game-tag {
      position: absolute;
      bottom: 12px;
      left: 12px;
      padding: 3px 10px;
      border-radius: 6px;
      background: rgba(5, 12, 20, 0.88);
      color: var(--blue);
      font-family: monospace;
      font-size: 10px;
      font-weight: 850;
      letter-spacing: 0.08em;
      border: 1px solid rgba(94, 216, 255, 0.25);
    }

    .sc-content {
      padding: 20px;
    }
    .sc-v2-title {
      font-size: 19px;
      font-weight: 850;
      color: #fff;
      margin: 0 0 6px;
      line-height: 1.25;
    }
    .sc-v2-desc {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.45;
      margin-bottom: 18px;
      min-height: 38px;
    }

    .sc-metrics-box {
      display: flex;
      border-radius: 12px;
      background: #070e17;
      border: 1px solid rgba(255, 255, 255, 0.07);
      padding: 12px 16px;
      margin-bottom: 16px;
    }
    .sc-metric-col {
      flex: 1;
    }
    .sc-metric-col:first-child {
      border-right: 1px solid rgba(255, 255, 255, 0.07);
      padding-right: 12px;
    }
    .sc-metric-col:last-child {
      padding-left: 16px;
    }
    .sc-metric-label {
      color: #5d7593;
      font-size: 10px;
      font-weight: 850;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    .sc-metric-value {
      font-size: 16px;
      font-weight: 850;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .sc-footer-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 12px;
      padding-top: 4px;
    }
    .sc-ip-text {
      color: #5d7593;
      font-weight: 700;
    }
    .btn-copy-ip {
      background: none;
      border: none;
      color: var(--blue);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 8px;
      border-radius: 6px;
      transition: all 0.18s ease;
    }
    .btn-copy-ip:hover {
      background: rgba(94, 216, 255, 0.12);
    }

    .btn-action {
      flex: 1;
      height: 42px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #122438;
      color: #fff;
      font-weight: 750;
      font-size: 13px;
      cursor: pointer;
      transition: 0.18s ease;
    }
    .btn-action:hover { background: var(--gold); color: #060d17; border-color: var(--gold); }
    .btn-action.highlight {
      background: linear-gradient(135deg, var(--gold), var(--gold2));
      color: #060d17;
      border: 0;
      font-weight: 850;
      box-shadow: 0 4px 14px rgba(255, 157, 54, 0.2);
    }
    .btn-action.highlight:hover { filter: brightness(1.1); transform: translateY(-1px); }

    /* TOPUP PAGE */
    .topup-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 28px;
    }
    .card-panel {
      padding: 28px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: var(--panel2);
    }
    .card-panel h3 { font-size: 20px; margin: 0 0 16px; font-weight: 800; }
    .amount-presets {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 18px;
    }
    .preset-btn {
      height: 48px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #0b1726;
      color: #d1e2f5;
      font-weight: 800;
      cursor: pointer;
      transition: all 0.18s ease;
    }
    .preset-btn:hover, .preset-btn.active {
      border-color: var(--gold);
      background: rgba(255,204,93,0.1);
      color: var(--gold);
    }
    .input-field {
      width: 100%;
      height: 48px;
      padding: 0 16px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #0b1726;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      outline: none;
      margin-bottom: 18px;
    }
    .input-field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(94, 216, 255, 0.1); }
    .btn-generate {
      width: 100%;
      height: 48px;
      border: 0;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--gold), var(--gold2));
      color: #060d17;
      font-weight: 850;
      font-size: 15px;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(255, 157, 54, 0.2);
      transition: 0.18s ease;
    }
    .btn-generate:hover { filter: brightness(1.08); transform: translateY(-1px); }

    .qr-preview {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .qr-img-box {
      width: 220px;
      height: 220px;
      padding: 10px;
      border: 2px solid var(--gold);
      border-radius: 16px;
      background: #fff;
      margin-bottom: 20px;
    }
    .qr-img-box img { width: 100%; height: 100%; object-fit: contain; }
    .qr-status {
      display: grid;
      width: 100%;
      height: 100%;
      place-items: center;
      padding: 18px;
      color: #536579;
      font-size: 14px;
      line-height: 1.45;
    }
    .qr-status.error { color: #b42318; font-weight: 700; }
    .bank-details {
      width: 100%;
      background: #0b1726;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 16px;
      font-size: 13px;
      text-align: left;
    }
    .b-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
    .b-row:last-child { border-bottom: 0; }
    .b-label { color: var(--muted); }
    .b-val { font-weight: 800; color: #fff; }
    .copy-btn {
      padding: 3px 8px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #15273b;
      color: var(--blue);
      font-size: 11px;
      cursor: pointer;
      margin-left: 6px;
    }
    .copy-btn:hover { background: var(--blue); color: #060d17; }

    /* EXCHANGE PAGE */
    .exchange-box {
      max-width: 660px;
      margin: auto;
      padding: 32px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: var(--panel2);
      box-shadow: var(--shadow);
    }
    .rate-pill {
      display: inline-block;
      padding: 6px 16px;
      border-radius: 999px;
      background: rgba(94, 216, 255, 0.1);
      border: 1px solid rgba(94, 216, 255, 0.2);
      color: var(--blue);
      font-size: 13px;
      font-weight: 800;
      margin-bottom: 20px;
    }
    .select-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 20px;
    }
    .ex-flex { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
    .ex-col { flex: 1; }
    .ex-arrow { font-size: 24px; color: var(--gold); font-weight: 900; }

    /* SHOP PALWORLD (54 ITEMS) */
    .toolbar {
      position: sticky;
      z-index: 10;
      top: 0;
      margin: 0 0 20px;
      padding: 14px;
      display: flex;
      align-items: center;
      gap: 12px;
      border: 1px solid rgba(129,166,198,0.16);
      border-radius: 18px;
      background: rgba(6, 13, 23, 0.92);
      backdrop-filter: blur(16px);
    }
    .search { position: relative; flex: 1; min-width: 200px; }
    .search input {
      width: 100%;
      height: 42px;
      padding: 0 16px 0 40px;
      border: 1px solid var(--line);
      border-radius: 12px;
      outline: none;
      color: #fff;
      background: #0b1726;
    }
    .search:before { content: "⌕"; position: absolute; left: 14px; top: 6px; color: var(--muted); font-size: 22px; }
    .filters { display: flex; align-items: center; gap: 8px; }
    .filter-label { color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
    .filter-select {
      height: 38px;
      min-width: 150px;
      padding: 0 30px 0 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      color: #fff;
      background: #0b1726;
      cursor: pointer;
      transition: 0.18s ease;
    }
    .filter-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 193, 76, 0.14); }

    .grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
    .card {
      position: relative;
      min-height: 350px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      border: 1px solid var(--line);
      border-radius: 17px;
      background: linear-gradient(155deg, var(--panel2), var(--panel));
      overflow: hidden;
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }
    .card:hover { transform: translateY(-2px); border-color: #3b5677; box-shadow: 0 14px 32px rgba(0,0,0,0.25); }
    .card-top { display: flex; align-items: center; justify-content: space-between; }
    .number { color: #586e85; font: 700 11px monospace; }
    .tag { padding: 4px 8px; border-radius: 6px; color: var(--gold); background: rgba(255,204,93,0.08); font-size: 9px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
    .sphere .tag { color: var(--blue); background: rgba(94,216,255,0.09); }

    .item-visual {
      position: relative;
      height: 140px;
      margin: 12px 0;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,204,93,0.16);
      border-radius: 14px;
      background: radial-gradient(circle at 50% 45%, rgba(255,203,91,0.14), rgba(5,13,23,0.6) 65%);
      overflow: hidden;
    }
    .sphere .item-visual { border-color: rgba(94,216,255,0.2); background: radial-gradient(circle at 50% 45%, rgba(94,216,255,0.15), rgba(5,13,23,0.6) 65%); }
    .item-visual img { width: 128px; height: 128px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,0.4)); transition: transform 0.2s ease; }
    .card:hover .item-visual img { transform: scale(1.06); }
    .rarity-badge { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 6px; background: rgba(6,13,23,0.85); color: var(--gold); font-size: 9px; font-weight: 900; }
    .sphere .rarity-badge { color: var(--blue); }

    .item-name { margin: 0 0 5px; font-size: 15px; font-weight: 780; line-height: 1.25; }
    .item-description { min-height: 34px; color: var(--muted); font-size: 11px; line-height: 1.4; }
    .card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
    .price strong { font-size: 24px; color: var(--gold); }
    .price span { color: #c2a45c; font-weight: 800; font-size: 11px; margin-left: 3px; }

    .buy {
      height: 36px;
      padding: 0 14px;
      border: 0;
      border-radius: 10px;
      color: #060d17;
      background: linear-gradient(135deg, var(--gold), var(--gold2));
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      transition: 0.17s ease;
    }
    .buy:hover { filter: brightness(1.08); transform: translateY(-1px); }
    .buy:disabled { cursor: not-allowed; opacity: 0.45; transform: none; }

    .btn-back-home {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #0b1726;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      margin-bottom: 16px;
      transition: 0.18s ease;
    }
    .btn-back-home:hover { background: #14273e; color: #fff; }

    .count-badge {
      display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
      border-radius: 10px; background: var(--gold); color: #06101a; font-size: 11px; font-weight: 900;
    }
    .section-head {
      display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
      margin-bottom: 18px; flex-wrap: wrap;
    }
    .section-head h3 { margin: 4px 0 0; font-size: 22px; }
    .account-status {
      display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px;
      border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 800;
    }
    .account-status.online { border-color: rgba(62,230,167,.35); color: var(--green); }
    .data-list { display: grid; gap: 10px; }
    .data-row {
      display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
      min-height: 84px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #0b1726;
    }
    .row-main { min-width: 0; display: flex; align-items: center; gap: 14px; }
    .row-thumb { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
    .row-title { font-size: 14px; font-weight: 850; color: #eef6ff; overflow-wrap: anywhere; }
    .row-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
    .row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
    .quantity-control { display: grid; grid-template-columns: 34px 42px 34px; height: 34px; }
    .quantity-control button, .quantity-control span {
      display: grid; place-items: center; border: 1px solid var(--line); background: #08121f; color: #dce8f4; font-weight: 850;
    }
    .quantity-control button { cursor: pointer; font-size: 18px; }
    .quantity-control button:first-child { border-radius: 7px 0 0 7px; }
    .quantity-control button:last-child { border-radius: 0 7px 7px 0; }
    .quantity-control span { border-left: 0; border-right: 0; font-size: 12px; }
    .text-button { border: 0; background: transparent; color: var(--danger); font-weight: 800; cursor: pointer; }
    .compact-button {
      min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px;
      background: #102036; color: #dce8f4; font-size: 12px; font-weight: 850; cursor: pointer;
    }
    .compact-button.primary { border: 0; background: var(--gold); color: #06101a; }
    .compact-button:disabled { opacity: .45; cursor: not-allowed; }
    .cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
    .order-summary { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #0b1726; }
    .summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--muted); font-size: 13px; }
    .summary-row.total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: #fff; font-size: 16px; font-weight: 900; }
    .empty-state { padding: 52px 20px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; color: var(--muted); }
    .status-pill { padding: 5px 8px; border-radius: 6px; background: #14243a; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
    .status-pill.available { color: var(--gold); }
    .status-pill.delivering { color: var(--blue); }
    .status-pill.claimed, .status-pill.ok { color: var(--green); }
    .status-pill.error { color: var(--danger); }
    .segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #08121f; gap: 3px; }
    .segmented button { height: 32px; padding: 0 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 850; cursor: pointer; }
    .segmented button.active { color: #06101a; background: var(--gold); }
    .history-amount { font-size: 14px; font-weight: 900; white-space: nowrap; }
    .history-amount.positive { color: var(--green); }
    .history-amount.negative { color: var(--danger); }

    /* TOAST */
    .toast {
      position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: min(430px, calc(100% - 44px));
      padding: 14px 18px; border: 1px solid #34516e; border-radius: 14px; background: #102035; color: #dce7f2;
      box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: 0.22s ease;
    }
    .toast.show { opacity: 1; transform: none; }
    .toast.error { border-color: rgba(255,107,126,0.6); color: #ffd4da; }

    @media (max-width: 900px) {
      .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .topup-layout { grid-template-columns: 1fr; }
      .select-grid { grid-template-columns: 1fr; }
      .servers-grid { grid-template-columns: 1fr; }
      .cart-layout { grid-template-columns: 1fr; }
    }
    @media (max-width: 600px) {
      .grid { grid-template-columns: 1fr; }
      .topbar { flex-direction: column; align-items: flex-start; }
      .data-row { grid-template-columns: 1fr; }
      .row-actions { justify-content: flex-start; }
    }
  
    /* PAYMENT CONFIRMATION POPUP */
    .payment-modal {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: none;
      place-items: center;
      padding: 20px;
      background: rgba(2, 8, 15, 0.80);
      backdrop-filter: blur(10px);
    }

    .payment-modal.show {
      display: grid;
    }

    .payment-modal-card {
      position: relative;
      width: min(440px, 100%);
      padding: 34px 30px 28px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: linear-gradient(165deg, #101f33, #08121f);
      box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
      text-align: center;
    }

    .payment-modal-close {
      position: absolute;
      top: 12px;
      right: 14px;
      width: 34px;
      height: 34px;
      border: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.06);
      color: var(--muted);
      font-size: 22px;
      cursor: pointer;
    }

    .payment-modal-close:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.12);
    }

    .payment-modal-icon {
      width: 76px;
      height: 76px;
      margin: 0 auto 20px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      font-size: 38px;
      font-weight: 900;
    }

    .payment-modal-icon.checking {
      background: rgba(94, 216, 255, 0.10);
      border: 1px solid rgba(94, 216, 255, 0.30);
    }

    .payment-modal-icon.success {
      color: var(--green);
      background: rgba(77, 230, 166, 0.10);
      border: 1px solid rgba(77, 230, 166, 0.35);
      box-shadow: 0 0 34px rgba(77, 230, 166, 0.15);
    }

    .payment-modal-icon.pending {
      color: var(--gold);
      background: rgba(255, 204, 93, 0.10);
      border: 1px solid rgba(255, 204, 93, 0.35);
    }

    .payment-spinner {
      width: 38px;
      height: 38px;
      border: 4px solid rgba(94, 216, 255, 0.18);
      border-top-color: var(--blue);
      border-radius: 50%;
      animation: paymentSpin 0.8s linear infinite;
    }

    @keyframes paymentSpin {
      to { transform: rotate(360deg); }
    }

    .payment-modal-card h3 {
      margin: 0 0 10px;
      font-size: 22px;
    }

    .payment-modal-card p {
      min-height: 48px;
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65;
    }

    .payment-progress {
      height: 5px;
      margin: 22px 0 4px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.07);
    }

    .payment-progress span {
      display: block;
      width: 5%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--blue2), var(--blue));
      transition: width 0.35s ease;
    }
