/* Additions for the live (ASP.NET) pages: elements that the static design did not have.
   Loaded after style.css by web/MasterPage.master. */

/* containers that member.js shows / hides with the hidden attribute
   (style.css gives several of them display:flex, which would override [hidden]) */
.wd-bank-list[hidden],
.wd-empty[hidden],
.wd-list-empty[hidden],
.wd-history-empty[hidden],
.dep-pg-bank[hidden],
.dep-coins[hidden],
.wd-warn[hidden] {
  display: none !important;
}

.mc-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 8px;
  color: var(--gray);
  font-size: 13px;
  text-align: center;
}

/* buttons waiting for a server response */
.is-busy {
  opacity: 0.6;
  cursor: progress !important;
}

/* login / register: captcha + Cloudflare Turnstile */
.field-captcha input {
  padding-right: 120px;
}

.captcha-img {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 104px;
  height: 34px;
  border-radius: 17px;
  object-fit: cover;
  background: #eef3ee;
  cursor: pointer;
  transform: translateY(-50%);
}

.modal-form .cf-turnstile {
  margin: 4px 0 10px;
}

/* login failure message, spelled out above the fields instead of a toast */
.auth-error {
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid #ffb3b0;
  border-radius: 8px;
  background: rgba(217, 48, 37, 0.85);
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.auth-error[hidden] {
  display: none;
}

/* login modal: replaces the design's recover password / download app tools */
.auth-help {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.auth-help a {
  color: #ffe14a;
  font-weight: 700;
  text-decoration: underline;
}

/* jQuery validate's per-field message, placed under the .field row (red on the green
   modal is unreadable, so it gets its own light pill) */
.modal-form label.error {
  margin: 0 8px 8px;
  padding: 3px 10px;
  border-radius: 10px;
  background: #fff1f0;
  color: #c62828;
  font-size: 12px;
}

.modal-form[hidden],
.modal-form [hidden] {
  display: none !important;
}

/* shown in place of the modal form once proc_register succeeds */
.auth-done {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-size: 16px;
}

/* bank logos returned by the back office */
.dep-bank-mark.img {
  background: #fff;
  overflow: hidden;
}

.dep-bank-mark.img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* member bank cards in the withdraw tab / drawers */
.wd-bank-list {
  margin-bottom: 14px;
}

.dep-pg-bank,
.dep-pg-promo {
  margin: 0 0 12px;
}

/* recent withdrawals */
.wd-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wd-history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4f8f4;
  font-size: 12px;
}

.wd-history-item span {
  color: var(--gray);
}

.wd-history-item strong {
  color: var(--text);
  text-align: right;
}

.wd-history-item em {
  grid-column: 1 / -1;
  color: var(--green-3);
  font-style: normal;
}

/* pending: cancel a new withdrawal request */
.pd-cancel {
  margin: 4px 16px 0;
  padding: 6px 14px;
  border: 1px solid #d64545;
  border-radius: 16px;
  background: #fff;
  color: #d64545;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* unread inbox messages */
.acct-inbox {
  position: relative;
}

.acct-inbox.has-unread::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 2px #fff;
}

/* promotions: back-office content and cards without a banner image */
.promo-detail-content img {
  max-width: 100%;
  height: auto;
}

.promo-detail-content table {
  width: 100%;
  border-collapse: collapse;
}

.promo-detail-content td,
.promo-detail-content th {
  padding: 6px 8px;
  border: 1px solid #ddd;
}

.promo-card-title {
  display: block;
  padding: 32px 16px;
  font-weight: 700;
  text-align: center;
}

/* slot lobby: loading / empty line in the game grid */
.slot-grid .slot-empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  color: #6b7a70;
}
