* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top, #1a1a1a, #050505);
    color: #eaeaea;
}
.server-info {
    margin-bottom: 25px;
}
.actions-dropdown {
  position: relative;
}

.actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  display: none;
  z-index: 999;
}
/* ===============================
   DISCORD BUTTON
=============================== */
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 12px 22px;        /* ← TAK SAMO JAK "Dodaj pole" */
  height: 40px;              /* ← WYMUSZONA RÓWNA WYSOKOŚĆ */

  border-radius: 14px;

  font-size: 14px;           /* ← TEN SAM FONT SIZE */
  font-weight: 700;
  line-height: 1;

  color: #fff;
  cursor: pointer;

  background: linear-gradient(135deg, #5865F2, #404EED);
  border: 1px solid rgba(255,255,255,.15);

  box-shadow:
    0 6px 18px rgba(88,101,242,.35),
    inset 0 1px 0 rgba(255,255,255,.15);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease;
}

.btn-discord:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);

  box-shadow:
    0 10px 26px rgba(88,101,242,.45),
    inset 0 1px 0 rgba(255,255,255,.2);
}

.btn-discord:active {
  transform: translateY(0);
  box-shadow:
    0 4px 12px rgba(88,101,242,.35) inset;
}

/* ICON SIZE MATCH */
.btn-discord svg,
.btn-discord .discord-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  flex-shrink: 0;
}


.actions-dropdown.open .actions-menu {
  display: block;
}

.actions-menu button {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  color: #eee;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.actions-menu button:hover {
  background: #1a1a1a;
}

.actions-menu button.action-ban {
  color: #ff6b6b;
}

.actions-menu button.action-admin {
  color: #ffd166;
}

.actions-menu button.action-balance {
  color: #6bcfff;
}
.users-search {
  margin-bottom: 12px;
}
.siewy-header {
  margin-bottom: 12px;
  display: flex;
  justify-content: flex-start;
}
.announcements-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.announcement-item {
  background: #111;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px #1f1f1f;
}

.announcement-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ann-date {
  font-size: 12px;
  opacity: 0.6;
}

.announcement-content {
  margin-bottom: 10px;
  line-height: 1.4;
}
.players-table th {
  text-align: left;
  font-weight: 600;
  opacity: 0.85;
}
.players-table-wrapper {
  max-height: 420px;      /* wysokość listy */
  overflow-y: auto;
  border-radius: 12px;
}
/* ===============================
   VEHICLES TABLE
=============================== */
.vehicles-table-wrapper {
  max-height: 420px;
  overflow-y: auto;
  border-radius: 12px;
}
.premium-table-wrapper {
  max-height: 360px;
  overflow-y: auto;
  margin-top: 10px;
}

.premium-table thead th {
  position: sticky;
  top: 0;
  background: #0f1115;
  z-index: 2;
}

.badge.premium {
  background: #ff9800;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  color: #000;
}

.premium-form {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.premium-form.hidden {
  display: none;
}

/* sticky header */
.vehicles-table thead th {
  position: sticky;
  top: 0;
  background: #0f1115;
  z-index: 2;
}

/* kolumny */
.vehicles-table td:nth-child(1) {
  color: #3aa9ff;
  font-weight: 600;
}

.vehicles-table td.price {
  color: #55ff99;
  font-weight: 600;
}

.vehicles-table td.hours {
  color: #ffb000;
}

/* scrollbar */
.vehicles-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.vehicles-table-wrapper::-webkit-scrollbar-thumb {
  background: #ff8a00;
  border-radius: 10px;
}

.vehicles-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #ffaa33;
}

/* Sticky header */
.players-table thead th {
  position: sticky;
  top: 0;
  background: #0f1115;
  z-index: 2;
}

/* Scrollbar (dark theme) */
.players-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.players-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.players-table-wrapper::-webkit-scrollbar-thumb {
  background: #ff8a00;
  border-radius: 10px;
}

