/* ═══════════════════════════════════════════════════════════
   Dopaye — Payment System Styles
   Replicates the Tailwind-based Next.js design in vanilla CSS
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f9fafb;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-500: #22c55e;
  --primary-600: #16a34a;
  --primary-700: #15803d;
  --primary-900: #14532d;
  --emerald-50: #ecfdf5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --red-50: #fef2f2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-600: #d97706;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.02);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--gray-900);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
select {
  font-family: inherit;
}

/* ─── Layout Utilities ──────────────────────────────────── */
.page-center {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

@media (min-width: 768px) {
  .page-center {
    padding: 32px;
  }
}

.container {
  width: 100%;
  max-width: 26rem;
}

.container-md {
  width: 100%;
  max-width: 28rem;
}

.container-lg {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container-lg {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container-lg {
    padding: 0 32px;
  }
}

.space-y-2>*+* {
  margin-top: 8px;
}

.space-y-3>*+* {
  margin-top: 12px;
}

.space-y-4>*+* {
  margin-top: 16px;
}

.space-y-6>*+* {
  margin-top: 24px;
}

.space-y-8>*+* {
  margin-top: 32px;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* ─── Card Component ────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.card-sm {
  padding: 16px;
}

.card-md {
  padding: 24px;
}

.card-lg {
  padding: 32px;
}

.card-none {
  padding: 0;
}

.card-elevated {
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-2xl);
}

.card-border-orange {
  border-color: #ffedd5;
}

.card-border-emerald {
  border-color: #d1fae5;
}

/* ─── Input Component ───────────────────────────────────── */
.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.form-label-sm {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
}

.form-required {
  color: var(--red-500);
  margin-left: 4px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

.form-input {
  display: flex;
  height: 48px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background: var(--white);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--gray-900);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

.form-input.has-icon {
  padding-left: 40px;
}

.form-input.input-lg {
  height: 56px;
  font-weight: 500;
}

.form-input.input-error {
  border-color: var(--red-500);
}

.form-input.input-error:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.form-error {
  font-size: 12px;
  color: var(--red-500);
  font-weight: 500;
}

.form-select {
  display: flex;
  height: 56px;
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: 8px 40px 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  appearance: none;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 1px var(--emerald-500);
}

.select-wrapper {
  position: relative;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray-400);
}

/* ─── Button Component ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  border: none;
  outline: none;
  padding: 8px 16px;
  height: 48px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--primary-500);
}

.btn-primary {
  background: var(--primary-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-500);
}

.btn-emerald {
  background: var(--emerald-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-xl);
}

.btn-emerald:hover {
  background: var(--emerald-600);
}

.btn-outline {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-900);
}

.btn-outline:hover {
  background: var(--gray-100);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.btn-destructive {
  background: var(--red-600);
  color: var(--white);
}

.btn-destructive:hover {
  background: var(--red-700);
}

.btn-sm {
  height: 36px;
  padding: 4px 12px;
  border-radius: var(--radius-md);
}

.btn-lg {
  height: 56px;
  padding: 8px 32px;
  font-size: 18px;
  border-radius: var(--radius-md);
}

.btn-icon {
  height: 40px;
  width: 40px;
  padding: 0;
}

.btn-icon-lg {
  height: 50px;
  width: 50px;
  padding: 0;
  flex-shrink: 0;
  border-radius: var(--radius-xl);
}

.btn-full {
  width: 100%;
}

.btn-pay {
  height: 56px;
  width: 100%;
  background: #10b981;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xl);
  margin-top: 16px;
}

.btn-pay:hover {
  background: #059669;
}

.btn-loading .spinner {
  margin-right: 8px;
}

/* ─── Currency Toggle ───────────────────────────────────── */
.currency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.currency-btn {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  transition: all 0.15s;
  font-size: 14px;
  font-weight: 500;
}

.currency-btn:hover {
  background: var(--gray-50);
}

.currency-btn.active-usdt {
  border-color: var(--emerald-500);
  background: rgba(16, 185, 129, 0.04);
  color: #064e3b;
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--emerald-500);
}

.currency-btn.active-btc {
  border-color: var(--orange-500);
  background: rgba(249, 115, 22, 0.04);
  color: #7c2d12;
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--orange-500);
}

