.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card-elevated {
  background: var(--color-bg-elevated);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.summary-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.summary-card .label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.summary-card .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text);
}

.summary-card .value.gold { color: var(--color-gold); }
.summary-card .value.green { color: var(--color-primary); }
.summary-card .value.danger { color: var(--color-danger); }

.summary-card .meta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wallet-card {
  background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.wallet-card .label {
  font-size: 0.8125rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wallet-card .balance {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.wallet-card .breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.wallet-card .breakdown div {
  font-size: 0.875rem;
}

.wallet-card .breakdown .sub-label {
  opacity: 0.75;
  font-size: 0.75rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.approved { background: #dbeafe; color: #1e40af; }
.status-badge.processing { background: #fef3c7; color: #78350f; }
.status-badge.paid { background: #d1fae5; color: #065f46; }
.status-badge.rejected { background: #fee2e2; color: #991b1b; }
.status-badge.cancelled { background: #f3f4f6; color: #374151; }
.status-badge.active { background: #d1fae5; color: #065f46; }
.status-badge.suspended { background: #fef3c7; color: #92400e; }
.status-badge.cashback_paid { background: #d1fae5; color: #065f46; }
.status-badge.cashback_reversed { background: #fee2e2; color: #991b1b; }
.status-badge.commission_approved { background: #dbeafe; color: #1e40af; }
.status-badge.pending_verification { background: #f3f4f6; color: #6b7280; }

.data-table {
  width: 100%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-collapse: collapse;
  overflow: hidden;
}

.data-table th {
  text-align: start;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

.empty-state .icon {
  font-size: 2.5rem;
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.empty-state .title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.loading-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

.banner {
  padding: 0.875rem 1rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.banner.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.banner.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.banner.warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.banner.info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--color-bg-elevated);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin: 0 0 0.75rem;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

[dir='rtl'] .modal-actions {
  justify-content: flex-start;
}

.form-row {
  margin-bottom: 1rem;
}

.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-gold { color: var(--color-gold); }
.text-mono { font-family: 'SF Mono', Menlo, monospace; font-size: 0.875rem; }
.text-small { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-bold { font-weight: 700; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