.players-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #ffaa33;
}

.players-table td {
  vertical-align: middle;
}

.players-table td:nth-child(2),
.players-table td:nth-child(4) {
  text-align: center;
  width: 140px;
}

.players-table td:last-child {
  text-align: left;
  opacity: 0.8;
}

.announcement-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ann-empty {
  opacity: 0.6;
  padding: 20px;
  text-align: center;
}

.siewy-table th {
  text-align: left;
  font-weight: 600;
  opacity: 0.85;
}

.siewy-table th:last-child,
.siewy-table td:last-child {
  text-align: right;
  width: 100px;
}

.users-search input {
  width: 100%;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  color: #fff;
  outline: none;
}

.users-search input::placeholder {
  color: #888;
}

.users-search input:focus {
  border-color: #ff9800;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.status-pill.active {
  background: #1e7f43;
  color: #9cffc7;
}

.status-pill.banned {
  background: #7f1e1e;
  color: #ffb3b3;
}

.server-info.online {
    border-left: 5px solid #2ecc71;
}

.server-info.offline {
    border-left: 5px solid #e74c3c;
    opacity: .6;
}

.server-info h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-meta {
    display: flex;
    gap: 30px;
    margin-top: 10px;
    opacity: .9;
}

.status {
    font-size: 14px;
}
.servers-table-section {
    margin: 40px 0;
}

.servers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* odstęp między wierszami */
}

.servers-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
    color: #aaa;
    font-weight: 600;
}

.servers-table tbody tr {
    background: linear-gradient(145deg, #1a1a1a, #111);
    box-shadow: 0 6px 18px rgba(0,0,0,.45);
    transition: transform .15s ease, box-shadow .15s ease;
}

.servers-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.6);
}

.servers-table tbody tr.active {
    outline: 2px solid #ffa500;
}

.servers-table td {
    padding: 14px 16px;
    font-size: 14px;
    vertical-align: middle;
}

.servers-table td.id {
    width: 40px;
    opacity: .6;
}

.servers-table td.name a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.servers-table td.name a:hover {
    text-decoration: underline;
}

.servers-table td.players {
    font-weight: bold;
}

.status {
    font-weight: bold;
    font-size: 13px;
}

.status.online {
    color: #2ecc71;
}

.status.offline {
    color: #e74c3c;
}
/* ================= USERS TABLE ================= */

.section-title {
    margin-bottom: 16px;
    font-size: 20px;
}

.users-table-wrapper {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    text-align: left;
    padding: 14px;
    font-size: 13px;
    text-transform: uppercase;
    color: #aaa;
    border-bottom: 1px solid #222;
}

.users-table td {
    padding: 14px;
    border-bottom: 1px solid #1f1f1f;
    vertical-align: middle;
}

/* USER CELL */
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
}

/* EMAIL */
.user-email {
    font-size: 13px;
    color: #aaa;
}

/* ROLE BADGE */
.role-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
}

.role-badge.admin {
    background: rgba(255, 87, 34, 0.2);
    color: #ff5722;
}

.role-badge.user {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}
/* =========================
   RANKING SERWERA
========================= */

.ranking-server-block {
    margin: 40px 0;
    padding: 30px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255,153,0,.08), rgba(0,0,0,.85)),
        radial-gradient(circle at top left, rgba(255,153,0,.15), transparent 60%);
    box-shadow:
        0 0 0 1px rgba(255,153,0,.15),
        0 25px 60px rgba(0,0,0,.7);
    color: #fff;
}

/* ===== Tytuł ===== */
.ranking-server-block .server-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ff9800;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================
   PODIUM
========================= */

.podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.podium-place {
    padding: 18px 15px;
    border-radius: 14px;
    text-align: center;
    background: rgba(0,0,0,.55);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.05),
        0 10px 25px rgba(0,0,0,.6);
}

.podium-place .medal {
    font-size: 26px;
    margin-bottom: 8px;
}

