/* ================= Eternity site: admin panel ================= */
.adm { max-width: 1060px; }
.adm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.adm-stat { padding: 18px 20px; border-radius: 22px; border: 1px solid var(--bd); background: var(--glass); display: flex; flex-direction: column; gap: 2px; }
.adm-stat b { font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.adm-stat span { font-size: 13px; color: var(--mut); }

.adm-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--glass); border: 1px solid var(--bd); margin-bottom: 16px; max-width: 100%; overflow-x: auto; }
.adm-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; font-size: 14px; color: var(--mut); white-space: nowrap; transition: color .2s, background .2s; }
.adm-tabs button svg { width: 16px; height: 16px; }
.adm-tabs button:hover { color: var(--fg); }
.adm-tabs button.on { background: var(--glass2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--bd); }

.adm-card { padding: 22px; border-radius: 26px; border: 1px solid var(--bd); background: var(--glass); }
.adm-card h4 { margin: 0 0 16px; font-size: 18px; }
.adm-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }

.adm input, .adm-sheet input { width: 100%; font: inherit; font-size: 14px; color: var(--fg); background: var(--glass); border: 1px solid var(--bd); border-radius: 12px; padding: 10px 12px; outline: none; transition: border-color .2s, background .2s; }
.adm input:focus, .adm-sheet input:focus { border-color: var(--bd2); background: var(--glass2); }
.adm-act input { flex: 1; min-width: 180px; width: auto; }
.adm .fl, .adm label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mut); }
.adm-search { margin-bottom: 14px; }

.adm-table { display: flex; flex-direction: column; }
.adm-row { display: grid; grid-template-columns: 90px minmax(0, 1.6fr) 130px 150px minmax(0, 1.2fr); gap: 12px; align-items: center; width: 100%; padding: 12px 10px; border-top: 1px solid var(--bd); text-align: left; font-size: 14px; border-radius: 0; transition: background .2s; }
.adm-row.head { color: var(--mut2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-top: 0; padding-top: 4px; }
button.adm-row:hover { background: var(--glass); }
.adm-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-row .who { display: flex; flex-direction: column; }
.adm-row .who small { color: var(--mut); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 13px; }
.dim { color: var(--mut); }
.ok { color: var(--fg); font-weight: 600; }
.off { color: var(--mut); }
.adm-empty { padding: 26px 8px; text-align: center; color: var(--mut); font-size: 14px; }

.demo-tag { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--bd2); color: var(--mut); vertical-align: 2px; margin-left: 4px; }

.adm-sheet { max-width: 520px; max-height: 92vh; overflow-y: auto; }
.adm-sheet .kv > div { font-size: 14px; }
.adm-act { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-act .btn { padding: 10px 18px; }
.adm-act .btn:disabled { opacity: .4; cursor: not-allowed; }

.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.adm-item { display: grid; grid-template-columns: 84px 1fr 1fr 34px; gap: 8px; margin-bottom: 8px; }
.adm-item .cs { min-width: 0; }
.adm-two .cs { width: 100%; }
.btn-danger { background: rgba(255,90,90,.12); color: #ff8a8a; border: 1px solid rgba(255,90,90,.35); }
.btn-danger:hover { background: rgba(255,90,90,.2); }
.ban-tag { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: rgba(255,90,90,.15); color: #ff8a8a; border: 1px solid rgba(255,90,90,.35); vertical-align: 2px; margin-left: 4px; }
.adm-row.banned > span:not(:first-child) { opacity: .6; }
.adm-ban { padding: 12px 14px; border-radius: 14px; background: rgba(255,90,90,.08); border: 1px solid rgba(255,90,90,.28); display: flex; flex-direction: column; gap: 2px; }
.adm-ban b { color: #ff8a8a; }
.adm-ban small { color: var(--mut); font-size: 12px; }
.adm-item .mini-btn { width: 34px; height: 100%; font-size: 18px; line-height: 1; }
.adm-item .mini-btn:disabled { opacity: .35; cursor: not-allowed; }
.adm-ver { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--bd); }
.adm-ver:first-of-type { border-top: 0; }
.adm-ver small { display: block; color: var(--mut); font-size: 12px; }
.adm-ver .btn { padding: 8px 14px; font-size: 13px; }

.adm-log { display: flex; flex-direction: column; }
.adm-log > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--bd); font-size: 14px; }
.adm-log time { color: var(--mut); font-size: 13px; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
  .adm-grid { grid-template-columns: 1fr; }
  .adm-row { grid-template-columns: 70px minmax(0, 1fr) 120px; }
  .adm-row > span:nth-child(4), .adm-row > span:nth-child(5) { display: none; }
}
@media (max-width: 560px) {
  .adm-item { grid-template-columns: 1fr 34px; }
  .adm-item select { grid-column: 1 / -1; }
  .adm-log > div { grid-template-columns: 1fr; gap: 2px; }
  .adm-two { grid-template-columns: 1fr; }
}

/* promo codes / keys lists */
.adm-sub { margin: -6px 0 10px; color: var(--mut); font-size: 13px; }
.adm-keys { max-height: 540px; overflow-y: auto; margin-right: -8px; padding-right: 8px; }
.adm-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--bd); }
.adm-line:first-of-type { border-top: 0; }
.adm-line .al-main { display: flex; flex-direction: column; min-width: 0; }
.adm-line .al-main b { overflow: hidden; text-overflow: ellipsis; letter-spacing: .04em; }
.adm-line small { color: var(--mut); font-size: 12px; }
.adm-line .al-st { font-size: 13px; white-space: nowrap; }
.adm-line .al-act { display: flex; gap: 6px; }
.adm-line .al-act .btn { padding: 7px 12px; font-size: 13px; }
@media (max-width: 700px) { .adm-line { grid-template-columns: 1fr auto; } .adm-line .al-act { grid-column: 1 / -1; } }