.currency-icon {
  display: flex;
  height: 20px;
  width: 20px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

.currency-icon-usdt {
  border-radius: 2px;
}

.currency-icon-usdt.active {
  background: var(--emerald-500);
  color: var(--white);
}

.currency-icon-usdt:not(.active) {
  color: var(--emerald-500);
  background: var(--emerald-50);
}

.currency-icon-btc {
  border-radius: 50%;
  font-size: 12px;
  font-style: italic;
}

.currency-icon-btc.active {
  background: var(--orange-400);
  color: var(--white);
}

.currency-icon-btc:not(.active) {
  color: var(--orange-400);
  background: var(--orange-50);
}

/* ─── Status Badges ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
}

.badge svg,
.badge .badge-icon {
  margin-right: 4px;
  width: 12px;
  height: 12px;
}

.badge-pending {
  background: var(--blue-50);
  color: var(--blue-700);
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.1);
}

.badge-confirmed {
  background: var(--orange-50);
  color: var(--orange-700);
  box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.1);
}

.badge-approved {
  background: var(--primary-50);
  color: #15803d;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.2);
}

.badge-declined {
  background: var(--red-50);
  color: var(--red-700);
  box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.2);
}

.badge-cancelled {
  background: var(--gray-100);
  color: var(--gray-500);
  box-shadow: inset 0 0 0 1px rgba(107, 114, 128, 0.2);
}

/* ─── Header (Admin) ────────────────────────────────────── */
.admin-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

@media (min-width: 640px) {
  .admin-header-inner {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .admin-header-inner {
    padding: 0 32px;
  }
}

.admin-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-600);
}

.admin-logo span {
  color: var(--gray-900);
}

.admin-tag {
  margin-left: 16px;
  padding: 2px 10px;
  border-radius: 9999px;
  background: var(--gray-100);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  border: none;
  transition: color 0.15s;
}

.admin-logout:hover {
  color: var(--red-600);
}

/* ─── Payment Page ──────────────────────────────────────── */
.payment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 8px;
}

.back-btn {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-400);
  background: none;
  border: none;
  padding-top: 8px;
  transition: color 0.15s;
}

.back-btn:hover {
  color: var(--gray-900);
}

.payment-id-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.payment-id-value {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.cancel-link {
  font-size: 11px;
  color: var(--red-500);
  background: none;
  border: none;
  margin-top: 4px;
  transition: color 0.15s;
  display: block;
}

.cancel-link:hover {
  color: var(--red-600);
}

.cancel-link:disabled {
  opacity: 0.5;
}

.amount-section {
  text-align: center;
  padding-top: 16px;
}

.amount-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.amount-value {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-800);
}

.amount-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-500);
  margin-left: 8px;
  vertical-align: baseline;
}

.amount-usd {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  margin-top: 4px;
}

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qr-code {
  padding: 8px;
  background: var(--white);
  display: inline-block;
}

.qr-status {
  display: flex;
  align-items: center;
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 500;
}

.qr-timer {
  font-size: 20px;
  font-family: 'SF Mono', Monaco, monospace;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gray-500);
}

.divider {
  height: 1px;
  background: rgba(243, 244, 246, 0.5);
  width: 100%;
}

.address-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.address-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-text {
  flex: 1;
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 14px 16px;
  font-family: monospace;
  font-size: 13px;
  color: var(--gray-600);
  word-break: break-all;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.copy-btn {
  height: 50px;
  width: 50px;
  flex-shrink: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
  color: var(--gray-400);
}

.copy-btn:hover {
  background: var(--gray-50);
}

.copy-btn.copied {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: white;
}

.network-warning {
  font-size: 12px;
  font-weight: 500;
  color: var(--amber-600);
  line-height: 1.6;
  background: var(--amber-50);
  border-radius: var(--radius-lg);
  padding: 12px 12px 12px 20px;
  border: 1px solid rgba(251, 191, 36, 0.15);
  position: relative;
  overflow: hidden;
}

.network-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--amber-400);
}

/* ─── Confirmation Page ─────────────────────────────────── */
.status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.status-icon-pending {
  background: var(--blue-100);
}

.status-icon-confirmed {
  background: var(--orange-100);
}

.status-icon-approved {
  background: #dcfce7;
}

.status-icon-declined {
  background: #fecaca;
}

.status-dot {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid var(--white);
}

.status-dot-pending {
  background: var(--blue-500);
}

.status-dot-confirmed {
  background: var(--orange-500);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.detail-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
}

.detail-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}

.detail-value-sm {
  font-size: 13px;
  font-weight: 600;
}

.detail-mono {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-700);
}

/* ─── Admin Dashboard ───────────────────────────────────── */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .admin-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.net-list {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.net-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
}

.net-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.net-item-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
}