.podium-place .nick {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

.podium-place .value {
    font-size: 14px;
    color: #ffcc80;
}

/* ===== Kolory podium ===== */
.place-1 {
    border: 1px solid rgba(255,215,0,.5);
    background: linear-gradient(180deg, rgba(255,215,0,.25), rgba(0,0,0,.6));
}

.place-2 {
    border: 1px solid rgba(180,180,180,.4);
    background: linear-gradient(180deg, rgba(200,200,200,.18), rgba(0,0,0,.6));
}

.place-3 {
    border: 1px solid rgba(205,127,50,.45);
    background: linear-gradient(180deg, rgba(205,127,50,.25), rgba(0,0,0,.6));
}

/* =========================
   LISTA 4–10
========================= */

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table tr {
    transition: background .2s ease;
}

.ranking-table td {
    padding: 10px 8px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.ranking-table tr:hover {
    background: rgba(255,153,0,.08);
}

.ranking-table td:first-child {
    width: 50px;
    color: #ff9800;
    font-weight: 600;
}

.ranking-table .val {
    text-align: right;
    color: #ffd180;
    font-weight: 600;
}
.assign-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.assign-box select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: none;
}
/* === VEHICLE PICKER === */
.vehicle-picker {
    position: relative;
    width: 320px;
    font-size: 14px;
}

.vp-input {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vp-input:hover {
    background: rgba(255,255,255,0.1);
}

.vp-arrow {
    opacity: .6;
}

.vp-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0f0f0f;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    z-index: 999;
    overflow: hidden;
}

.vehicle-picker.open .vp-dropdown {
    display: block;
}

.vp-search {
    width: 100%;
    padding: 10px 14px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.vp-list {
    max-height: 260px;
    overflow-y: auto;
}

.vp-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.vp-item:hover {
    background: rgba(255,152,0,0.15);
}

.vp-meta {
    opacity: .6;
    font-size: 12px;
}

/* scroll */
.vp-list::-webkit-scrollbar {
    width: 8px;
}
.vp-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,#ff9800,#ff6a00);
    border-radius: 10px;
}
/* === PLAYER PICKER === */
.player-picker {
    position: relative;
    width: 280px;
    font-size: 14px;
}

.pp-input {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pp-input:hover {
    background: rgba(255,255,255,0.1);
}

.pp-arrow {
    opacity: .6;
}

.pp-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0f0f0f;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    z-index: 999;
    overflow: hidden;
}

.player-picker.open .pp-dropdown {
    display: block;
}

.pp-search {
    width: 100%;
    padding: 10px 14px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.pp-list {
    max-height: 240px;
    overflow-y: auto;
}

.pp-item {
    padding: 10px 14px;
    cursor: pointer;
}

.pp-item:hover {
    background: rgba(255,152,0,0.15);
}

/* scroll */
.pp-list::-webkit-scrollbar {
    width: 8px;
}
.pp-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,#ff9800,#ff6a00);
    border-radius: 10px;
}
.site-footer {
  background: linear-gradient(180deg, #0b0f16, #06080d);
  color: #b8c1d1;
  margin-top: 60px;
  border-top: 1px solid #1c2233;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #9aa4c7;
  text-decoration: none;
  transition: 0.2s;
}

.footer-col a:hover {
  color: #4da3ff;
}

.server-status {
  font-weight: bold;
}

.server-status.online {
  color: #00e676;
}

.footer-bottom {
  text-align: center;
  padding: 15px;
  background: #05070b;
  font-size: 13px;
  color: #7e89a3;
  border-top: 1px solid #1c2233;
}

/* ===============================
   VEHICLES PANEL
=============================== */
/* ===============================
   VEHICLES PANEL – FINAL
=============================== */
.tab-content[data-tab="vehicles"] {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    min-height: 0;
}

/* ===== HEADER ===== */

.tab-content[data-tab="vehicles"] h2 {
    display: block;
    align-items: center;
    gap: 8px;
    color: #ff9f1a;
    font-size: 18px;
    font-weight: 700;
}

/* ===== FILTER BAR ===== */

.vehicle-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vehicle-filters select,
.vehicle-filters input {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.03)
    );
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border .2s, box-shadow .2s;
}

