/* ============================================================
   COMPONENTS — shared UI elements used across multiple screens
   ============================================================ */

/* ---- Card ---- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  border: 1px solid var(--line-soft);
  border-radius: 18px;
}
.card__body { padding: 20px; }

/* ---- Button ---- */
.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 10px 26px -10px rgba(var(--pink-rgb), .7);
  transition: transform var(--ease), filter var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

.btn--ghost {
  background: var(--surface2);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--cyan); filter: none; }

.btn--cyan {
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  color: var(--on-cyan);
  box-shadow: 0 10px 26px -10px rgba(var(--cyan-rgb), .6);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--on-gold);
  box-shadow: 0 10px 26px -10px rgba(var(--gold-rgb), .6);
}

.btn--block  { width: 100%; }
.btn--sm     { padding: 9px 14px; font-size: 13.5px; }
.btn--lg     { padding: 14px 30px; font-size: 15.5px; border-radius: 14px; }
/* Nút icon vuông gọn (không chữ) — dùng cạnh input/nút khác */
.btn--icon           { flex: none; padding: 0; width: 38px; aspect-ratio: 1; }
.btn--icon.btn--sm   { width: 34px; }

/* ---- Tag / badge ---- */
.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(var(--cyan-rgb), .1);
  border: 1px solid rgba(var(--cyan-rgb), .25);
  padding: 4px 11px;
  border-radius: 20px;
  display: inline-block;
}

.tag--live {
  color: var(--red);
  background: rgba(var(--red-rgb), .12);
  border-color: rgba(var(--red-rgb), .3);
}

/* ---- Chip ---- */
.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---- Filter tabs (itabs / itab) ---- */
.itabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.itab {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--muted);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.itab:hover { color: var(--ink); }
.itab.is-active {
  color: var(--ink);
  background: var(--surface2);
  border-color: var(--pink);
}

/* ---- Form inputs ---- */
.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin: 14px 0 7px;
}

.inp {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--ink);
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--ease);
}
.inp:focus          { border-color: var(--pink); }
.inp::placeholder   { color: var(--faint); }

/* ---- Phân trang có số trang dùng chung (ví · doanh thu · lịch sử…) ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pager__btn {
  min-width: 34px; height: 34px; padding: 0 9px;
  border: 1px solid var(--line-soft); background: var(--surface2); color: var(--muted);
  border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.pager__btn:hover:not([disabled]):not(.is-active) { border-color: var(--violet); color: var(--ink); }
.pager__btn.is-active { border-color: var(--pink); background: rgba(var(--pink-rgb), .16); color: var(--on-accent); cursor: default; }
.pager__btn[disabled] { opacity: .4; pointer-events: none; }
.pager__nav { font-size: 17px; line-height: 1; }
.pager__gap { color: var(--faint); padding: 0 2px; font-weight: 700; }

/* ---- Chip-pick (multi-select chips) ---- */
.chip-pick {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.chip-pick button {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line-soft);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.chip-pick button:hover { border-color: var(--cyan); color: var(--ink); }
.chip-pick button:disabled { opacity: .45; cursor: not-allowed; }
.chip-pick button:disabled:hover { border-color: var(--line-soft); color: var(--muted); }
.chip-pick button.is-selected {
  border-color: var(--pink);
  color: var(--ink);
  background: linear-gradient(90deg, rgba(var(--pink-rgb), .14), transparent);
}

/* ---- Section header ---- */
.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 16px;
}
.sec-head h3 { font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -.3px; }
.sec-head__see {
  margin-left: auto;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 0;
}
.sec-head__see:hover { text-decoration: underline; }

.live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s infinite;
  flex-shrink: 0;
}

/* ---- Player cards grid ---- */
.pcards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pcard {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg2);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
  cursor: pointer;
  display: flex; flex-direction: column;   /* để footer bám đáy dù có/không slogan */
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  box-shadow: 0 22px 44px -20px rgba(var(--pink-rgb), .32);
}

.pcard__header {
  height: 250px;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 62px;
  text-shadow: 0 14px 34px rgba(var(--shadow-rgb), .4);
}
/* Scrim: vignette nhẹ trên + tối dần về đáy — thêm chiều sâu, đỡ "kẹo",
   đồng thời tăng độ đọc badge/status trên ảnh thật */
.pcard__header::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--bg-rgb), .14) 0%, rgba(var(--bg-rgb), 0) 32%, rgba(var(--bg-rgb), .34) 100%);
}

