    
        :root {
            --bg: #0f1117;
            --bg-dark: #1a1d26;
            --bg-darker: #13161e;
            --accent: #0068ff;
            --accent-green: #2ecc71;
            --accent-red: #c0392b;
            --text: #e4e9f0;
            --text-muted: #9aa2b2;
            --border: #2a2d38;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: "Inter", sans-serif;
        }

        body {
            background: var(--bg);
            color: var(--text);
            line-height: 1.4;
            min-height: 100vh;
        }

        /* ---------- HEADER ---------- */
        header {
            background: var(--bg-dark);
            padding: 10px 24px;
            display: flex;
            align-items: center;
            gap: 32px;
            border-bottom: 1px solid var(--border);
            flex-direction: column;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 18px;
            white-space: nowrap;
        }

        nav a {
            color: var(--text-muted);
            text-decoration: none;
            margin-right: 24px;
            font-size: 14px;
            transition: 0.2s;
        }

        nav a.active,
        nav a:hover {
            color: #fff;
        }

        .user {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 44px;
            position: absolute;
            left: 80%;
        }

        /* ---------- MAIN LAYOUT ---------- */
        main {
            max-width: 1320px;
            margin: 0 auto;
            padding: 32px 24px;
        }

        h1 {
            font-size: 32px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 24px;
        }

        h1 .vip {
            font-size: 14px;
            color: var(--accent);
            font-weight: 600;
            vertical-align: top;
        }

        /* ---------- FILTER BAR ---------- */
        .filters {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        select,
        input[type="number"] {
            background: var(--bg-darker);
            border: 1px solid var(--border);
            color: var(--text);
            padding: 6px 8px;
            border-radius: 6px;
            font-size: 14px;
            min-width: 120px;
        }

/* ---------- DROPDOWN ---------- */
    .dropdown-container { position: relative; }
    .dropdown-btn {
      background: var(--accent);
      color: #fff;
      border: none;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .dropdown-panel {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      background: var(--bg-dark);
      border: 1px solid var(--border);
      border-radius: 8px;
      width: 220px;
      padding: 16px 18px 12px;
      display: none;
      flex-direction: column;
      z-index: 100;
    }
    .dropdown-panel.show { display: flex; }
    .dropdown-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
    .dropdown-list label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 17px; }
    .dropdown-list input { width: 18px; height: 18px; accent-color: var(--accent); }
    .dropdown-actions { display: flex; justify-content: space-between; margin-top: 20px; }
    .btn-reset {
      background: #6c757d;
      color: #fff;
      border: none;
      padding: 6px 18px;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
    }
    .btn-apply {
      background: var(--accent);
      color: #fff;
      border: none;
      padding: 6px 18px;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
    }


        .toggle {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            color: var(--text-muted);
            cursor: pointer;
            user-select: none;
        }

        .toggle input {
            accent-color: var(--accent);
        }

        .button {
            background: var(--accent);
            color: #fff;
            border: none;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            white-space: nowrap;
        }

        #timer {
            margin-left: auto;
            color: var(--text-muted);
            font-size: 14px;
        }



        /* ---------- TABLE ---------- */
        .table-wrapper {
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }

        thead {
            background: var(--bg-dark);
        }

        th {
            padding: 10px 12px;
            text-align: left;
            color: var(--text-muted);
            font-weight: 600;
            border-bottom: 1px solid var(--border);
            white-space: nowrap;
        }

        tbody tr {
            border-bottom: 1px solid var(--border);
        }
        
        tbody > tr{
            transition: background 0.2s;
        }

        /* підсвічуємо обидва рядки пари */
        tbody tr:hover,                         /* рядок під курсором                */
        tbody tr:hover + .second_tr,            /* якщо курсор на першому — другий   */
        tbody tr:not(.second_tr):has(+ .second_tr:hover) /* якщо курсор на .second_tr — перший */
        {
        background: rgba(255, 255, 255, 0.03);
        }



        td {
            padding: 10px 12px;
            vertical-align: top;
        }

        /* Badges */
        .badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-weight: 600;
            font-size: 13px;
            text-align: center;
            min-width: 58px;
            white-space: nowrap;
        }

        .badge.green {
            background: #1c4021;
            color: #13e25d;
        }

        .badge.red {
            background: #4d1d1d;
            color: #ff5a5a;
        }

        .badge.yellow {
            background: #454218;
            color: #f4e04d;
        }

        /* Flexible cells */
        .coin-cell {
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 600;
        }

        .pair-cell {
            display: flex;
            flex-direction: row;
            gap: 5px;
        }

        small {
            color: var(--text-muted);
            font-size: 12px;
        }
    



        /* вертикальні роздільники */
table th:not(:last-child),
table td:not(:last-child) {
  border-right: 1px solid var(--border);
}

/* монета-колонка з пошуковою іконкою */
.coin-col {
  position: relative;
  padding-right: 40px;            /* місце під іконку */
}
.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
}

/* назва монети (rowspan) */
.coin-name {
  font-weight: 600;
  color: #6fa2ff;
  vertical-align: middle;
}



/* CUSTOM */
.pair-cel a {
    color: #4c9aff;
}

.invisible {
    display: none;
}

#loader {
  width: 1.1em;
  height: 1.1em;
  border-radius: 50px;
  border-width: 2px;
  border-style: solid;
  border-bottom: white;
  border-left: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

table a {
    text-decoration: none;
    color: #0068ff;
}

.exchange_link {
    display: flex;
}

.exchange_link img {
    margin-right: 10px;
}