.vehicle-filters select:hover,
.vehicle-filters input:hover {
    border-color: #ff9f1a;
    box-shadow: 0 0 0 1px rgba(255,159,26,.4);
}

/* ===== SCROLL AREA ===== */

.vehicles-scroll {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.45),
            rgba(0,0,0,.25)
        );
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.05),
        0 8px 24px rgba(0,0,0,.4);
}

/* ===== SCROLLBAR ===== */

.vehicles-scroll::-webkit-scrollbar {
    width: 9px;
}

.vehicles-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
}

.vehicles-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff9800, #ff6a00);
    border-radius: 12px;
}

.vehicles-scroll {
    scrollbar-width: thin;
    scrollbar-color: #ff9800 rgba(255,255,255,0.05);
}

/* ===== TABLE ===== */

.vehicles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #eee;
}

.vehicles-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: linear-gradient(
        180deg,
        rgba(20,20,20,0.98),
        rgba(10,10,10,0.95)
    );
    padding: 12px 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 12px;
    color: #ffb347;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ===== ROWS ===== */

.vehicles-table tbody tr {
    transition: background .15s ease;
}

.vehicles-table tbody tr:hover {
    background: rgba(255,160,0,.08);
}

.vehicles-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    white-space: nowrap;
}

/* ===== COLUMN STYLES ===== */

.vehicles-table td:nth-child(1) {
    color: #7dd3fc;
    font-weight: 700;
}

.vehicles-table td:nth-child(2) {
    font-weight: 600;
}

.vehicles-table td:nth-child(4) {
    color: #86efac;
    font-weight: 700;
}

.vehicles-table td:nth-child(5) {
    color: #facc15;
}

/* ===== SORT INDICATORS ===== */

.vehicles-table th.sort-asc::after {
    content: " ▲";
    color: #ff9f1a;
}

.vehicles-table th.sort-desc::after {
    content: " ▼";
    color: #ff9f1a;
}

/* ===============================
   PREMIUM PANEL
=============================== */

.add-premium-form {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 15px;
}

.add-premium-form input {
    padding: 8px 10px;
    background: #0f0f0f;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
}

