.admin-header-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(226,13,24,.5);
  color: #fff;
  background: rgba(226,13,24,.08);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.admin-header-link:hover { background: var(--red); border-color: var(--red); }

.admin-main { padding-top: clamp(54px, 6vw, 88px); }
.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.admin-heading {
  margin: 17px 0 0;
  font-size: clamp(45px, 6vw, 78px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.admin-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 42px 0 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
}
.admin-nav a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid transparent;
  color: #7d7d7d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s, border-color .2s, background .2s;
}
.admin-nav a:hover { color: #fff; border-color: var(--line); }
.admin-nav a.active { color: #fff; border-color: var(--red); background: rgba(226,13,24,.09); }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.admin-stat {
  min-height: 156px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #0c0c0c;
}
.admin-stat span,
.admin-stat small {
  display: block;
  color: #6f6f6f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.admin-stat strong {
  display: block;
  margin: 25px 0 8px;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -.05em;
}
.admin-stat small { font-size: 8px; }

.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.admin-section {
  padding: 24px;
  border: 1px solid var(--line);
  background: #0b0b0b;
}
.admin-section-wide { margin-top: 12px; }
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.admin-section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -.04em;
}
.admin-section-head > a,
.admin-section-head > span {
  color: #777;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.admin-section-head > a:hover { color: #fff; }

.admin-list { border-top: 1px solid var(--line); }
.admin-list-row {
  min-height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.admin-list-row > div { min-width: 0; }
.admin-list-row strong,
.admin-list-row span { display: block; }
.admin-list-row strong {
  overflow: hidden;
  color: #d6d6d6;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-list-row > div > span {
  margin-top: 5px;
  overflow: hidden;
  color: #666;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-chip {
  width: max-content;
  display: inline-flex !important;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: #888;
  background: #0d0d0d;
  font-size: 8px !important;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-chip.red { color: #fff; border-color: rgba(226,13,24,.55); background: rgba(226,13,24,.12); }

.admin-table { min-width: 820px; }
.admin-table td strong { color: #e5e5e5; font-weight: 600; }
.admin-table td small { color: #666; font-size: 10px; }
.admin-table code {
  color: #cfcfcf;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}
.admin-users-table { min-width: 1120px; }
.admin-games-table { min-width: 1240px; }
.admin-sessions-table { min-width: 1350px; }
.admin-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-row-actions form { margin: 0; }
.admin-text-button,
.admin-text-link {
  padding: 0;
  border: 0;
  color: #bcbcbc;
  background: transparent;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.admin-text-button:hover,
.admin-text-link:hover { color: #fff; }
.admin-text-button.danger { color: #d94a51; }
.admin-text-button.danger:hover { color: #ff5962; }
.admin-muted { color: #626262; font-size: 10px; }

.admin-actions-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}
.admin-actions-line p { margin: 0; color: #767676; font-size: 13px; line-height: 1.6; }

.admin-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  gap: 12px;
}
.admin-form-panel { min-width: 0; }
.admin-form-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-help {
  padding: 28px;
  border: 1px solid var(--line);
  background: #0b0b0b;
}
.admin-help h2 {
  margin: 26px 0 15px;
  font-size: 34px;
  font-weight: 640;
  letter-spacing: -.05em;
}
.admin-help p { margin: 0; color: #777; font-size: 12px; line-height: 1.7; }

@media (max-width: 1040px) {
  .admin-header-link { display: none; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-form-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .admin-topbar .button { width: auto; }
  .admin-columns { grid-template-columns: 1fr; }
  .admin-actions-line { align-items: flex-start; flex-direction: column; }
  .admin-form-grid-two { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-section { padding: 18px; }
}

.admin-game-thumb {
  width: 46px;
  height: 64px;
  display: block;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #111;
}
.admin-text-button.delete { color: var(--red); }
.admin-text-button.delete:hover { color: #ff4e57; }
.field-hint {
  color: #626262;
  font-size: 10px;
  line-height: 1.55;
}
.field input[type="file"] {
  height: auto;
  min-height: 52px;
  padding: 12px 14px;
  color: #aaa;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 12px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  color: #fff;
  background: #131313;
  font: inherit;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.admin-cover-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #090909;
}
.admin-cover-preview img {
  width: 72px;
  aspect-ratio: .72;
  display: block;
  border: 1px solid var(--line);
  object-fit: cover;
}
.admin-cover-preview span,
.admin-cover-preview strong { display: block; }
.admin-cover-preview span {
  color: #686868;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.admin-cover-preview strong {
  margin-top: 7px;
  color: #d6d6d6;
  font-size: 12px;
  font-weight: 570;
}

.admin-accounts-table { min-width: 960px; }
.admin-finances-table { min-width: 980px; }
.admin-finance-stats .admin-stat strong { font-size: clamp(22px, 2.5vw, 36px); }
.admin-check-cell { display: flex; align-items: center; gap: 13px; }
.admin-check-cell form { margin: 0; }
.admin-check-button { width: auto; min-height: 36px; padding-inline: 14px; }
.admin-check-status {
  color: #656565;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-empty-prepared {
  max-width: 650px;
  padding: clamp(36px, 6vw, 76px) 0;
}
.admin-empty-prepared h2 {
  margin: 20px 0 13px;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 640;
  letter-spacing: -.05em;
}
.admin-empty-prepared p {
  margin: 0;
  color: #747474;
  font-size: 13px;
  line-height: 1.7;
}
.admin-placeholder-row td { color: #5f5f5f; }
.admin-placeholder-row .button:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}

.admin-check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 13px;
  align-items: start;
  padding: 17px;
  border: 1px solid var(--line);
  background: #090909;
  cursor: pointer;
}
.admin-check-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--red); }
.admin-check-row span { display: grid; gap: 6px; }
.admin-check-row strong { color: #e5e5e5; font-size: 11px; font-weight: 650; }
.admin-check-row small { color: #717171; font-size: 10px; line-height: 1.55; }

.admin-platform { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.admin-platform img { width: 26px; height: 26px; display: block; border: 1px solid var(--line); border-radius: 3px; object-fit: cover; }
.admin-platform span { color: #aaa; font-size: 10px; }

.admin-pool-restore-form {
  margin-top: 14px;
}
.admin-pool-restore-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(135deg, rgba(226,13,24,.09), rgba(255,255,255,.02));
}
.admin-pool-restore-card span,
.admin-pool-restore-card strong,
.admin-pool-restore-card p {
  display: block;
}
.admin-pool-restore-card span {
  color: #777;
  font-size: 8px;
  font-weight: 740;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.admin-pool-restore-card strong {
  margin-top: 7px;
  color: #f1f1f1;
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -.03em;
}
.admin-pool-restore-card p {
  max-width: 620px;
  margin: 7px 0 0;
  color: #767676;
  font-size: 11px;
  line-height: 1.55;
}
.admin-pool-restore-card .button {
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 16px;
  font-size: 10px;
}

@media (max-width: 760px) {
  .admin-pool-restore-card {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-pool-restore-card .button {
    width: 100%;
  }
}

/* SUPPORT ADMIN */
.admin-nav-count {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-left: 7px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 8px;
  line-height: 1;
}
.admin-support-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-support-head { align-items: center; }
.admin-support-head > div > span { display: block; margin-top: 6px; color: #666; font-size: 9px; }
.admin-support-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-support-filters a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: #777;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-support-filters a.active { border-color: var(--red); color: #fff; }
.admin-support-table { min-width: 900px; }
.admin-support-unread td { background: rgba(226, 13, 24, .025); }
.admin-support-ticket-link { display: grid; gap: 6px; }
.admin-support-ticket-link strong { color: #eee; font-size: 12px; }
.admin-support-ticket-link small { color: #666; font-size: 8px; letter-spacing: .08em; }
.admin-support-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 12px;
}
.admin-support-conversation { min-width: 0; }
.admin-support-messages { padding: 0; border: 1px solid var(--line); }
.admin-support-reply { padding: 24px 0 0; border-top: 0; }
.admin-support-side { display: grid; align-content: start; gap: 12px; }
.admin-support-user-card { display: grid; gap: 8px; }
.admin-support-user-card strong { font-size: 17px; }
.admin-support-user-card span { color: #aaa; font-size: 11px; }
.admin-support-user-card small { color: #666; font-size: 9px; }
.admin-support-meta-card { display: grid; gap: 20px; }
.admin-support-meta-card span { display: block; color: #666; font-size: 8px; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
.admin-support-meta-card strong { display: block; margin-top: 7px; font-size: 11px; }
@media (max-width: 900px) {
  .admin-support-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .admin-support-stats { grid-template-columns: 1fr; }
  .admin-support-head { align-items: flex-start; flex-direction: column; }
}

/* PROMO ADMIN */
.admin-promocodes-table { min-width: 1180px; }
.admin-promocode-activations-table { min-width: 900px; }
.admin-table .admin-chip + .admin-chip { margin-top: 6px; }
.admin-submit-button { width: 100%; margin-top: 24px; }
.admin-check-row-compact { min-height: 88px; align-content: center; }
.field textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  outline: 0;
  color: white;
  background: #090909;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  transition: border-color .2s ease;
}
.field textarea:focus { border-color: var(--line-strong); }
