/* Withdrawal — cash desk layout */

.wd-page {
  max-width: none;
  width: 100%;
}

.wd-intro {
  margin-bottom: 1.1rem;
}

.wd-crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.wd-crumb a:hover { color: var(--brand); }

.wd-crumb i,
.wd-crumb svg {
  width: 13px !important;
  height: 13px !important;
  opacity: 0.5;
}

.wd-crumb strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.wd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--coral, #e76f51) 12%, #fff);
  color: var(--coral, #be123c);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--coral, #e76f51) 22%, #fff);
}

.wd-kicker i,
.wd-kicker svg {
  width: 13px !important;
  height: 13px !important;
}

.wd-intro .page-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wd-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.wd-balance {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 1.35rem 1.4rem;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 100% at 100% 0%, rgba(244, 63, 94, 0.28), transparent 55%),
    linear-gradient(125deg, #085041 0%, #00a67e 42%, #0b6e56 100%);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  box-shadow: 0 18px 40px rgba(0, 166, 126, 0.18);
}

.wd-balance__main small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236, 253, 245, 0.7);
  margin-bottom: 0.35rem;
}

.wd-balance__main strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.wd-balance__main > span {
  font-size: 0.84rem;
  color: rgba(236, 253, 245, 0.75);
}

.wd-balance__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 0.65rem;
  min-width: min(100%, 360px);
}

.wd-balance__meta article {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.wd-balance__meta small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(236, 253, 245, 0.65);
  margin-bottom: 0.2rem;
}

.wd-balance__meta strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.wd-incomes {
  margin-bottom: 1rem;
}

.wd-incomes__head {
  margin-bottom: 0.85rem;
}

.wd-incomes__head h2 {
  margin: 0 0 0.2rem;
  font-family: "Syne", sans-serif !important;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wd-incomes__head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.wd-income-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.wd-income-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.05rem 1.05rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.035);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.wd-income-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.06);
  border-color: color-mix(in srgb, var(--accent, var(--brand)) 35%, var(--line));
}

.wd-income-card.is-selected {
  border-color: color-mix(in srgb, var(--accent, var(--brand)) 45%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--brand)) 14%, transparent);
}

.wd-income-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.wd-income-card__ico {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent, var(--brand)) 12%, #fff);
  color: var(--accent, var(--brand));
  flex-shrink: 0;
}

.wd-income-card__ico i,
.wd-income-card__ico svg {
  width: 18px !important;
  height: 18px !important;
}

.wd-income-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.wd-income-card__link:hover {
  color: var(--accent, var(--brand));
  background: color-mix(in srgb, var(--accent, var(--brand)) 10%, #fff);
}

.wd-income-card__link i,
.wd-income-card__link svg {
  width: 12px !important;
  height: 12px !important;
}

.wd-income-card__body small {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.wd-income-card__body strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.wd-income-card__amount {
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent, var(--brand));
  line-height: 1.15;
}

.wd-income-card__bar {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--brand)) 12%, #e5e7eb);
  overflow: hidden;
  margin-top: 0.15rem;
}

.wd-income-card__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent, var(--brand));
}

.wd-income-card--referral { --accent: #00a67e; }
.wd-income-card--roi { --accent: #2a9d8f; }
.wd-income-card--binary { --accent: #3d5a80; }
.wd-income-card--sponsor { --accent: #12b886; }
.wd-income-card--rank { --accent: #b8954f; }
.wd-income-card--reward { --accent: #e76f51; }

.wd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.85fr);
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.wd-console {
  padding: 1.35rem 1.35rem 1.4rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.04);
}

.wd-console__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.wd-console__head h2 {
  margin: 0 0 0.25rem;
  font-family: "Syne", sans-serif !important;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wd-console__head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.wd-max {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wd-max:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 166, 126, 0.12);
}

.wd-max i,
.wd-max svg {
  width: 15px !important;
  height: 15px !important;
}

.wd-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wd-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.wd-input {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.85rem;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wd-input:focus-within {
  background: #fff;
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
}

.wd-input__prefix,
.wd-input__suffix {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.wd-input__suffix {
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.wd-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
  padding: 0.65rem 0;
}

.wd-input--tall {
  padding-left: 0.95rem;
}

.wd-input__ico {
  width: 18px !important;
  height: 18px !important;
  color: var(--brand);
  flex-shrink: 0;
}

.wd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.wd-chips button {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
  transition: 0.18s ease;
}

.wd-chips button:hover,
.wd-chips button.is-on {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: var(--brand-soft);
  color: var(--brand);
}

.wd-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.wd-select {
  width: 100%;
  min-height: 50px;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 550;
}

.wd-select:focus {
  outline: 0;
  background: #fff;
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
}

.wd-summary {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  border: 1px solid var(--line);
}

.wd-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.wd-summary span { color: var(--muted); }
.wd-summary strong { color: var(--ink); font-weight: 650; }

.wd-summary__total {
  padding-top: 0.55rem;
  margin-top: 0.15rem;
  border-top: 1px dashed color-mix(in srgb, var(--brand) 20%, var(--line));
}

.wd-summary__total strong {
  font-size: 1.15rem;
  color: var(--brand);
  font-weight: 750;
}

.wd-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, #fff);
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.wd-note i,
.wd-note svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.wd-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep, #0b6e56) 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 166, 126, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wd-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 166, 126, 0.34);
  filter: brightness(1.03);
}

.wd-submit i,
.wd-submit svg {
  width: 18px !important;
  height: 18px !important;
}

.wd-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wd-guide,
.wd-tips {
  padding: 1.2rem 1.15rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.035);
}

.wd-guide h3,
.wd-tips h3 {
  margin: 0 0 0.9rem;
  font-family: "Syne", sans-serif !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wd-guide ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wd-guide li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.wd-guide li > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.wd-guide strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
  color: var(--ink);
}

.wd-guide p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.wd-tips ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.wd-tips li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.wd-tips i,
.wd-tips svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.wd-history {
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.04);
}

.wd-history__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.wd-history__head h2 {
  margin: 0 0 0.2rem;
  font-family: "Syne", sans-serif !important;
  font-size: 1.15rem;
  font-weight: 700;
}

.wd-history__head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.wd-history__filters select {
  min-width: 140px;
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 0.84rem;
  font-weight: 550;
}

.wd-table-wrap {
  overflow-x: auto;
}

.wd-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.wd-table th {
  text-align: left;
  padding: 0.7rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.wd-table td {
  padding: 0.85rem 0.75rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  vertical-align: middle;
}

.wd-table tbody tr:hover td {
  background: #f8fafc;
}

.wd-amount {
  font-weight: 700;
  color: var(--ink);
}

.wd-wallet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.wd-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.wd-badge--paid {
  background: #e8f8f2;
  color: #00a67e;
}

.wd-badge--pending {
  background: #fff7ed;
  color: #c2410c;
}

.wd-badge--rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.wd-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.wd-empty i,
.wd-empty svg {
  width: 28px !important;
  height: 28px !important;
  margin-bottom: 0.35rem;
  opacity: 0.55;
}

.wd-empty strong {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.wd-empty p {
  margin: 0;
  font-size: 0.84rem;
}

@media (max-width: 991.98px) {
  .wd-layout {
    grid-template-columns: 1fr;
  }

  .wd-balance__meta {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .wd-income-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .wd-balance__meta {
    grid-template-columns: 1fr;
  }

  .wd-income-grid {
    grid-template-columns: 1fr;
  }
}
