/* MAHAHANG999 own deposit overlay — gold/black, not mother template */
/* ให้ปุ่มฝาก/ถอนใน footer คลิกได้แม้ยังไม่ล็อกอินแม่แบบ */
footer a[href*="deposit"],
footer a[href*="withdraw"],
footer button,
[class*="footer"] a[href*="deposit"],
[class*="bottom"] a[href*="deposit"],
a[href="/deposit"],
a[href="/withdraw"] {
  pointer-events: auto !important;
  cursor: pointer !important;
}

#mh-dep-root {
  --mh-gold: #e8c547;
  --mh-gold-soft: #f5d76e;
  --mh-ink: #0a0a0a;
  --mh-panel: #141210;
  --mh-panel-2: #1a160e;
  --mh-line: rgba(232, 197, 71, 0.35);
  --mh-text: #f5f0e6;
  --mh-muted: #a8a090;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  font-family: "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
}
#mh-dep-root.is-open {
  display: flex;
}
#mh-dep-root .mh-dep-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(166, 124, 0, 0.28), rgba(0, 0, 0, 0.82));
}
#mh-dep-root .mh-dep-sheet {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(232, 197, 71, 0.12), transparent 28%),
    linear-gradient(160deg, #1a160e 0%, #0a0a0a 55%, #050505 100%);
  border: 1px solid var(--mh-line);
  border-radius: 18px 18px 0 0;
  color: var(--mh-text);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.55);
  padding: 18px 18px 28px;
}
@media (min-width: 768px) {
  #mh-dep-root {
    align-items: center;
  }
  #mh-dep-root .mh-dep-sheet {
    border-radius: 18px;
    padding-bottom: 22px;
  }
}
#mh-dep-root .mh-dep-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
#mh-dep-root .mh-dep-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--mh-gold-soft);
  line-height: 1.1;
}
#mh-dep-root .mh-dep-sub {
  margin-top: 4px;
  color: var(--mh-muted);
  font-size: 0.92rem;
}
#mh-dep-root .mh-dep-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mh-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
#mh-dep-root .mh-dep-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}
#mh-dep-root .mh-dep-tab {
  border: 1px solid var(--mh-line);
  background: var(--mh-panel);
  color: var(--mh-muted);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
#mh-dep-root .mh-dep-tab.is-on {
  color: var(--mh-ink);
  background: linear-gradient(180deg, var(--mh-gold-soft), var(--mh-gold));
  border-color: transparent;
}
#mh-dep-root .mh-dep-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
#mh-dep-root .mh-dep-field span {
  font-size: 0.86rem;
  color: var(--mh-muted);
}
#mh-dep-root .mh-dep-field input,
#mh-dep-root .mh-dep-field select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--mh-line);
  background: var(--mh-panel-2);
  color: var(--mh-text);
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
}
#mh-dep-root .mh-dep-field input:focus,
#mh-dep-root .mh-dep-field select:focus {
  border-color: var(--mh-gold);
}
#mh-dep-root .mh-dep-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 14px;
}
#mh-dep-root .mh-dep-quick button {
  border: 1px solid var(--mh-line);
  background: transparent;
  color: var(--mh-gold-soft);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 600;
}
#mh-dep-root .mh-dep-actions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
#mh-dep-root .mh-dep-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font-weight: 800;
  cursor: pointer;
  font-size: 1rem;
}
#mh-dep-root .mh-dep-btn.primary {
  color: var(--mh-ink);
  background: linear-gradient(180deg, var(--mh-gold-soft), #c9a227);
}
#mh-dep-root .mh-dep-btn.ghost {
  color: var(--mh-gold-soft);
  background: transparent;
  border: 1px solid var(--mh-line);
}
#mh-dep-root .mh-dep-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#mh-dep-root .mh-dep-msg {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--mh-gold-soft);
}
#mh-dep-root .mh-dep-msg.is-err {
  color: #ff8f8f;
}
#mh-dep-root .mh-dep-card {
  border: 1px solid var(--mh-line);
  background: rgba(20, 18, 16, 0.9);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
#mh-dep-root .mh-dep-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--mh-gold-soft);
}
#mh-dep-root .mh-dep-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  padding: 4px 0;
}
#mh-dep-root .mh-dep-row b {
  color: var(--mh-text);
  word-break: break-all;
  text-align: right;
}
#mh-dep-root .mh-dep-qr {
  display: block;
  width: min(220px, 70%);
  margin: 10px auto;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}
#mh-dep-root .mh-dep-hide {
  display: none !important;
}
#mh-dep-root .mh-dep-login-note {
  color: var(--mh-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