.net-item-address {
  font-size: 12px;
  font-family: monospace;
  color: var(--gray-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.net-delete-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  padding: 2px;
  transition: color 0.15s;
}

.net-delete-btn:hover {
  color: var(--red-500);
}

/* Table */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

thead {
  background: var(--gray-50);
}

th {
  padding: 12px 24px;
  text-align: left;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
}

td {
  padding: 16px 24px;
}

tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.1s;
}

tbody tr:hover {
  background: var(--gray-50);
}

.td-mono {
  font-family: monospace;
  font-weight: 500;
  color: var(--gray-900);
}

.td-name {
  font-weight: 500;
}

.td-email {
  color: var(--gray-500);
  font-size: 12px;
}

.td-amount {
  font-weight: 600;
}

.td-network {
  color: var(--gray-400);
  font-size: 10px;
}

.table-search {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.table-search-inner {
  max-width: 28rem;
  width: 100%;
}

.action-cell {
  text-align: right;
}

.action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.action-btn-decline {
  background: none;
  border: none;
  color: var(--red-500);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  height: 32px;
  transition: all 0.15s;
}

.action-btn-decline:hover {
  color: var(--red-600);
  background: var(--red-50);
}

.action-btn-confirm {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  height: 32px;
  transition: all 0.15s;
}

.action-btn-confirm:hover {
  background: var(--gray-100);
}

.action-btn-approve {
  background: var(--emerald-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border: none;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  height: 32px;
  transition: all 0.15s;
}

.action-btn-approve:hover {
  background: var(--emerald-700);
}

.action-delete-btn {
  padding: 6px;
  color: var(--gray-400);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  transition: all 0.15s;
  margin-left: 8px;
}

.action-delete-btn:hover {
  color: var(--red-600);
  background: var(--red-50);
}

/* Toggle */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.toggle-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  font-style: italic;
}

.toggle {
  position: relative;
  display: inline-flex;
  height: 20px;
  width: 36px;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 2px solid transparent;
  transition: background-color 0.2s;
  background: var(--gray-200);
}

.toggle.active {
  background: var(--primary-600);
}

.toggle-dot {
  pointer-events: none;
  display: inline-block;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  transform: translateX(0);
}

.toggle.active .toggle-dot {
  transform: translateX(16px);
}

/* ─── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 24rem;
  overflow: hidden;
}

.modal-body {
  padding: 24px;
  text-align: center;
}

.modal-icon {
  margin: 0 auto;
  width: 48px;
  height: 48px;
  background: var(--red-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-600);
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.modal-text {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
}

.modal-footer {
  background: var(--gray-50);
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid var(--gray-100);
}

/* ─── Pending Order Badge ───────────────────────────────── */
.pending-badge-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  transition: all 0.3s ease-out;
}

.pending-badge-container.hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.pending-badge-container.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pending-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.2s;
}

.pending-badge:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  border-color: var(--gray-300);
}

.pending-badge:active {
  transform: scale(0.95);
}

.pending-badge-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.pulse-dot {
  position: relative;
  display: flex;
  height: 12px;
  width: 12px;
  flex-shrink: 0;
}

.pulse-dot-ring {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.6);
  animation: pulse-ring 1.5s infinite;
}

.pulse-dot-core {
  position: relative;
  display: inline-flex;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: var(--emerald-500);
}

.pending-badge-text {
  text-align: left;
  flex: 1;
  min-width: 110px;
}

.pending-badge-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 2px;
}

.pending-badge-id {
  font-size: 11px;
  color: var(--gray-400);
  font-family: monospace;
  line-height: 1;
}

.pending-badge-action {
  font-size: 11px;
  font-weight: 600;
  background: var(--emerald-50);
  color: var(--emerald-600);
  border-radius: var(--radius-lg);
  padding: 4px 8px;
}

.pending-badge-dismiss {
  margin-left: 4px;
  display: flex;
  height: 24px;
  width: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gray-300);
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.15s;
}

.pending-badge-dismiss:hover {
  color: var(--gray-600);
  background: var(--gray-100);
}

/* ─── Payment Animation (Pulse & Orbit) ─────────────────── */
.payment-animation-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* Base Theme Variables */
.payment-animation-wrapper.theme-usdt {
  --theme-color: var(--emerald-500);
  --theme-bg: rgba(16, 185, 129, 0.1);
}

.payment-animation-wrapper.theme-btc {
  --theme-color: var(--orange-500);
  --theme-bg: rgba(249, 115, 22, 0.1);
}

.payment-animation-core {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px var(--theme-bg), 0 0 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-100);
  animation: pulse-glow 2s ease-in-out infinite;
  color: var(--theme-color);
}