.pcard__badges {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.pcard__live-badge {
  background: var(--red);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pcard__live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--on-accent); }

.pcard__views-badge {
  margin-left: auto;
  background: rgba(var(--shadow-rgb), .5);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
}

.pcard__rank {
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 7px; color: #2A1500;
}
.pcard__rank--vip { background: linear-gradient(135deg, var(--gold), var(--gold2)); box-shadow: 0 4px 14px -4px rgba(var(--gold-rgb), .5); }
.pcard__rank--hot { background: linear-gradient(135deg, var(--pink), var(--red)); color: var(--on-accent); box-shadow: 0 4px 14px -4px rgba(var(--pink-rgb), .5); }

.pcard__new-badge {
  background: rgba(var(--cyan-rgb), .35);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
  margin-left: auto;
}

.pcard__status {
  position: absolute;
  bottom: 10px; right: 12px;
  z-index: 2;                       /* nổi trên scrim ::after */
  font-size: 11px; color: var(--on-accent);
  background: rgba(var(--shadow-rgb), .45);
  padding: 3px 9px;
  border-radius: 20px;
}
/* Trạng thái nhận đơn: bận (đơn dở) / tạm ngưng nhận — ưu tiên hơn Online */
.pcard__status--busy { background: rgba(var(--red-rgb), .82); font-weight: 700; }
.pcard__status--off  { background: rgba(var(--shadow-rgb), .6); color: var(--muted, #cbc6e8); }

.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__mini-av img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

/* Small circular avatar overlapping card header/body */
.pcard__mini-av {
  position: absolute;
  left: 12px; bottom: -16px;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 3px solid var(--bg2);
  display: grid; place-items: center;
  font-size: 18px;
  box-shadow: 0 8px 18px -6px rgba(var(--shadow-rgb), .6);
  z-index: 2;
}

.pcard__body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.pcard__body--with-av { padding-top: 22px; }

.pcard__name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15.5px; letter-spacing: -.1px; }
/* Slogan ngắn player — 1 dòng, tông pink phụ (như PlayerDuo), tự cắt nếu dài */
.pcard__tagline {
  margin-top: 3px; font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcard__game { color: var(--faint); font-size: 12.5px; margin-top: 4px;
  display: flex; align-items: center; gap: 6px; min-width: 0; }
/* Dãy LOGO thể loại (chỉ icon) — gọn, không xuống dòng */
.pcard__gicos { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.pcard__gico  { font-size: 15px; line-height: 1; display: inline-flex; }
.pcard__gimg  { width: 17px; height: 17px; border-radius: 5px; object-fit: cover; display: block; }
.pcard__gmore { font-size: 11px; color: var(--faint); font-weight: 600;
  background: rgba(var(--hl-rgb), .07); border-radius: 6px; padding: 1px 5px; }
.pcard__hires { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.pcard__footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
/* Sao KHÔNG đậm — glyph ★ + màu vàng đã đủ nổi (khác biệt bằng màu, không bằng weight) */
.pcard__rating  { color: var(--gold); font-size: 12.5px; font-weight: 400; opacity: .9; }
/* Giá nổi nhờ mono + màu vàng, chỉ cần 600 (không cần 700) */
.pcard__price   { margin-left: auto; font-family: var(--font-mono); font-weight: 600; color: var(--gold); font-size: 14px; }
.pcard__price small { color: var(--faint); font-weight: 600; font-size: 11px; }

/* ---- Thanh công cụ lọc / tìm / sắp xếp player ---- */
.pl-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.pl-search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 0 12px;
}
.pl-search input {
  flex: 1; border: 0; outline: none; background: none; color: var(--ink);
  font-family: var(--font-main); font-size: 14px; padding: 10px 0;
}
.pl-select {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px;
  color: var(--ink); font-family: var(--font-main); font-size: 13.5px; font-weight: 600;
  padding: 0 12px; height: 42px; cursor: pointer; outline: none; transition: var(--ease);
}
.pl-select:hover, .pl-search:focus-within { border-color: var(--violet); }
.pl-select option { background: var(--bg2); color: var(--ink); }
/* Nút bật/tắt lọc "Đang online" (dùng chung kiểu .pl-select) */
.pl-online.is-active {
  border-color: var(--green); color: var(--green);
  background: rgba(var(--green-rgb), .12); box-shadow: 0 0 10px rgba(var(--green-rgb), .18);
}
.pl-result { color: var(--muted); font-size: 13px; margin: 10px 2px 4px; }
.pl-result b { color: var(--ink); }

/* Icon thể loại dạng ảnh (emoji thì render text bình thường) */
.game-ico { width: 1.2em; height: 1.2em; border-radius: 5px; object-fit: cover; vertical-align: middle; display: inline-block; }

/* ---- Trình soạn thảo Giới thiệu (richtext) ---- */
.rte { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface2); overflow: hidden; }
.rte__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 7px 8px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.rte__btn { min-width: 30px; height: 30px; border: 1px solid var(--line-soft); background: var(--surface2); color: var(--ink); border-radius: 8px; cursor: pointer; font-size: 14px; transition: var(--ease); }
.rte__btn:hover { border-color: var(--violet); }
.rte__btn.is-active { background: var(--violet); border-color: var(--violet); color: var(--on-accent); }
.rte__sel { height: 30px; border: 1px solid var(--line-soft); background: var(--surface2); color: var(--ink); border-radius: 8px; font-size: 12.5px; cursor: pointer; padding: 0 4px; }
.rte__sel:not([value=""]):focus, .rte__sel.is-set { border-color: var(--violet); }
.rte__sel option { background: var(--bg2); }
.rte__colors { display: inline-flex; gap: 3px; margin: 0 2px; }
.rte__color { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(var(--hl-rgb), .35); cursor: pointer; padding: 0; transition: var(--ease); }
.rte__color:hover { transform: scale(1.15); }
.rte__color.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--on-accent); transform: scale(1.12); }
.rte__emoji-wrap { position: relative; }
.rte__emoji { position: absolute; z-index: 20; top: 34px; right: 0; width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-wrap: wrap; gap: 2px; box-shadow: 0 14px 30px -10px rgba(var(--shadow-rgb), .6); }
.rte__emoji[hidden] { display: none; }
.rte__emoji button { width: 36px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 18px; border-radius: 7px; }
.rte__emoji button:hover { background: var(--surface2); }
.rte__edit { min-height: 110px; max-height: 280px; overflow-y: auto; padding: 11px 13px; color: var(--ink); font-size: 14px; line-height: 1.6; outline: none; }
.rte__edit:empty:before { content: attr(data-placeholder); color: var(--faint); pointer-events: none; }

