.stat-number {
  font-variant-numeric: tabular-nums;
}

.processing {
  background: rgba(6, 182, 212, 0.14);
  color: #67e8f9;
}

.completed {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

.cancelled {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.mini-badge {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* Logo integration */
.loader-logo-image-wrap {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 auto 14px;
  overflow: hidden;
}

.loader-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-logo-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
}

.sidebar-logo-image {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.sidebar-logo-image-dark {
  display: none;
}

body.light-mode .sidebar-logo-image-light {
  display: none;
}

body.light-mode .sidebar-logo-image-dark {
  display: block;
}

.topbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-mobile-brand {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.topbar-mobile-brand-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-title-text {
  font-weight: 900;
  margin-left: 0;
}

/* Desktop stats */
.desktop-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  min-height: 134px;
  transition: 0.25s ease;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
}

.dashboard-stat-card--primary {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.14),
    rgba(59, 130, 246, 0.10)
  );
}

.dashboard-stat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-stat-top span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.dashboard-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.14);
  color: var(--primary);
  font-size: 18px;
}

.dashboard-stat-icon--blue {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.dashboard-stat-icon--purple {
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
}

.dashboard-stat-icon--green {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.dashboard-stat-value {
  font-size: 2.1rem;
  line-height: 1.1;
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 800;
}

.dashboard-stat-value-small {
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 800;
}

.dashboard-stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Mobile wallet hero */
.mobile-wallet-hero {
  display: none;
  margin-bottom: 22px;
}

.mobile-wallet-card {
  background: linear-gradient(135deg, #1477ff, #0057ff);
  color: #ffffff;
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: 0 18px 40px rgba(20, 119, 255, 0.28);
}

.mobile-wallet-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.mobile-wallet-label {
  font-size: 14px;
  opacity: 0.9;
  margin: 0 0 8px;
}

.mobile-wallet-balance {
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 800;
  margin: 0;
}

.wallet-visibility-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
}

.mobile-wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mobile-wallet-btn {
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: 16px;
  font-weight: 700;
}

.mobile-wallet-btn--primary {
  background: #ffffff;
  color: #1368ff;
}

.mobile-wallet-btn--secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Quick actions */
.quick-actions-section {
  display: none;
  margin-bottom: 22px;
}

.quick-actions-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-action-item {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.quick-action-icon {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.quick-action-item:hover .quick-action-icon {
  transform: translateY(-2px);
}

.quick-action-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.quick-action-blue {
  background: rgba(37, 99, 235, 0.12);
  color: #4f8dff;
}

.quick-action-orange {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
}

.quick-action-green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.quick-action-yellow {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
}

.quick-action-cyan {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.quick-action-pink {
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
}

/* Lower cards */
.content-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 22px;
  margin-top: 24px;
}

.table-card,
.activity-card {
  padding: 22px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.activity-item h4 {
  font-size: 15px;
  margin-bottom: 5px;
}

.activity-item p {
  color: var(--muted);
  font-size: 13px;
}

.amount {
  font-weight: 700;
}

.amount.positive {
  color: #86efac;
}

.amount.negative {
  color: #fca5a5;
}

/* Tablet */
@media (max-width: 1100px) {
  .desktop-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Mobile acctwave mode */
@media (max-width: 900px) {
  .desktop-stats-grid {
    display: none;
  }

  .mobile-wallet-hero {
    display: block;
  }

  .quick-actions-section {
    display: block;
  }

  .content-grid {
    margin-top: 0;
    gap: 18px;
  }

  .topbar-mobile-brand {
    display: block;
  }

  .sidebar-logo-image {
    height: 38px;
  }
}

@media (max-width: 560px) {
  .quick-actions-icon-grid {
    gap: 14px;
  }

  .quick-action-icon {
    width: 70px;
    height: 70px;
    font-size: 22px;
    border-radius: 20px;
  }

  .quick-action-item span {
    font-size: 13px;
  }

  .mobile-wallet-balance {
    font-size: 1.95rem;
  }

  .mobile-wallet-actions {
    gap: 10px;
  }

  .table-card,
  .activity-card {
    padding: 18px;
  }

  .topbar-mobile-brand {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}

/* Recent panels */
.content-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 22px;
  margin-top: 24px;
}

.dashboard-panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  min-width: 0;
}

.dashboard-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-panel-header h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 800;
}

.dashboard-panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.panel-link {
  text-decoration: none;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-list .activity-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: 0.25s ease;
}

.dashboard-list .activity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.dashboard-list .activity-item > div {
  min-width: 0;
}

.dashboard-list .activity-item h4 {
  margin: 0 0 5px;
  font-size: 0.98rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}

.dashboard-list .activity-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
}

.dashboard-list .mini-badge {
  flex-shrink: 0;
}

.dashboard-list .amount {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

/* Orders panel slightly denser */
.recent-orders-card .activity-item {
  padding: 15px 16px;
}

/* Transactions panel slightly clearer emphasis */
.recent-transactions-card .activity-item {
  padding: 16px;
}

/* Light mode polish */
body:not(.dark-mode) .dashboard-list .activity-item {
  background: #ffffff;
  border-color: #edf1f7;
}

body:not(.dark-mode) .dashboard-list .activity-item:hover {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

/* Dark mode polish */
body.dark-mode .dashboard-list .activity-item {
  background: rgba(255, 255, 255, 0.03);
}

/* Tablet */
@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .content-grid {
    margin-top: 0;
    gap: 18px;
  }

  .dashboard-panel-card {
    padding: 18px;
    border-radius: 20px;
  }

  .dashboard-panel-header {
    margin-bottom: 16px;
  }

  .dashboard-panel-header h2 {
    font-size: 1.08rem;
  }

  .dashboard-panel-header p {
    font-size: 0.86rem;
  }

  .dashboard-list .activity-item {
    padding: 14px;
    border-radius: 16px;
  }

  .dashboard-list .activity-item h4 {
    font-size: 0.94rem;
  }

  .dashboard-list .activity-item p {
    font-size: 0.84rem;
  }
}

@media (max-width: 560px) {
  .dashboard-panel-header {
    align-items: center;
  }

  .dashboard-panel-header p {
    display: none;
  }

  .dashboard-list {
    gap: 12px;
  }

  .dashboard-list .activity-item {
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-list .mini-badge,
  .dashboard-list .amount {
    margin-top: 2px;
  }
}