/* User dashboard — legacy dashboard.php parity */

.rp-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 992px) {
  .rp-dash-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  }
}

.rp-dash-transactions {
  min-height: 280px;
}

.rp-dash-tx-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rp-text-muted);
  border-bottom-color: var(--rp-glass-border);
  white-space: nowrap;
}

.rp-dash-tx-table tbody td {
  vertical-align: middle;
}

.rp-dash-welcome {
  background: var(--rp-glass-bg);
  border: 1px solid var(--rp-glass-border);
  border-radius: var(--rp-radius-lg, 18px);
  box-shadow: var(--rp-shadow-card);
  padding: 1.5rem;
  text-align: center;
}

html[data-theme="light"] .rp-dash-welcome {
  background: var(--rp-surface);
  box-shadow: var(--rp-shadow-elevated);
}

.rp-dash-balance-card {
  background: linear-gradient(135deg, var(--rp-brand) 0%, var(--rp-success) 100%);
  border: none;
  border-radius: var(--rp-radius-lg, 18px);
  color: #fff;
  box-shadow: 0 20px 40px rgba(var(--rp-brand-rgb), 0.28);
  overflow: hidden;
  position: relative;
  width: 100%;
  min-width: 0;
}

.rp-dash-balance-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.rp-dash-balance-card > * {
  position: relative;
  z-index: 1;
}

.rp-dash-balance-card .card-title {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.rp-dash-balance-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.rp-dash-balance-toggle {
  color: rgba(255, 255, 255, 0.75);
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: 0.35rem;
}

.rp-wallet-carousel {
  position: relative;
  overflow: hidden;
}

.rp-wallet-track {
  display: flex;
  transition: transform 0.35s ease;
}

.rp-wallet-slide {
  flex: 0 0 100%;
  min-width: 100%;
  text-align: center;
  padding: 0.25rem 2.5rem;
}

.rp-wallet-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rp-wallet-nav.prev { left: 0.35rem; }
.rp-wallet-nav.next { right: 0.35rem; }

.rp-wallet-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.rp-wallet-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
}

.rp-wallet-dot.active {
  background: #fff;
  transform: scale(1.15);
}

.rp-wallet-setup-card {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 0.5rem 0;
}

.rp-wallet-setup-card:hover {
  color: #fff;
}

.rp-dash-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 767.98px) {
  .rp-dash-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rp-dash-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 0.85rem 0.5rem;
  min-height: 92px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  z-index: 1;
}

.rp-dash-action:hover,
.rp-dash-action:focus {
  color: #fff !important;
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.rp-dash-action i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 12px;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--rp-brand);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.rp-dash-action:nth-child(1) i {
  color: var(--rp-brand);
}

.rp-dash-action:nth-child(2) i {
  color: var(--rp-brand-hover);
}

.rp-dash-action:nth-child(3) i {
  color: var(--rp-success);
}

.rp-dash-action:nth-child(4) i {
  color: #c2410c;
}

.rp-dash-action span {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  background: transparent;
  line-height: 1.2;
  text-align: center;
}

.rp-dash-stats {
  height: 100%;
  min-width: 0;
}

.rp-dash-transactions .panel-header {
  border-bottom: 1px solid var(--rp-glass-border);
}

.rp-dash-stat-box {
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
  height: 100%;
}

.rp-dash-stat-box.received {
  background: rgba(var(--rp-success-rgb), 0.12);
}

.rp-dash-stat-box.sent {
  background: rgba(239, 68, 68, 0.12);
}

.rp-dash-tx-list {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.rp-dash-tx-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--rp-glass-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.65rem;
  background: rgba(var(--rp-brand-rgb), 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rp-dash-tx-item:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--rp-shadow-card);
}

.rp-dash-tx-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rp-dash-tx-icon.sent { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.rp-dash-tx-icon.received { background: rgba(var(--rp-success-rgb), 0.12); color: var(--rp-success); }
.rp-dash-tx-icon.wallet_transfer { background: rgba(var(--rp-brand-rgb), 0.12); color: var(--rp-brand-soft); }
.rp-dash-tx-icon.gift_card,
.rp-dash-tx-icon.data_airtime { background: rgba(var(--rp-brand-rgb), 0.12); color: var(--rp-brand); }

.rp-dash-tx-amount.sent,
.rp-dash-tx-amount.data_airtime { color: #ef4444; }
.rp-dash-tx-amount.received { color: var(--rp-success); }

.rp-quick-transfer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.rp-quick-transfer .form-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
}

.rp-quick-transfer .form-control,
.rp-quick-transfer .form-select {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.rp-quick-transfer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.rp-escrow-hold-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-top: 0.75rem;
}