.add-premium-form input:focus {
    border-color: #f5a623;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #f5a623, #ffcc66);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* ===============================
   TABLE
=============================== */

.premium-grant-box {
  background: radial-gradient(circle at top, #101a2b, #05070b);
  border: 1px solid #1e2a40;
  border-radius: 18px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 0 30px rgba(255,179,0,0.08);
}

.premium-grant-box h3 {
  color: #ffb300;
  font-size: 18px;
  margin-bottom: 15px;
}

.premium-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.premium-form select,
.premium-form input {
  background: #05070b;
  border: 1px solid #1e2a40;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  min-width: 220px;
  font-size: 14px;
}

.premium-form select:focus,
.premium-form input:focus {
  outline: none;
  border-color: #ffb300;
  box-shadow: 0 0 0 2px rgba(255,179,0,0.25);
}
#grantPremiumBtn {
  background: linear-gradient(135deg, #ffb300, #ff9100);
  color: #000;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,179,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#grantPremiumBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255,179,0,0.45);
}
.premium-table-wrapper {
  max-height: 360px;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid #1e2a40;
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.premium-table thead th {
  position: sticky;
  top: 0;
  background: #05070b;
  color: #9fb3d1;
  text-transform: uppercase;
  font-size: 12px;
  padding: 14px;
  z-index: 2;
}

.premium-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #111a2c;
}

.premium-table tr:hover {
  background: rgba(255,179,0,0.04);
}
.premium-remove {
  background: transparent;
  border: none;
  color: #ff5252;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}

.premium-remove:hover {
  color: #ff1744;
  text-decoration: underline;
}
.premium-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.premium-table-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(#ffb300, #ff9100);
  border-radius: 10px;
}

.premium-table-wrapper::-webkit-scrollbar-track {
  background: #05070b;
}
#premiumOwned {
  background: #05070b;
  border: 1px solid #1e2a40;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  min-width: 260px;
}

.btn-sync {
    padding: 10px 16px;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.btn-sync:hover {
    background: #1e40af;
}
.btn-sync.loading {
    opacity: 0.6;
    pointer-events: none;
}
#syncStatus {
    margin-left: 12px;
    font-weight: 600;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .podium {
        grid-template-columns: 1fr;
    }

    .ranking-server-block {
        padding: 20px;
    }
}

.users-table-wrapper {
  max-height: 500px;        /* wysokość listy */
  overflow-y: auto;         /* SCROLL */
  border-radius: 12px;
  border: 1px solid #1c2233;
}

/* tabela normalna */
.users-table {
  width: 100%;
  border-collapse: collapse;
}

/* sticky header */
.users-table thead th {
  position: sticky;
  top: 0;
  background: #0b0f16;
  z-index: 2;
}

/* scrollbar */
.users-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.users-table-wrapper::-webkit-scrollbar-thumb {
  background: #2f81f7;
  border-radius: 10px;
}

.users-table-wrapper::-webkit-scrollbar-track {
  background: #05070b;
}

/* ===============================
   PLAYERS SCROLL LIST
================================ */

.players-scroll {
    max-height: 420px;           /* wysokość listy */
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 12px;
}
.players-search {
    margin-bottom: 12px;
}

.players-search input {
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 14px;
}

.players-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* ładny scroll (Chrome / Edge) */
.players-scroll::-webkit-scrollbar {
    width: 8px;
}

.players-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.players-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff9800, #ff6a00);
    border-radius: 10px;
}

/* Firefox */
.players-scroll {
    scrollbar-width: thin;
    scrollbar-color: #ff9800 rgba(255,255,255,0.05);
}
.players-scroll thead th {
    position: sticky;
    top: 0;
    background: rgba(15, 15, 15, 0.95);
    z-index: 2;
}

/* ================= BAN TOGGLE ================= */
.ban-toggle {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: .2s;
}

.ban-toggle.active {
    background: rgba(46,204,113,.2);
    color: #2ecc71;
}

.ban-toggle.banned {
    background: rgba(231,76,60,.25);
    color: #ff6b6b;
}

.ban-toggle:hover {
    transform: scale(1.06);
    filter: brightness(1.2);
}

/* === LOGI SKLEPU – SCROLL === */
.logs-scroll {
    max-height: 420px;          /* wysokość widoku */
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 12px;
}
.live-players-section {
    margin-top: 30px;
}

.live-players-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.live-players-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
}

.live-players-list li.admin {
    background: linear-gradient(135deg, #ff9f43, #ff6f00);
    color: #111;
    font-weight: 600;
}

.live-players-list .nick {
    flex: 1;
}

.live-players-list .badge {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 6px;
    background: #000;
    color: #fff;
    margin-left: 8px;
}

.live-players-list .time {
    font-size: 12px;
    opacity: .7;
    margin-left: 10px;
}

/* scrollbar – dark / premium */
.logs-scroll::-webkit-scrollbar {
    width: 8px;
}

.logs-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.logs-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff9f43, #ff6f00);
    border-radius: 10px;
}

/* Firefox */
.logs-scroll {
    scrollbar-width: thin;
    scrollbar-color: #ff9f43 rgba(255,255,255,0.05);
}

/* ===============================
   ANNOUNCEMENTS PANEL (PREMIUM)
=============================== */

.announcements-panel {
    background: radial-gradient(circle at top, #1b1b1b, #0b0b0b);
    border-radius: 22px;
    padding: 26px 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,165,0,.35);
    box-shadow:
        0 0 45px rgba(255,165,0,.2),
        inset 0 0 30px rgba(255,255,255,.02);
}

