/* Withdraw earnings page */

.we-head { padding-top: 0.25rem; }
.we-back { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
.we-back:hover { color: rgba(255, 255, 255, 0.85); }
.we-title { color: #fff; font-weight: 700; font-size: 1.25rem; }
.we-sub { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; }

/* Top cards now reuse Commissions' `ibd-stat-card` scheme */

.we-withdraw .cm-card-body { padding: 60px 100px; }
.we-form { max-width: 560px; padding: 0; }
.we-field { margin-bottom: 22px; }
.we-label { color: rgba(255, 255, 255, 0.70); font-size: 0.78rem; font-weight: 600; margin-bottom: 6px; }
.we-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.we-label-row-tight{ margin-bottom: 2px; }
.we-meta { color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; font-weight: 600; }
.we-meta-strong{ color: rgba(255,255,255,0.92); }
.we-inline-field{ display:flex; align-items:center; gap: 6px; }
.we-meta-inline{ white-space: nowrap; padding-left: 2px; font-size: 0.8rem; }

.we-dd-btn{
  background: transparent;
  border: 1px solid rgba(219, 233, 255, 0.35);
  border-radius: 9px;
  height: 42px;
  padding: 8px 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}
.we-dd-btn:hover,
.we-dd-btn:focus{
  background: rgba(255,255,255,0.04);
  color: #fff;
  box-shadow: none;
  border-color: rgba(219, 233, 255, 0.55);
}
.we-dd-menu{
  background: #282828;
  border: 1px solid rgba(219, 233, 255, 0.22);
  border-radius: 12px;
  padding: 6px;
}
.we-dd-item{
  color: rgba(255,255,255,0.88);
  border-radius: 10px;
  padding: 10px 10px;
  font-weight: 600;
  font-size: 0.86rem;
}
.we-dd-item:hover,
.we-dd-item:focus{
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.we-select,
.we-input {
  background: #131313 !important;
  border: 1px solid rgba(219, 233, 255, 0.35) !important;
  color: #fff !important;
  border-radius: 9px !important;
  height: 42px;
  padding-left: 14px;
}
.we-select:focus,
.we-input:focus {
  box-shadow: none !important;
  border-color: rgba(219, 233, 255, 0.55) !important;
}
.we-select option { background: #111; color: #fff; }
.we-input-muted { background: rgba(255, 255, 255, 0.30) !important; color: rgba(255, 255, 255, 0.85) !important; }

.we-currency {
  height: 42px;
  border-radius: 8px;
  background: #545454;
  border: 1px solid rgba(219, 233, 255, 0.22);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}
.we-flag { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.we-flag-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.we-cur { font-size: 0.92rem; }

.we-continue-btn {
  background: #0A5BE2;
  border: none;
  height: 44px;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
}
.we-continue-btn:hover { background: #094fca; }

/* OTP section (revealed after Continue) */
.we-otp{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  margin-top: 18px;
}
.we-otp.show{ display:flex; }
.we-otp-left{ min-width: 220px; }
.we-otp-title{ color: rgba(255,255,255,0.92); font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.we-otp-sub{ color: rgba(255,255,255,0.62); font-weight: 600; font-size: 0.82rem; line-height: 1.35; }
.we-otp-email{ color: rgba(255,255,255,0.85); }
.we-otp-right{ display:flex; align-items:center; justify-content:flex-end; gap: 8px; flex-wrap: nowrap; }
.we-otp-box{
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1.5px solid rgba(219,233,255,0.30);
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
  outline: none;
}
.we-otp-box:focus{
  border-color: rgba(219,233,255,0.60);
  box-shadow: 0 0 0 3px rgba(10, 91, 226, 0.18);
}

.we-step2{ display:none; margin-top: 12px; }
.we-step2.show{ display:block; }
.we-sel-title{
  color: rgba(255,255,255,0.90);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.we-acct{
  display:grid;
  grid-template-columns: 26px 1fr auto;
  align-items:center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(219,233,255,0.14);
  background: #2f2f2f;
  color:#fff;
  cursor:pointer;
  user-select:none;
  margin-bottom: 12px;
}
.we-acct-radio{ position:absolute; opacity:0; pointer-events:none; }
.we-acct-dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  display:inline-block;
  position: relative;
}
.we-acct-active{
  background: #DBE9FF;
  color:#101010;
  border-color: rgba(219,233,255,0.80);
}
.we-acct-active .we-acct-dot{
  border-color: #0A5BE2;
}
.we-acct-active .we-acct-dot::after{
  content:"";
  position:absolute;
  inset: 3px;
  border-radius: 50%;
  background: #0A5BE2;
}
.we-acct-main{ font-weight: 600; }
.we-acct-end{ font-weight: 600; font-size: 0.78rem; opacity: 0.95; }

.we-note{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  margin: 12px 0 18px;
  color: rgba(255,255,255,0.70);
  font-weight: 600;
  font-size: 0.82rem;
}
.we-note-ic{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: #ffbf2f;
  color:#111;
  font-size: 0.78rem;
  font-weight: 800;
  flex: 0 0 auto;
  margin-top: 2px;
}

.we-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.we-back-btn{
  height: 48px;
  border-radius: 10px;
  border: 0;
  background: rgba(255,255,255,0.85);
  color:#111;
  font-weight: 600;
}
.we-submit-btn{
  height: 48px;
  border-radius: 10px;
  border: 0;
  background: #0A5BE2;
  color:#fff;
  font-weight: 600;
}
.we-submit-btn:hover,
.we-submit-btn:focus{
  background: #094fca;
  color:#fff;
}

/* Success modal */
.we-success-modal .modal-dialog{ max-width: 480px; }
.we-success-modal .modal-dialog{ margin-top: 34px; }
.we-success-content{
  border-radius: 18px;
  border: 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.we-success-x{
  position:absolute;
  right: 18px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 0;
  background: rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.65);
  display:grid;
  place-items:center;
}
.we-success-body{ padding: 26px 24px 22px; text-align: center; }

/* ── Success illustration (match existing pattern) ── */
.success-illus-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.success-illus-img {
  width: 280px;
  height: auto;
  object-fit: contain;
  display: block;
}
.we-success-title{
  font-weight: 700;
  color: #111;
  font-size: 1.35rem;
  line-height: 1.18;
  margin: 0 0 10px;
}
.we-success-sub{
  color: rgba(0,0,0,0.58);
  font-weight: 500;
  font-size: 0.85rem;
  max-width: 420px;
  margin: 0 auto 18px;
}
.we-success-btn{
  width: min(260px, 100%);
  height: 54px;
  border-radius: 10px;
  background: #0A5BE2;
  border: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 10px auto 0;
}
.we-success-btn:hover{ background: #094fca; color:#fff; }

/* Step-2: keep the steps card/illustration full-size like screenshot */
.we-steps.we-steps-step2 .we-illus{
  width: min(460px, 90%);
  height: 270px;
  bottom: 18px;
}

.we-bg-gray{
  background: #545454 !important;
  border-color: rgba(219, 233, 255, 0.22) !important;
}
.we-clear{
  background: transparent !important;
  border-color: rgba(219, 233, 255, 0.35) !important;
}

.we-steps {
  height: 520px;
  border-radius: 18px;
  background: #1f1f1f;
  border: 1px solid rgba(219, 233, 255, 0.14);
  padding: 22px 24px 22px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.we-steps-title { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 22px; }

.we-step-list { display: grid; gap: 26px; position: relative; z-index: 2; }
.we-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.we-step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  color: #6b7280;
  background: #fff;
  position: relative;
  z-index: 2;
}
.we-step-dot i{ font-size: 1rem; color: #6b7280; }
.we-step-active .we-step-dot {
  background: #fff;
  color: #0A5BE2;
  box-shadow: 0 0 0 3px #0A5BE2;
}
.we-step-active .we-step-dot i{ color: #0A5BE2; }
.we-step-k { color: rgba(255, 255, 255, 0.50); font-size: 0.78rem; font-weight: 400; margin-bottom: 2px; }
.we-step-v { color: #fff; font-size: 0.95rem; font-weight: 500; }
.we-step-list::before{
  content:"";
  position:absolute;
  left: 17.25px;
  top: 42px;
  width: 1.5px;
  height: 38px;
  background: rgba(255,255,255,0.22);
  z-index: 1;
}

.we-illus {
  position: absolute;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 22px;
  width: min(420px, 86%);
  height: 240px;
  pointer-events: none;
  z-index: 1;
}
.we-illus-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0.92;
  filter: saturate(1.05);
}

/* Recent withdrawals table now reuses Commissions' `cm-card` + `cm-table` */
.we-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.2px;
}
.we-status-ok {
  background: #8BE59F;
  color: #08210f;
  border: 1px solid rgba(8, 33, 15, 0.18);
  box-shadow: 0 10px 18px rgba(157, 255, 180, 0.12);
  border-radius: 8px;
}

/* Table tweaks to match screenshot */
.we-recent .cm-table thead th{
  padding: 10px 14px;
  font-weight: 600;
}
.we-recent .cm-table tbody td{
  padding: 14px 14px;
}
.we-recent .cm-table tbody td:first-child,
.we-recent .cm-table tbody td:nth-child(6){
  font-weight: 700;
}
.we-recent .cm-table tbody td:last-child{
  text-align: center;
}

.we-recent .cm-download-btn{ font-weight: 600; }

.we-amt,
.we-wacct{ color: #fff !important; font-weight: 600; }

.we-dt{ color: rgba(255,255,255,0.80); font-weight: 600; }

.we-pager-out{
  padding: 0 14px;
}
.we-perpage{
  display:flex;
  align-items:center;
  gap: 10px;
}
.we-perpage-select{
  height: 34px;
  min-width: 56px;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #111;
}
.we-perpage span{
  color: rgba(255,255,255,0.60);
  font-size: 0.78rem;
  font-weight: 600;
}

.we-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
  color: rgba(255,255,255,0.60);
  font-size: 0.78rem;
}
.we-perpage { display:flex; gap: 8px; align-items: center; }
.we-perpage span { color: rgba(255,255,255,0.45); font-weight: 600; }
.pagination .page-link {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.78);
}
.pagination .page-item.active .page-link {
  background: rgba(255,255,255,0.92);
  color: #111;
  border-color: rgba(255,255,255,0.85);
}
.pagination .page-item.disabled .page-link { opacity: 0.45; }

/* ── Responsive breakpoints ── */

/* Large desktop (≤1399px) */
@media (max-width: 1399.98px) {
  .we-withdraw .cm-card-body { padding: 50px 70px; }
}

/* Desktop / small laptop (≤1199px) */
@media (max-width: 1199.98px) {
  .we-withdraw .cm-card-body { padding: 40px 50px; }
  .we-form { max-width: none; }
  .we-steps { padding: 20px 22px; height: 480px; min-height: 480px; }
  .we-steps-title { font-size: 1rem; margin-bottom: 18px; }
  .we-illus { width: min(380px, 86%); height: 220px; bottom: 18px; }
}

/* Tablet (≤991px) */
@media (max-width: 991.98px) {
  .we-withdraw .cm-card-body { padding: 32px 36px; }
  .we-steps { padding: 22px 24px; height: auto; min-height: auto; }
  .we-illus { display: none; }
  .we-step-list::before { height: 30px; top: 40px; }
  .we-recent .cm-table thead th,
  .we-recent .cm-table tbody td { padding: 10px 12px; font-size: 0.82rem; }
  .we-pager { flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
}

/* Small tablet (≤767px) */
@media (max-width: 767.98px) {
  .we-withdraw .cm-card-body { padding: 24px 22px; }
  .we-form { padding: 0; }
  .we-field { margin-bottom: 16px; }
  .we-title { font-size: 1.1rem; }
  .we-sub { font-size: 0.82rem; }
  .we-dd-btn { height: 40px; font-size: 0.84rem; }
  .we-input,
  .we-select { height: 40px; font-size: 0.84rem; }
  .we-currency { height: 40px; }
  .we-continue-btn { height: 42px; font-size: 0.9rem; }
  .we-amtrow { row-gap: 12px; }
  .we-pager-out { padding: 0 8px; }
  .we-pager { padding: 10px 8px 12px; }
}

/* Mobile (≤575px) */
@media (max-width: 575.98px) {
  .we-withdraw .cm-card-body { padding: 18px 14px; }
  .we-steps { padding: 16px 14px; }
  .we-step-list { gap: 18px; }
  .we-step { grid-template-columns: 38px 1fr; gap: 10px; }
  .we-step-dot { width: 32px; height: 32px; }
  .we-step-list::before { left: 15.25px; top: 38px; height: 24px; }
  .we-step-v { font-size: 0.88rem; }
  .we-step-k { font-size: 0.72rem; }
  .we-steps-title { font-size: 0.95rem; margin-bottom: 16px; }
  .we-flag-img { width: 20px; height: 20px; }
  .we-cur { font-size: 0.85rem; }
  .we-pager { flex-direction: column; align-items: flex-start; gap: 10px; }
  .we-otp{ flex-direction: column; align-items: stretch; }
  .we-otp-right{ justify-content: flex-start; gap: 8px; }
  .we-otp-box{ width: 40px; height: 42px; font-size: 1.15rem; }
  .we-actions{ grid-template-columns: 1fr; }
}

