#dw-withdraw-root {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: #1a1c2e;
  display: none;
  flex-direction: column;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #f5f5f5;
  overflow: hidden;
}
#dw-withdraw-root.is-open { display: flex; }
html.dw-withdraw-active #root,
html.dw-withdraw-active #app {
  visibility: hidden !important;
  pointer-events: none !important;
}
html.dw-withdraw-active body { overflow: hidden !important; }

.dw-wd-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #EDD188, #C79744);
  color: #252628;
  flex-shrink: 0;
}
.dw-wd-back {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  color: #252628;
  font-weight: 700;
}
.dw-wd-title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}
.dw-wd-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 28px;
}
.dw-wd-card {
  background: #252628;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #3A3D50;
}
.dw-wd-balance {
  font-size: 15px;
  font-weight: 700;
  color: #EDD188;
  margin-bottom: 14px;
}
.dw-wd-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #c9c9c9;
  margin: 10px 0 6px;
}
.dw-wd-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #4F5163;
  background: #1a1c2e;
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  outline: none;
}
.dw-wd-input:focus { border-color: #EDD188; }
.dw-wd-submit {
  width: 100%;
  margin-top: 16px;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  background: linear-gradient(90deg, #EDD188, #C79744);
  color: #252628;
}
.dw-wd-submit:disabled { opacity: .6; }
.dw-wd-msg {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}
.dw-wd-msg.ok { background: rgba(29, 209, 116, .15); color: #1dd174; }
.dw-wd-msg.err { background: rgba(237, 46, 55, .15); color: #ff6b6b; }
.dw-wd-history {
  background: #252628;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #3A3D50;
}
.dw-wd-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.dw-wd-history-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #EDD188;
}
.dw-wd-history-refresh {
  border: 1px solid #4F5163;
  background: #3A3D50;
  color: #EDD188;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}
.dw-wd-history-empty {
  text-align: center;
  color: #888;
  padding: 16px;
  font-size: 13px;
}
.dw-wd-table-wrap { overflow-x: auto; }
.dw-wd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.dw-wd-table th,
.dw-wd-table td {
  border-bottom: 1px solid #3A3D50;
  padding: 8px 6px;
  text-align: left;
  white-space: nowrap;
}
.dw-wd-table th { color: #aaa; font-weight: 700; }
.dw-wd-table td.amt { color: #EDD188; font-weight: 700; }
.dw-wd-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.dw-wd-status.pending { background: rgba(237,209,136,.2); color: #EDD188; }
.dw-wd-status.approved,
.dw-wd-status.completed { background: rgba(29,209,116,.2); color: #1dd174; }
.dw-wd-status.rejected { background: rgba(237,46,55,.2); color: #ff6b6b; }