/* HEADER */
.announcements-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ff9800;
    margin-bottom: 22px;
}

/* LIST */
.announcements-list {
    display: grid;
    gap: 18px;
}

/* CARD */
.announcement-card {
    background: linear-gradient(145deg, #151515, #0f0f0f);
    border-radius: 16px;
    padding: 18px 22px;
    border-left: 4px solid #ff9800;
    box-shadow: 0 8px 25px rgba(0,0,0,.6);
    transition: transform .2s ease, box-shadow .2s ease;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0,0,0,.8);
}

/* TITLE */
.announcement-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffd36a;
    margin-bottom: 6px;
}

/* META */
.announcement-meta {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.announcement-meta .author {
    color: #ffb347;
    font-weight: 700;
}

/* CONTENT */
.announcement-content {
    font-size: 14px;
    line-height: 1.6;
    color: #ddd;
}


/* ================= ROLE TOGGLE ================= */
.role-toggle {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: .2s;
}

.role-toggle.admin {
    background: rgba(231,76,60,.25);
    color: #ff6b6b;
}

.role-toggle.user {
    background: rgba(76,175,80,.2);
    color: #4caf50;
}

.role-toggle:hover {
    transform: scale(1.06);
    filter: brightness(1.2);
}

/* BALANCE */
.user-balance {
    font-weight: bold;
    color: #ffd54f;
}

/* INPUT */
.wallet-amount {
    width: 100px;
    padding: 6px 8px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
}

/* HOVER */
.users-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* ===== DISCORD LOGIN BUTTON FIX ===== */
a.discord-login,
a.discord-login:visited,
a.discord-login:hover,
a.discord-login:active {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 18px 34px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #ff9f1a, #ffb347) !important;
    color: #111 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow:
        0 0 0 rgba(255,165,0,0),
        0 12px 30px rgba(0,0,0,.6) !important;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: discordPulse 2.8s infinite;
}
.login-center {
    display: flex;
    justify-content: center;
}
/* ===== TOP MENU ===== */
.top-menu {
    width: 100%;
    background: linear-gradient(to bottom, #111, #000);
    border-bottom: 2px solid #ffa500;
    box-shadow: 0 10px 25px rgba(0,0,0,.6);
}

.menu-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* LINKI */
.menu-links {
    list-style: none;
    display: flex;
    gap: 34px;
    margin: 0;
    padding: 0;
}

.menu-links li a {
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .3px;
    color: #ff9800;
    position: relative;
    transition: color .2s ease;
}

/* hover underline */
.menu-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #ff9800;
    transition: width .25s ease;
}

.menu-links li a:hover::after,
.menu-links li a.active::after {
    width: 100%;
}

.menu-links li a:hover {
    color: #ffd36a;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .menu-links {
        gap: 18px;
        font-size: 14px;
    }
}

/* ikona */
.discord-icon {
    width: 26px;
    height: 26px;
    background: url("https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/discord.svg") no-repeat center;
    background-size: contain;
    filter: invert(1);
}

/* hover */
a.discord-login:hover {
    transform: scale(1.06);
    box-shadow:
        0 0 25px rgba(255,165,0,.9),
        0 18px 45px rgba(0,0,0,.8) !important;
}

/* animacja */
@keyframes discordPulse {
    0%   { box-shadow: 0 0 0 rgba(255,165,0,0); }
    50%  { box-shadow: 0 0 28px rgba(255,165,0,.9); }
    100% { box-shadow: 0 0 0 rgba(255,165,0,0); }
}


/* animacja przyciągająca uwagę */
@keyframes discordPulse {
    0%   { box-shadow: 0 0 0 rgba(255,165,0,0); }
    50%  { box-shadow: 0 0 28px rgba(255,165,0,.9); }
    100% { box-shadow: 0 0 0 rgba(255,165,0,0); }
}