/* ---- Player sections (VIP / HOT / random) ---- */
.pl-sec { margin-top: 34px; }
.pl-sec:first-child { margin-top: 12px; }

.pl-sec__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; padding-left: 12px;
  border-left: 3px solid var(--line);
}
.pl-sec__icon { font-size: 20px; }
.pl-sec__head h3 { font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -.3px; }
.pl-sec__count {
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--surface2); border: 1px solid var(--line-soft);
  padding: 2px 11px; border-radius: 20px;
}

/* Phối màu phân biệt — CHỈ qua viền trái + pill; heading giữ màu chữ thường
   (kỷ luật màu: vàng chỉ dành cho tiền + VIP badge, không lan sang typography) */
.pl-sec--vip  .pl-sec__head { border-left-color: var(--gold); }
.pl-sec--hot  .pl-sec__head { border-left-color: var(--pink); }
.pl-sec--norm .pl-sec__head { border-left-color: var(--violet); }

/* Viền thẻ ánh theo vùng (tinh tế) */
.pl-sec--vip .pcard { border-color: color-mix(in srgb, var(--gold) 30%, var(--line-soft)); }
.pl-sec--vip .pcard:hover { border-color: var(--gold); box-shadow: 0 22px 44px -20px rgba(var(--gold-rgb), .45); }
.pl-sec--hot .pcard:hover { border-color: var(--pink); }

.pl-more { margin-top: 16px; }
.pl-more-wrap { text-align: center; margin-top: 16px; }

/* ---- Info banner ---- */
.info-banner {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(var(--violet-rgb), .12), transparent);
  border: 1px solid var(--line-soft);
}
.info-banner__icon { font-size: 18px; flex-shrink: 0; }
.info-banner p  { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.info-banner b  { color: var(--ink); }

/* ---- KYC note banner ---- */
.kyc-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  background: rgba(var(--gold-rgb), .08);
  border: 1px solid rgba(var(--gold-rgb), .25);
  color: var(--gold-tint);
}
.kyc-note--cyan {
  background: rgba(var(--cyan-rgb), .07);
  border-color: rgba(var(--cyan-rgb), .22);
  color: var(--cyan-tint);
}

