.wallet-component {
  --main: #ff7a00;
  --main-rgb: 255, 122, 0;
  --card: rgba(28, 18, 14, 0.88);
  --card-soft: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.085);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --success: #36e37d;

  position: relative;
  color: var(--text);
  padding: 28px;
  /* border-radius: 24px; */
  /* overflow: hidden; */
  /* background:
    radial-gradient(
      circle at 20% 0%,
      rgba(var(--main-rgb), 0.25),
      transparent 32%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.05),
      transparent 26%
    ),
    linear-gradient(180deg, #170906 0%, #0c0503 100%); */
  /* border: 1px solid var(--border); */
}

.wallet-component::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 78px 78px;
  opacity: 0.35;
  pointer-events: none;
}

.wallet-inner {
  position: relative;
  z-index: 1;
}

.wallet-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.wallet-header-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--main), #ff3d00);
  box-shadow: 0 0 30px rgba(var(--main-rgb), 0.38);
  font-size: 25px;
  flex-shrink: 0;
}

.wallet-header h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.wallet-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.wallet-card {
  position: relative;
  height: 100%;
  padding: 22px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(var(--wallet-rgb), 0.22),
      rgba(255, 255, 255, 0.035)
    ),
    var(--card);
  border: 1px solid rgba(var(--wallet-rgb), 0.18);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  transition: 0.25s ease;
}

.wallet-card:hover {
  transform: translateY(-10px) scale(1.025);
  border-color: rgba(var(--wallet-rgb), 0.38);
  box-shadow: 0 18px 44px rgba(var(--wallet-rgb), 0.05);
}

.wallet-card::after {
  content: "";
  position: absolute;
  width: 145px;
  height: 145px;
  right: -50px;
  bottom: -55px;
  border-radius: 50%;
  background: rgb(var(--wallet-rgb));
  opacity: 0.12;
  transform: scale(1);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
  pointer-events: none;
}

.wallet-card:hover::after {
  transform: scale(1.85);
  opacity: 0.05;
}

.wallet-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.wallet-card-info {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.wallet-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: rgb(var(--wallet-rgb));
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.wallet-card-name {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.18;
}

.wallet-card-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.wallet-status {
  position: absolute;
  top: 16px;
  right: 16px;

  height: fit-content;
  padding: 3.5px 11px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(54, 227, 125, 0.13);
  border: 1px solid rgba(54, 227, 125, 0.16);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.wallet-balance {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 8px;
  margin-bottom: 18px;
}

.wallet-balance strong {
  font-size: 42px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 1px;
}

.wallet-balance span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  padding-bottom: 0px;
  margin-bottom: -5px;
}

.wallet-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
}

.wallet-btn-main {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgb(var(--wallet-rgb)),
    rgba(var(--wallet-rgb), 0.72)
  );
  box-shadow: 0 12px 24px rgba(var(--wallet-rgb), 0.2);
  transition: 0.2s ease;
}

.wallet-btn-main:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.wallet-btn-plus {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.2s ease;
}

.wallet-btn-plus:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.wallet-history {
  margin-top: 42px;
}

.wallet-history-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 600;
}

.wallet-history-title i {
  color: var(--main);
}

.wallet-table-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(20, 12, 9, 0.76);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.wallet-table {
  width: 100%;
  margin: 0;
  color: var(--text);
}

.wallet-table thead th {
  padding: 17px 18px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.wallet-table tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
  font-size: 14px;
}

.wallet-table tbody tr:last-child td {
  border-bottom: 0;
}

.wallet-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.wallet-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.wallet-history-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #ffd466;
  background: rgba(255, 190, 60, 0.13);
  border: 1px solid rgba(255, 190, 60, 0.1);
  flex-shrink: 0;
}

.wallet-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  color: #ffd466;
  background: rgba(255, 190, 60, 0.12);
  border: 1px solid rgba(255, 190, 60, 0.14);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.wallet-plus {
  color: #46ff86;
  font-weight: 600;
}

.wallet-success {
  color: #46ff86;
  font-weight: 600;
  white-space: nowrap;
}

.wallet-empty {
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
}

.wallet-empty i {
  display: block;
  font-size: 34px;
  margin-bottom: 10px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .wallet-component {
    padding: 20px;
    border-radius: 20px;
  }

  .wallet-header h3 {
    font-size: 23px;
  }

  .wallet-header p {
    font-size: 12px;
  }

  .wallet-header-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .wallet-balance strong {
    font-size: 36px;
  }

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

  .wallet-table {
    min-width: 720px;
  }
}


.badge-success-soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3.5px 12px;
  border-radius: 999px;
  color: #36e37d;
  background: rgba(54, 227, 125, 0.13);
  border: 1px solid rgba(54, 227, 125, 0.18);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}