/* APP */
.app {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}
.wallet {
    margin-left: 15px;
    font-weight: bold;
    color: gold;
}

/* ===============================
   SESSION BAR (TOP HEADER)
=============================== */

.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  min-height: 110px;
  border-bottom: 1px solid rgba(255,152,0,.25);
}

/* ===============================
   LOGO (LEFT)
=============================== */

.logo-only {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-only img {
  height: 250px;               /* 🔥 DUŻE LOGO */
  width: auto;
  object-fit: contain;

  filter:
    drop-shadow(0 8px 26px rgba(255,152,0,.65))
    drop-shadow(0 0 24px rgba(255,152,0,.45));

  transition: transform .25s ease, filter .25s ease;
}
/* ===============================
   RANKING SEARCH
=============================== */

.ranking-search {
    margin: 18px 0 22px;
}

.ranking-search input {
    width: 100%;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
}
/* ===============================
   RANKING SCROLL
=============================== */

.ranking-scroll {
    max-height: 360px; /* reguluj */
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 6px;
}

/* scrollbar */
.ranking-scroll::-webkit-scrollbar {
    width: 6px;
}
.ranking-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 152, 0, 0.6);
    border-radius: 10px;
}
.ranking-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.ranking-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.ranking-search input:focus {
    outline: none;
    border-color: #ff9800;
}

.logo-only:hover img {
  transform: scale(1.05);
  filter:
    drop-shadow(0 12px 36px rgba(255,152,0,.8))
    drop-shadow(0 0 32px rgba(255,152,0,.6));
}

/* ===============================
   USER BOX (RIGHT)
=============================== */

.user-box {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 12px 18px;
  border-radius: 16px;

  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.user-box img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;

  box-shadow: 0 0 0 2px rgba(255,152,0,.6);
}

.user-box strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

/* ===============================
   WALLET
=============================== */

.wallet {
  margin-top: 2px;
  font-size: 14px;
  color: #ffb74d;
}

/* ===============================
   USER LINKS
=============================== */

.user-links {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.user-links a {
  font-size: 13px;
  font-weight: 600;
  color: #ff9800;
  text-decoration: none;
}

.user-links a:hover {
  text-decoration: underline;
}

/* ===============================
   LOGIN (RIGHT – WHEN LOGGED OUT)
=============================== */

.login-center {
  display: flex;
  align-items: center;
}

.discord-login {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 18px 30px;
  border-radius: 999px;

  font-size: 16px;
  font-weight: 800;
  letter-spacing: .3px;

  color: #111;
  background: linear-gradient(135deg, #ff9800, #ffc107);
  text-decoration: none;

  box-shadow:
    0 10px 28px rgba(255,152,0,.55),
    inset 0 1px 0 rgba(255,255,255,.5);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease;
}

.discord-login:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 14px 36px rgba(255,152,0,.7),
    inset 0 1px 0 rgba(255,255,255,.65);
}

/* Ikona Discord (opcjonalna) */
.discord-icon {
  width: 20px;
  height: 20px;
  background: url("assets/discord.svg") no-repeat center / contain;
}


/* SERVER TABS */
.server-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.server-tabs a {
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: #ff7a00;
    text-decoration: none;
    font-size: 13px;
    transition: .2s;
}

.server-tabs a.active,
.server-tabs a:hover {
    background: #ff7a00;
    color: #000;
}

/* CARDS */
.card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 35px;
    box-shadow:
        0 0 40px rgba(255,122,0,.12),
        inset 0 0 30px rgba(255,255,255,.02);
}

.card h2 {
    margin: 0 0 20px;
    color: #ff7a00;
    font-weight: 600;
}

.card h2 span {
    font-size: 13px;
    opacity: .6;
    margin-left: 8px;
}

/* TABLE */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ok.super {
    color: #ff7a00;
    font-weight: 700;
}
.btn.small {
    padding: 6px 10px;
    font-size: 12px;
}

