/* Dashboard payout-history redesign */
.dashboard-payouts-copy {
  max-width: 960px;
}

.dashboard-payouts-copy .dashboard-intro-title {
  background: linear-gradient(90deg, #fcd34d 0%, #f59e0b 52%, #f97316 100%);
  color: transparent;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 5px 16px rgba(245, 158, 11, 0.14));
}

.dashboard-payouts-copy + .p-3.rounded-4 {
  --payout-accent: #f59e0b;
  --payout-accent-bright: #fcd34d;
  --payout-accent-deep: #f97316;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.2rem !important;
  border: 1px solid rgba(245, 158, 11, 0.38) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 50% -38%, rgba(245, 158, 11, 0.16), transparent 43%),
    linear-gradient(145deg, #0d0a06 0%, #050505 58%, #020202 100%) !important;
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(245, 158, 11, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.dashboard-payouts-copy + .p-3.rounded-4::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--payout-accent) 22%,
    var(--payout-accent-bright) 52%,
    var(--payout-accent-deep) 80%,
    transparent
  );
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.48);
}

.dashboard-payouts-copy + .p-3.rounded-4::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  right: -130px;
  bottom: -155px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.09);
  filter: blur(8px);
}

.dashboard-payouts-copy + .p-3.rounded-4 > .table-responsive {
  position: relative;
  z-index: 1;
  border-radius: 15px;
  scrollbar-color: rgba(245, 158, 11, 0.62) rgba(255, 255, 255, 0.045);
  scrollbar-width: thin;
}

.dashboard-payouts-copy + .p-3.rounded-4 > .table-responsive::-webkit-scrollbar {
  height: 7px;
}

.dashboard-payouts-copy + .p-3.rounded-4 > .table-responsive::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.dashboard-payouts-copy + .p-3.rounded-4 > .table-responsive::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--payout-accent), var(--payout-accent-deep));
}

.dashboard-payouts-copy + .p-3.rounded-4 table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-border-color: transparent;
  min-width: 760px;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 8px 9px !important;
  background: transparent !important;
}

.dashboard-payouts-copy + .p-3.rounded-4 thead,
.dashboard-payouts-copy + .p-3.rounded-4 thead tr {
  background: transparent !important;
}

.dashboard-payouts-copy + .p-3.rounded-4 thead th {
  padding: 0.85rem 0.9rem !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.14), rgba(249, 115, 22, 0.035)),
    #090806 !important;
  color: #f6b83f !important;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.065em;
  line-height: 1.25;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

.dashboard-payouts-copy + .p-3.rounded-4 thead th:first-child {
  width: 54px;
  border-radius: 12px 0 0 12px;
  text-align: center;
}

.dashboard-payouts-copy + .p-3.rounded-4 thead th:last-child {
  border-radius: 0 12px 12px 0;
}

.dashboard-payouts-copy + .p-3.rounded-4 tbody td {
  padding: 1rem 0.9rem !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.045), transparent 58%),
    #050505 !important;
  color: #e5e7eb !important;
  vertical-align: middle;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.028);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.dashboard-payouts-copy + .p-3.rounded-4 tbody tr:hover td {
  border-color: rgba(252, 211, 77, 0.42) !important;
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.085), transparent 62%),
    #070604 !important;
}

.dashboard-payouts-copy + .p-3.rounded-4 tbody td:first-child {
  border-radius: 12px 0 0 12px;
  color: #94a3b8 !important;
  font-weight: 800;
  text-align: center;
}

.dashboard-payouts-copy + .p-3.rounded-4 tbody td:last-child {
  border-radius: 0 12px 12px 0;
}

.dashboard-payouts-copy + .p-3.rounded-4 tbody td:nth-child(2) {
  color: #fbbf24 !important;
  font-weight: 850 !important;
  letter-spacing: 0.015em;
}

.dashboard-payouts-copy + .p-3.rounded-4 tbody td:nth-child(3) {
  color: #fdba74 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

.dashboard-payouts-copy + .p-3.rounded-4 tbody td:nth-child(5) {
  color: #cbd5e1 !important;
  font-variant-numeric: tabular-nums;
}

.dashboard-payouts-copy + .p-3.rounded-4 tbody .badge {
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
}

.dashboard-payouts-copy + .p-3.rounded-4 tbody .badge.bg-success {
  border-color: rgba(74, 222, 128, 0.28);
  background: linear-gradient(145deg, #16a34a, #15803d) !important;
  color: #f0fdf4 !important;
}

.dashboard-payouts-copy + .p-3.rounded-4 tbody .badge.bg-warning {
  border-color: rgba(251, 191, 36, 0.34);
  background: linear-gradient(145deg, #fbbf24, #f59e0b) !important;
  color: #1c1203 !important;
}

.dashboard-payouts-copy + .p-3.rounded-4 tbody td[colspan] {
  border-radius: 12px;
  color: #cbd5e1 !important;
  text-align: center;
}

@media (max-width: 767px) {
  .dashboard-payouts-copy {
    margin-bottom: 1.15rem !important;
  }

  .dashboard-payouts-copy .dashboard-intro-title {
    font-size: clamp(1.55rem, 7.5vw, 1.9rem);
  }

  .dashboard-payouts-copy .dashboard-intro-copy {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .dashboard-payouts-copy + .p-3.rounded-4 {
    padding: 0.72rem !important;
    border-radius: 18px !important;
  }

  .dashboard-payouts-copy + .p-3.rounded-4 table {
    display: block;
    min-width: 0;
    border-spacing: 0 !important;
  }

  .dashboard-payouts-copy + .p-3.rounded-4 thead {
    display: none;
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody {
    display: grid;
    gap: 0.85rem;
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
    padding: 2.55rem 0.65rem 0.65rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    background:
      radial-gradient(circle at 80% -30%, rgba(245, 158, 11, 0.13), transparent 42%),
      linear-gradient(145deg, #090806, #030303);
    box-shadow:
      0 15px 32px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody td {
    display: flex;
    min-width: 0;
    min-height: 74px;
    padding: 0.7rem !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-radius: 11px !important;
    overflow-wrap: anywhere;
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody td::before {
    display: block;
    margin-bottom: 0.35rem;
    color: #f6b83f;
    font-family: inherit;
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody td:first-child {
    position: absolute;
    top: 0.62rem;
    left: 0.68rem;
    display: grid;
    width: 1.42rem;
    min-height: 1.42rem;
    padding: 0 !important;
    place-items: center;
    border-color: rgba(252, 211, 77, 0.42) !important;
    border-radius: 7px !important;
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fcd34d !important;
    font-size: 0.7rem;
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody td:first-child::before {
    content: none;
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody td:nth-child(2)::before {
    content: "Amount (SOL)";
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody td:nth-child(3)::before {
    content: "Wallet";
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody td:nth-child(4)::before {
    content: "Status";
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody td:nth-child(5)::before {
    content: "Date";
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody td:nth-child(3),
  .dashboard-payouts-copy + .p-3.rounded-4 tbody td:nth-child(5) {
    font-size: 0.72rem;
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody td[colspan] {
    position: static;
    display: flex;
    width: 100%;
    min-width: 100%;
    max-width: none;
    min-height: 88px;
    grid-column: 1 / -1;
    padding: 1.2rem !important;
    align-items: center;
    justify-content: center;
    color: #cbd5e1 !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .dashboard-payouts-copy + .p-3.rounded-4 tbody td[colspan]::before {
    content: none;
  }
}

@media (max-width: 370px) {
  .dashboard-payouts-copy + .p-3.rounded-4 tbody tr {
    grid-template-columns: 1fr;
  }
}