.payment-animation-core svg {
  width: 40px;
  height: 40px;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed var(--gray-200);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-1 {
  width: 140px;
  height: 140px;
  animation: orbit-rotate 12s linear infinite;
}

.orbit-2 {
  width: 180px;
  height: 180px;
  animation: orbit-rotate 20s linear reverse infinite;
  opacity: 0.5;
}

.orbit-node {
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--theme-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--theme-color);
}

.orbit-2 .orbit-node {
  background: var(--gray-300);
  box-shadow: none;
  width: 6px;
  height: 6px;
}

.floating-particles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--theme-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: particle-float 4s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 40px var(--theme-bg);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 60px var(--theme-bg);
  }
}

@keyframes orbit-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes particle-float {

  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0;
  }

  50% {
    transform: translate(10px, -20px);
    opacity: 0.4;
  }
}

/* Popover menu for multiple orders */
.pending-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 12px;
  width: 256px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.pending-menu-header {
  background: var(--gray-50);
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
}

.pending-menu-list {
  max-height: 240px;
  overflow-y: auto;
}

.pending-menu-item {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: none;
  border-bottom: 1px solid var(--gray-50);
  transition: background 0.1s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pending-menu-item:last-child {
  border-bottom: none;
}

.pending-menu-item:hover {
  background: var(--gray-50);
}

.pending-menu-item-id {
  font-size: 14px;
  font-family: monospace;
  font-weight: 600;
  color: var(--gray-900);
}

.pending-menu-item-meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-spin-slow {
  animation: spin 3s linear infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

/* ─── SVG Icons ─────────────────────────────────────────── */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.icon-md {
  width: 18px;
  height: 18px;
}

.icon-lg {
  width: 20px;
  height: 20px;
}

.icon-xl {
  width: 24px;
  height: 24px;
}

.icon-2xl {
  width: 32px;
  height: 32px;
}

.icon-3xl {
  width: 40px;
  height: 40px;
}

/* ─── Login Page ────────────────────────────────────────── */
.login-icon-box {
  margin: 0 auto;
  height: 64px;
  width: 64px;
  background: var(--primary-100);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.2s;
}

.login-icon-box:hover {
  background: var(--primary-200);
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

.login-subtitle {
  font-size: 14px;
  color: var(--gray-500);
}

.login-footer {
  text-align: center;
  font-size: 10px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ─── Misc ──────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.font-mono {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.font-bold {
  font-weight: 700;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relative {
  position: relative;
}

.w-full {
  width: 100%;
}

.mt-2 {
  margin-top: 8px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

.pt-2 {
  padding-top: 8px;
}

.pt-4 {
  padding-top: 16px;
}

.pb-2 {
  padding-bottom: 8px;
}

.break-all {
  word-break: break-all;
}

/* ─── Responsive Admin UI ───────────────────────────────── */
@media (max-width: 1023px) {
  .admin-header-inner {
    height: 56px;
  }

  .admin-logo {
    font-size: 18px;
  }

  .admin-tag {
    margin-left: 8px;
    padding: 1px 8px;
    font-size: 10px;
  }

  .container-lg {
    padding: 0 16px;
  }

  .admin-grid {
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .card-lg {
    padding: 20px;
  }

  .settings-title {
    font-size: 16px;
  }

  /* Premium Card Table Layout */
  .table-wrapper {
    border: none;
    overflow: visible;
    background: transparent;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  /* Hide headers on mobile */

  tbody tr {
    margin-bottom: 24px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease;
  }

  tbody tr:active {
    transform: scale(0.98);
  }

  /* Treat first cell (ID) as a Header */
  td:nth-child(1) {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 20px !important;
    font-size: 13px !important;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1;
  }

  td:nth-child(1)::before {
    content: 'Order ID';
    color: var(--gray-400);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
  }

  /* Body cells */
  td:not(:nth-child(1)):not(:last-child) {
    padding: 14px 20px !important;
    border-bottom: 1px solid var(--gray-50);
    display: flex;
    align-items: center;
  }

  /* Labels with Icons */
  .card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 110px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .card-label svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
  }

  .card-value {
    flex: 1;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    word-break: break-all;
  }

  /* Action Footer */
  td:last-child {
    background: #fafafa;
    border-top: 1px solid var(--gray-100);
    padding: 12px 20px !important;
    margin-top: 4px;
  }

  .action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  /* Specific typography fixes */
  .td-email {
    font-size: 11px;
    opacity: 0.8;
  }

  .td-network {
    font-size: 9px;
    margin-top: 2px;
  }

  .table-search-inner {
    max-width: 100%;
  }
}