.modern-table th {
    text-align: left;
    padding: 12px;
    color: #aaa;
    font-weight: 500;
}

.modern-table td {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.modern-table tr:hover {
    background: rgba(255,122,0,0.04);
}

.ok { color: #3dff8c; font-weight: 600; }
.no { color: #ff5c5c; font-weight: 600; }

/* TASKS */
.task-list-modern {
    display: grid;
    gap: 12px;
}

.task-item {
    background: rgba(255,255,255,0.04);
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 3px solid #ff7a00;
}

/* BUTTON */
.btn.primary {
    background: linear-gradient(135deg, #ff7a00, #ffa94d);
    color: #000;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}
/* ADMIN FORM */
.admin-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-form input {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
}

.admin-form input::placeholder {
    color: #aaa;
}
.toggle {
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-block;
    transition: .2s;
}
.siew-status {
    padding: 4px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}
.siew-select {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.siew-select option {
    background: #111;
}
/* DASHBOARD LAYOUT */
.dashboard {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
}

/* SIDEBAR */
.sidebar {
    background: linear-gradient(180deg, #0e0e0e, #0a0a0a);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(255,122,0,.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: fit-content;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    transition: .2s;
}

.tab-btn:hover {
    background: rgba(255,122,0,.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff7a00, #ffa94d);
    color: #000;
    border: none;
}

/* CONTENT */
.content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* TABS */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.siew-status:contains("PLAN") { color: #ffb347; }
.siew-status:contains("W TOKU") { color: #4da6ff; }
.siew-status:contains("ZAKOŃCZONE") { color: #3dff8c; }

.toggle:hover {
    background: rgba(255,122,0,.15);
}

.editable {
    cursor: pointer;
    border-bottom: 1px dashed rgba(255,255,255,.3);
}

.editable:hover {
    color: #ff7a00;
}

/* BUTTONS */
.btn.primary {
    background: linear-gradient(135deg, #ff7a00, #ffa94d);
    color: #000;
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.btn.danger {
    background: transparent;
    color: #ff5c5c;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* ADMIN TASK */
.admin-task {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* ===== FORCE TOP MENU FIX ===== */
.top-menu ul,
.top-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.top-menu ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 32px !important;
}

.top-menu li {
    display: inline-flex !important;
}

/* linki */
.top-menu a,
.top-menu a:visited,
.top-menu a:hover,
.top-menu a:active {
    color: #ff9800 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

/* ===============================
   WALLET INPUT (ADMIN)
=============================== */
/* ===============================
   WALLET TABLE
=============================== */
.wallet-row td {
    vertical-align: middle;
}

/* USER */
.wallet-user .name {
    font-weight: 600;
    color: #fff;
}

.wallet-user .email {
    font-size: 12px;
    color: rgba(255,255,255,.5);
}

/* BALANCE */
.wallet-balance {
    font-size: 16px;
    font-weight: 700;
    color: #2ecc71;
}

/* INPUT */
.wallet-input {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wallet-input input {
    width: 120px;
    padding: 10px 12px 10px 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(0,0,0,.4);
    color: #fff;
}

.wallet-input input:focus {
    outline: none;
    border-color: #ff9f1a;
    box-shadow: 0 0 0 2px rgba(255,159,26,.25);
}

.wallet-sign {
    position: absolute;
    left: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
}

/* ACTION */
.wallet-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* RANK BADGES */
.rank {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.rank.user {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.rank.vip {
    background: rgba(155,89,182,.25);
    color: #c77dff;
}

.rank.admin {
    background: rgba(231,76,60,.25);
    color: #ff6b6b;
}


/* hover underline */
.top-menu a::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -6px !important;
    width: 0 !important;
    height: 2px !important;
    background: #ff9800 !important;
    transition: width .25s ease !important;
}

.top-menu a:hover::after,
.top-menu a.active::after {
    width: 100% !important;
}