/* ---- Price rows ---- */
.price-big {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}
.price-big small { font-size: 14px; color: var(--muted); font-weight: 500; }

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.price-row b { color: var(--ink); font-weight: 700; }

/* ---- Mini avatar (for tables etc) ---- */
.mini-av {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--on-cyan);
  vertical-align: middle;
  margin-right: 7px;
}

/* ---- Action button (table, modals) ---- */
.abtn {
  border: 0;
  border-radius: 8px;
  padding: 6px 11px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.abtn--ok { background: rgba(var(--green-rgb), .16); color: var(--green); }
.abtn--ok:hover { background: rgba(var(--green-rgb), .28); }
.abtn--no { background: rgba(var(--red-rgb), .14); color: var(--red); margin-left: 6px; }
.abtn--no:hover { background: rgba(var(--red-rgb), .26); }

/* ---- Status badge ---- */
.badge-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}
.badge-status--pending  { background: rgba(var(--gold-rgb), .16);  color: var(--gold);   }
.badge-status--ok       { background: rgba(var(--green-rgb), .16);  color: var(--green);  }
.badge-status--approved { background: rgba(var(--green-rgb), .16);  color: var(--green);  }
.badge-status--warn     { background: rgba(var(--red-rgb), .14); color: var(--red);    }
.badge-status--rejected { background: rgba(var(--red-rgb), .14); color: var(--red);    }
.badge-status--stream   { background: rgba(var(--pink-rgb), .14);  color: var(--pink);   }

/* ---- Toast notification ---- */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 99;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(var(--shadow-rgb), .6);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  white-space: nowrap;
}
.toast.is-visible { opacity: 1; }

/* ---- Lightbox (zoom ảnh) ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(var(--scrim-rgb), .92);
  backdrop-filter: blur(6px);
  display: none; place-items: center;
  padding: 40px; cursor: zoom-out;
}
.lightbox.is-open { display: grid; animation: fade-in .2s ease; }
.lightbox__img { max-width: 86vw; max-height: 88vh; border-radius: 14px; box-shadow: 0 24px 70px -20px rgba(var(--shadow-rgb),1); }

.lightbox__close,
.lightbox__nav {
  position: fixed;
  border: 0; cursor: pointer;
  background: rgba(var(--hl-rgb), .12);
  color: var(--on-accent);
  display: grid; place-items: center;
  transition: background var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(var(--hl-rgb), .28); }

.lightbox__close { top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }
.lightbox__nav   { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 28px; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

.lightbox__count {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--on-accent); font-weight: 700; font-size: 14px;
  background: rgba(var(--shadow-rgb), .5); padding: 6px 16px; border-radius: 20px;
}

/* ---- Hộp xác nhận (confirmDialog — thay confirm() mặc định) ---- */
.gl-confirm {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; padding: 20px;
  background: rgba(10, 8, 24, .62); backdrop-filter: blur(6px);
}
.gl-confirm.is-open { display: grid; animation: fade-in .16s ease; }
.gl-confirm__card {
  width: min(384px, 100%); background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 24px 24px 20px; text-align: center;
  box-shadow: 0 30px 80px -24px rgba(var(--shadow-rgb), .75), 0 0 0 1px rgba(var(--violet-rgb), .08);
  animation: gc-pop .2s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes gc-pop { from { transform: translateY(10px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.gl-confirm__title { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--ink); }
.gl-confirm__msg   { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 22px; }
.gl-confirm__btns  { display: flex; gap: 10px; }
.gl-confirm__btns .btn { flex: 1; }

.btn--danger {
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 10px 26px -10px rgba(var(--red-rgb), .7);
}

/* ---- KBD shortcut indicator ---- */
kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--muted);
}

/* ---- Responsive grid adjustments ---- */
@media (max-width: 1000px) { .pcards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .pcards { grid-template-columns: 1fr; } }

/* ── Nút TẢI LẠI dùng chung cho mọi trang lịch sử (donate/ví/đơn thuê/admin) ── */
.reload-btn {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--surface2); border: 1px solid rgba(var(--hl-rgb), .09);
  border-radius: 9px; font-size: 14px; cursor: pointer; line-height: 1;
  color: var(--muted); transition: var(--ease);
}
.reload-btn:hover { transform: translateY(-1px); border-color: var(--cyan); color: var(--cyan); }
.reload-btn:active { transform: translateY(0); }
.reload-btn.is-spin { animation: reloadSpin .6s ease; }
@keyframes reloadSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
