/* User + admin portal — exact visual language as public/index.html (rp-public-body) */

body.rp-public-body[data-rp-shell] {
  display: block;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  padding-top: 0 !important;
  min-height: 0;
  flex-direction: unset;
}

body[data-rp-shell] .admin-shell {
  height: 100%;
  min-height: 0;
}

body[data-rp-shell="user"] .admin-main,
body[data-rp-shell="admin"] .admin-main {
  background: transparent;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body[data-rp-shell="user"],
body[data-rp-shell="admin"] {
  background-color: transparent;
  color: var(--rp-text);
}

body[data-rp-shell="user"] .dashboard-content,
body[data-rp-shell="admin"] .dashboard-content {
  flex: 1 0 auto;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  padding-bottom: 1rem;
}

/* Sidebar — glass like public nav, not template white sidebar */
body[data-rp-shell] .admin-sidebar {
  background: var(--rp-glass-bg) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid var(--rp-glass-border) !important;
  box-shadow: var(--rp-shadow-card, 0 8px 32px rgba(0, 0, 0, 0.12)) !important;
  color: var(--rp-text) !important;
}

body[data-rp-shell] .sidebar-header {
  border-bottom-color: var(--rp-glass-border) !important;
}

body[data-rp-shell] .brand-mark,
body[data-rp-shell] .brand-mark:hover,
body[data-rp-shell] .brand-mark:focus {
  color: var(--rp-text) !important;
}

body[data-rp-shell] .brand-mark .brand-logo {
  filter: drop-shadow(0 0 12px rgba(var(--rp-brand-rgb), 0.35));
}

body[data-rp-shell] .brand-subtitle,
body[data-rp-shell] .sidebar-section-label {
  color: var(--rp-text-muted) !important;
}

body[data-rp-shell] .sidebar-nav .nav-link {
  color: var(--rp-text-muted) !important;
  border-radius: 10px;
  font-weight: 500;
}

body[data-rp-shell] .sidebar-nav .nav-link:hover,
body[data-rp-shell] .sidebar-nav .nav-link:focus,
body[data-rp-shell] .sidebar-nav .nav-link.active {
  background: rgba(var(--rp-brand-rgb), 0.12) !important;
  color: var(--rp-text) !important;
}

body[data-rp-shell] .nav-icon {
  background: rgba(var(--rp-brand-rgb), 0.12) !important;
  color: var(--rp-brand-soft) !important;
}

body[data-rp-shell] .nav-icon--brand {
  background: rgba(var(--rp-brand-rgb), 0.12) !important;
  color: var(--rp-brand-soft) !important;
}

body[data-rp-shell] .nav-icon--yellow {
  background: rgba(251, 191, 36, 0.14) !important;
  color: #fbbf24 !important;
}

body[data-rp-shell] .nav-icon--green {
  background: rgba(var(--rp-success-rgb), 0.14) !important;
  color: var(--rp-success) !important;
}

body[data-rp-shell] .nav-icon--danger {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #f87171 !important;
}

body[data-rp-shell] .sidebar-nav .nav-link:hover .nav-icon--brand,
body[data-rp-shell] .sidebar-nav .nav-link.active .nav-icon--brand,
body[data-rp-shell] .sidebar-account .nav-link:hover .nav-icon--brand,
body[data-rp-shell] .sidebar-account .nav-link.active .nav-icon--brand {
  color: var(--rp-brand) !important;
  background: rgba(var(--rp-brand-rgb), 0.2) !important;
}

body[data-rp-shell] .sidebar-nav .nav-link:hover .nav-icon--yellow,
body[data-rp-shell] .sidebar-nav .nav-link.active .nav-icon--yellow,
body[data-rp-shell] .sidebar-account .nav-link:hover .nav-icon--yellow,
body[data-rp-shell] .sidebar-account .nav-link.active .nav-icon--yellow {
  color: #fcd34d !important;
  background: rgba(251, 191, 36, 0.22) !important;
}

body[data-rp-shell] .sidebar-nav .nav-link:hover .nav-icon--green,
body[data-rp-shell] .sidebar-nav .nav-link.active .nav-icon--green,
body[data-rp-shell] .sidebar-account .nav-link:hover .nav-icon--green,
body[data-rp-shell] .sidebar-account .nav-link.active .nav-icon--green {
  color: var(--rp-success-hover, #34d399) !important;
  background: rgba(var(--rp-success-rgb), 0.22) !important;
}

body[data-rp-shell] .sidebar-nav .nav-link:hover .nav-icon--danger,
body[data-rp-shell] .sidebar-nav .nav-link.active .nav-icon--danger,
body[data-rp-shell] .sidebar-account .nav-link:hover .nav-icon--danger,
body[data-rp-shell] .sidebar-account .nav-link.active .nav-icon--danger,
body[data-rp-shell] .sidebar-account .nav-link[data-rp-logout-sidebar]:hover .nav-icon--danger {
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.22) !important;
}

body[data-rp-shell] .nav-icon .bi {
  font-size: 1.05rem;
}

html[data-theme="light"] body[data-rp-shell] .nav-icon,
html[data-theme="light"] body[data-rp-shell] .nav-icon--brand {
  background: rgba(var(--rp-brand-rgb), 0.1) !important;
  color: var(--rp-brand) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] body[data-rp-shell] .nav-icon--yellow {
  background: rgba(251, 191, 36, 0.16) !important;
  color: #d97706 !important;
}

html[data-theme="light"] body[data-rp-shell] .nav-icon--green {
  background: rgba(var(--rp-success-rgb), 0.14) !important;
  color: #059669 !important;
}

html[data-theme="light"] body[data-rp-shell] .nav-icon--danger {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
}

body[data-rp-shell] .sidebar-footer {
  border-top-color: var(--rp-glass-border) !important;
  color: var(--rp-text-muted) !important;
}

body[data-rp-shell] .sidebar-wallet {
  border-bottom-color: var(--rp-glass-border) !important;
}

body[data-rp-shell] .sidebar-wallet-label {
  color: var(--rp-text-muted);
}

body[data-rp-shell] .sidebar-wallet-balance {
  color: var(--rp-text);
}

body[data-rp-shell] .sidebar-account .nav-link[data-rp-logout-sidebar],
body[data-rp-shell] .sidebar-account .nav-link:last-child {
  color: #fca5a5 !important;
}

body[data-rp-shell] .sidebar-account {
  flex-shrink: 0;
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 1rem 0.35rem;
}

body[data-rp-shell] .sidebar-account .sidebar-section-label {
  margin-bottom: 0.35rem;
  padding-inline: 0.15rem;
}

body[data-rp-shell] .sidebar-account .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--rp-text-muted) !important;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

body[data-rp-shell] .sidebar-account .nav-link:hover,
body[data-rp-shell] .sidebar-account .nav-link:focus,
body[data-rp-shell] .sidebar-account .nav-link.active {
  background: rgba(var(--rp-brand-rgb), 0.12) !important;
  color: var(--rp-text) !important;
}

body[data-rp-shell] .sidebar-account .nav-icon,
body[data-rp-shell] .sidebar-account .nav-icon--brand,
body[data-rp-shell] .sidebar-account .nav-icon--yellow,
body[data-rp-shell] .sidebar-account .nav-icon--green,
body[data-rp-shell] .sidebar-account .nav-icon--danger {
  width: 1.25rem;
  height: auto;
  min-width: 1.25rem;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-rp-shell] .sidebar-account .nav-link:hover .nav-icon,
body[data-rp-shell] .sidebar-account .nav-link.active .nav-icon,
body[data-rp-shell] .sidebar-account .nav-link:hover .nav-icon--brand,
body[data-rp-shell] .sidebar-account .nav-link.active .nav-icon--brand,
body[data-rp-shell] .sidebar-account .nav-link:hover .nav-icon--yellow,
body[data-rp-shell] .sidebar-account .nav-link.active .nav-icon--yellow,
body[data-rp-shell] .sidebar-account .nav-link:hover .nav-icon--green,
body[data-rp-shell] .sidebar-account .nav-link.active .nav-icon--green,
body[data-rp-shell] .sidebar-account .nav-link:hover .nav-icon--danger,
body[data-rp-shell] .sidebar-account .nav-link.active .nav-icon--danger,
body[data-rp-shell] .sidebar-account .nav-link[data-rp-logout-sidebar]:hover .nav-icon--danger {
  background: transparent !important;
}

body[data-rp-shell] .sidebar-account .nav-icon .bi {
  font-size: 1.05rem;
}

body[data-rp-shell] .sidebar-account .nav-link[data-rp-logout-sidebar]:hover,
body[data-rp-shell] .sidebar-account .nav-link[data-rp-logout-sidebar]:focus {
  color: #fecaca !important;
}

html[data-theme="light"] body[data-rp-shell] .sidebar-account .nav-icon,
html[data-theme="light"] body[data-rp-shell] .sidebar-account .nav-icon--brand,
html[data-theme="light"] body[data-rp-shell] .sidebar-account .nav-icon--yellow,
html[data-theme="light"] body[data-rp-shell] .sidebar-account .nav-icon--green,
html[data-theme="light"] body[data-rp-shell] .sidebar-account .nav-icon--danger {
  background: transparent !important;
  box-shadow: none !important;
}

/* Top bar — sticky while main column scrolls */
body[data-rp-shell] [data-rp-topnav] {
  position: sticky;
  top: 0;
  z-index: 1030;
  flex-shrink: 0;
}

body[data-rp-shell] .rp-portal-topnav {
  position: sticky;
  top: 0;
  z-index: 1030;
}

body[data-rp-shell] .rp-portal-topnav .rp-public-nav,
body[data-rp-shell] .rp-portal-topnav .admin-navbar {
  background: var(--rp-glass-bg) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--rp-glass-border);
  box-shadow: var(--rp-shadow-soft);
}

body[data-rp-shell] .rp-portal-topnav .rp-public-nav {
  padding: 0.65rem 0;
}

body[data-rp-shell] .sidebar-toggle {
  border: 1px solid var(--rp-glass-border);
  background: rgba(var(--rp-brand-rgb), 0.08);
}

body[data-rp-shell] .sidebar-toggle span {
  background: var(--rp-text);
}

body[data-rp-shell] .profile-button {
  color: var(--rp-text);
  border-color: var(--rp-glass-border);
  background: rgba(var(--rp-brand-rgb), 0.06);
}

body[data-rp-shell] .dropdown-menu {
  background: var(--rp-bg-elevated);
  border-color: var(--rp-glass-border);
}

body[data-rp-shell] .dropdown-item {
  color: var(--rp-text);
}

body[data-rp-shell] .dropdown-item:hover {
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-text);
}

/* Cards — match rp-glass-card / feature-card from public index */
body[data-rp-shell] .panel,
body[data-rp-shell] .metric-card {
  background: var(--rp-glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--rp-glass-border);
  border-radius: var(--rp-radius-lg, 18px);
  box-shadow: var(--rp-shadow-elevated, 0 28px 65px rgba(0, 0, 0, 0.35));
  color: var(--rp-text);
}

html[data-theme="light"] body[data-rp-shell] .panel,
html[data-theme="light"] body[data-rp-shell] .metric-card {
  background: var(--rp-surface);
  box-shadow: var(--rp-shadow-elevated);
}

body[data-rp-shell] .panel-header {
  border-bottom-color: var(--rp-glass-border);
  background: rgba(var(--rp-brand-rgb), 0.04);
  color: var(--rp-text);
}

body[data-rp-shell] .panel-header p,
body[data-rp-shell] .panel-header h2,
body[data-rp-shell] .panel-header h3,
body[data-rp-shell] .panel-header .text-muted {
  color: var(--rp-text-muted) !important;
}

body[data-rp-shell] .page-heading .eyebrow {
  color: var(--rp-brand);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

body[data-rp-shell] .page-heading h1 {
  color: var(--rp-text);
}

body[data-rp-shell] .page-icon {
  background: rgba(var(--rp-brand-rgb), 0.14);
  color: var(--rp-brand);
  border: 1px solid rgba(var(--rp-brand-rgb), 0.22);
}

body[data-rp-shell] .page-icon .bi {
  font-size: 1.15rem;
}

body[data-rp-shell] .metric-card.metric-primary {
  border-color: rgba(var(--rp-brand-rgb), 0.35);
}

body[data-rp-shell] .metric-value {
  color: var(--rp-text);
}

body[data-rp-shell] .metric-label {
  color: var(--rp-text-muted);
}

body[data-rp-shell] .admin-footer {
  border-top: 1px solid var(--rp-glass-border);
  color: var(--rp-text-muted);
  background: transparent;
}

body[data-rp-shell] .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--rp-text);
  --bs-table-border-color: var(--rp-glass-border);
  --bs-table-striped-color: var(--rp-text);
  --bs-table-hover-color: var(--rp-text);
}

body[data-rp-shell] .table thead th {
  color: var(--rp-text-muted);
  font-weight: 600;
}

body[data-rp-shell] .text-muted,
body[data-rp-shell] .form-text {
  color: var(--rp-text-muted) !important;
}

body[data-rp-shell] .form-control,
body[data-rp-shell] .form-select {
  background: var(--rp-surface);
  border-color: var(--rp-glass-border);
  color: var(--rp-text);
}

html[data-theme="light"] body[data-rp-shell] .form-control,
html[data-theme="light"] body[data-rp-shell] .form-select {
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body[data-rp-shell] .form-control:focus,
body[data-rp-shell] .form-select:focus {
  border-color: rgba(var(--rp-brand-rgb), 0.45);
  box-shadow: 0 0 0 0.2rem rgba(var(--rp-brand-rgb), 0.15);
  color: var(--rp-text);
}

html[data-theme="dark"] body[data-rp-shell] .form-control,
html[data-theme="dark"] body[data-rp-shell] .form-select {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--rp-text);
}

html[data-theme="dark"] body[data-rp-shell] .form-control:focus,
html[data-theme="dark"] body[data-rp-shell] .form-select:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--rp-text);
}

html[data-theme="dark"] body[data-rp-shell] .form-select option,
html[data-theme="dark"] body[data-rp-shell] select option {
  background-color: var(--rp-bg-elevated, #2a2626);
  color: var(--rp-text, #fff);
}

html[data-theme="dark"] body[data-rp-shell] .form-select option:checked,
html[data-theme="dark"] body[data-rp-shell] select option:checked {
  background-color: rgba(var(--rp-brand-rgb), 0.35);
  color: #fff;
}

html[data-theme="dark"] body[data-rp-shell] .form-control::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

body[data-rp-shell] .panel-body {
  color: var(--rp-text);
}

body[data-rp-shell] .panel-body h2,
body[data-rp-shell] .panel-body h3,
body[data-rp-shell] .panel-body h4,
body[data-rp-shell] .panel-body h5,
body[data-rp-shell] .panel-body .h4,
body[data-rp-shell] .panel-body .h5,
body[data-rp-shell] .panel-body .h6 {
  color: var(--rp-text);
}

body[data-rp-shell] .panel-body code {
  color: var(--rp-brand-soft);
  background: rgba(var(--rp-brand-rgb), 0.12);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

body[data-rp-shell] .btn-primary {
  background: linear-gradient(135deg, var(--rp-brand), var(--rp-brand-soft));
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(var(--rp-brand-rgb), 0.25);
}

body[data-rp-shell] .btn-primary:hover,
body[data-rp-shell] .btn-primary:focus {
  color: #fff;
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--rp-brand-hover), var(--rp-brand));
}

body[data-rp-shell] .btn-outline-primary {
  border-color: rgba(var(--rp-brand-rgb), 0.45);
  color: var(--rp-brand);
  font-weight: 600;
}

html[data-theme="light"] body[data-rp-shell] .btn-outline-primary {
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

body[data-rp-shell] .btn-outline-primary:hover {
  background: rgba(var(--rp-brand-rgb), 0.12);
  border-color: var(--rp-brand);
  color: var(--rp-text);
}

body[data-rp-shell] .btn-outline-secondary {
  border-color: var(--rp-glass-border);
  color: var(--rp-text-muted);
}

body[data-rp-shell] .btn-outline-secondary:hover {
  background: rgba(var(--rp-brand-rgb), 0.08);
  color: var(--rp-text);
}

.rp-filter-tabs .btn-primary {
  background: linear-gradient(135deg, var(--rp-brand), var(--rp-brand-soft));
}

.rp-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rp-filter-tabs .btn {
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
}

.rp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.rp-stat-pill {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(var(--rp-brand-rgb), 0.08);
  border: 1px solid rgba(var(--rp-brand-rgb), 0.14);
  box-shadow: var(--rp-shadow-soft, none);
}

html[data-theme="light"] .rp-stat-pill {
  background: var(--rp-surface);
  border-color: var(--rp-glass-border);
  box-shadow: var(--rp-shadow-card);
}

.rp-stat-pill small {
  display: block;
  color: var(--rp-text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rp-stat-pill strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 0.15rem;
  color: var(--rp-text);
}

.rp-user-card {
  padding: 1.5rem;
  border-radius: var(--rp-radius-lg, 18px);
  background: var(--rp-glass-bg);
  border: 1px solid var(--rp-glass-border);
  height: 100%;
  box-shadow: var(--rp-shadow-card);
  color: var(--rp-text);
}

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

.rp-user-card h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
  color: var(--rp-text);
}

.rp-user-card .meta {
  color: var(--rp-text-muted);
  font-size: 0.82rem;
}

.rp-status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.rp-status-badge.completed,
.rp-status-badge.active {
  background: rgba(var(--rp-success-rgb), 0.15);
  color: var(--rp-success);
}

.rp-status-badge.pending,
.rp-status-badge.processing {
  background: rgba(251, 191, 36, 0.15);
  color: var(--rp-warning);
}

.rp-status-badge.failed,
.rp-status-badge.inactive,
.rp-status-badge.suspended {
  background: rgba(239, 68, 68, 0.15);
  color: var(--rp-danger);
}

/* Mobile bottom nav — glass bar */
body[data-rp-shell="user"] .rp-bottom-nav {
  background: var(--rp-glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--rp-glass-border);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, calc(var(--rp-shadow-opacity, 0.15) * 0.35));
}

html[data-theme="light"] body[data-rp-shell="user"] .rp-bottom-nav {
  background: var(--rp-surface);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
}

body[data-rp-shell="user"] .rp-bottom-nav-link {
  color: var(--rp-text-muted);
  font-weight: 500;
}

body[data-rp-shell="user"] .rp-bottom-nav-link.active,
body[data-rp-shell="user"] .rp-bottom-nav-link:hover {
  color: var(--rp-brand);
}

body[data-rp-shell="user"] .rp-bottom-nav-link .bi {
  font-size: 1.2rem;
}

/* Collapsed sidebar — icon rail */
@media (min-width: 992px) {
  body.sidebar-mini[data-rp-shell] .admin-sidebar {
    width: var(--sidebar-mini-width);
  }

  body.sidebar-mini[data-rp-shell] .admin-main {
    margin-left: var(--sidebar-mini-width);
  }

  body.sidebar-mini[data-rp-shell] .brand-copy,
  body.sidebar-mini[data-rp-shell] .nav-text,
  body.sidebar-mini[data-rp-shell] .sidebar-footer-text,
  body.sidebar-mini[data-rp-shell] .sidebar-section-label,
  body.sidebar-mini[data-rp-shell] .sidebar-wallet {
    display: none !important;
  }

  body.sidebar-mini[data-rp-shell] .sidebar-header {
    border-bottom-color: var(--rp-glass-border);
    padding: 0.85rem 0.35rem;
    display: flex;
    justify-content: center;
  }

  body.sidebar-mini[data-rp-shell] .brand-mark {
    justify-content: center;
    width: 100%;
  }

  body.sidebar-mini[data-rp-shell] .brand-mark .brand-logo {
    width: 38px;
    height: 38px;
    max-width: 38px;
    object-fit: contain;
  }

  body.sidebar-mini[data-rp-shell] .sidebar-nav {
    padding-inline: 0.35rem;
  }

  body.sidebar-mini[data-rp-shell] .sidebar-nav .nav-link,
  body.sidebar-mini[data-rp-shell] .sidebar-account .nav-link {
    justify-content: center;
    padding-inline: 0.5rem;
    gap: 0;
    white-space: normal;
  }

  body.sidebar-mini[data-rp-shell] .sidebar-nav .nav-link:hover,
  body.sidebar-mini[data-rp-shell] .sidebar-nav .nav-link:focus,
  body.sidebar-mini[data-rp-shell] .sidebar-account .nav-link:hover,
  body.sidebar-mini[data-rp-shell] .sidebar-account .nav-link:focus {
    transform: none;
  }

  body.sidebar-mini[data-rp-shell] .sidebar-account {
    padding-top: 0.35rem;
  }

  body.sidebar-mini[data-rp-shell] .sidebar-footer {
    justify-content: center;
    margin-inline: 0.35rem;
    padding-inline: 0;
  }

  body.sidebar-mini[data-rp-shell] .sidebar-footer .status-dot {
    margin-inline: auto;
  }

  body.sidebar-mini[data-rp-shell] .nav-icon {
    margin: 0;
  }
}

@media (max-width: 991.98px) {
  body[data-rp-shell="user"] .dashboard-content {
    padding-bottom: 4.5rem;
  }
}

.rp-admin-dashboard .rp-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(var(--rp-brand-rgb), 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.12), rgba(var(--rp-success-rgb), 0.08)),
    var(--rp-glass-bg);
  color: var(--rp-text);
  box-shadow: var(--rp-shadow-card);
}

html[data-theme="light"] .rp-admin-dashboard .rp-admin-hero {
  background: linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.08), rgba(var(--rp-success-rgb), 0.06)), #fff;
}

.rp-admin-dashboard .rp-admin-hero h1 {
  color: var(--rp-brand);
  font-size: clamp(1.45rem, 2.2vw, 2.35rem);
  font-weight: 800;
}

.rp-admin-dashboard .rp-admin-hero p:not(.eyebrow) {
  color: var(--rp-text-muted);
}

.rp-admin-dashboard .rp-admin-stat-card {
  min-height: 178px;
}

.rp-admin-dashboard .rp-admin-stat-card .metric-top {
  justify-content: flex-start;
}

.rp-admin-dashboard .rp-admin-money {
  font-size: clamp(1.35rem, 2.1vw, 2.05rem);
  overflow-wrap: anywhere;
}

.rp-admin-dashboard .rp-admin-panel {
  border-radius: 8px;
}

.rp-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--rp-success-rgb), 0.13);
  color: var(--rp-success);
  font-size: 0.78rem;
  font-weight: 800;
}

.rp-live-badge .bi {
  font-size: 0.45rem;
  animation: rpPulse 1.8s ease-in-out infinite;
}

.rp-market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.rp-market-cell {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1rem;
  border-top: 1px solid var(--rp-glass-border);
}

.rp-market-cell span {
  color: var(--rp-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rp-market-cell strong {
  color: var(--rp-text);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.rp-market-cell small {
  font-weight: 700;
}

.rp-activity-feed,
.rp-transaction-list,
.rp-user-list {
  display: grid;
  gap: 0.75rem;
}

.rp-activity-feed {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.rp-activity-row,
.rp-user-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
}

.rp-activity-row {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rp-glass-border);
}

.rp-activity-row:last-child,
.rp-transaction-row:last-child,
.rp-user-row:last-child {
  border-bottom: 0;
}

.rp-activity-icon,
.rp-user-avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  flex: 0 0 auto;
}

.rp-activity-icon {
  background: rgba(var(--rp-brand-rgb), 0.12);
  color: var(--rp-brand);
}

.rp-activity-icon.success {
  background: rgba(var(--rp-success-rgb), 0.14);
  color: var(--rp-success);
}

.rp-activity-icon.warning {
  background: rgba(251, 191, 36, 0.16);
  color: var(--rp-warning);
}

.rp-activity-icon.info {
  background: rgba(14, 165, 233, 0.14);
  color: var(--rp-info);
}

.rp-activity-row div,
.rp-user-main {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.rp-activity-row strong,
.rp-user-row strong,
.rp-transaction-row strong {
  color: var(--rp-text);
}

.rp-activity-row span:not(.rp-activity-icon),
.rp-activity-row small,
.rp-user-main span,
.rp-transaction-main span {
  color: var(--rp-text-muted);
  font-size: 0.86rem;
}

.rp-transaction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rp-glass-border);
}

.rp-transaction-main {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.rp-transaction-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-transaction-side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
  min-width: 180px;
}

.rp-user-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rp-glass-border);
}

.rp-user-avatar {
  background: linear-gradient(135deg, var(--rp-brand), var(--rp-success));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rp-empty-state {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 2rem 1rem;
  color: var(--rp-text-muted);
  text-align: center;
}

.rp-empty-state .bi {
  font-size: 2rem;
  opacity: 0.55;
}

.rp-empty-state p {
  margin: 0;
}

.rp-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.rp-quick-actions .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 8px;
  white-space: normal;
}

.rp-spin {
  animation: rpSpin 0.8s linear infinite;
}

@keyframes rpSpin {
  to { transform: rotate(360deg); }
}

@keyframes rpPulse {
  50% { opacity: 0.35; }
}

@media (max-width: 767.98px) {
  .rp-admin-dashboard .rp-admin-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 1rem;
  }

  .rp-market-grid {
    grid-template-columns: 1fr;
  }

  .rp-transaction-row {
    grid-template-columns: 1fr;
  }

  .rp-transaction-main span {
    white-space: normal;
  }

  .rp-transaction-side {
    min-width: 0;
    justify-content: space-between;
  }

  .rp-user-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rp-user-row .rp-status-badge {
    grid-column: 2;
    justify-self: start;
  }
}

.rp-admin-users .rp-admin-user-stat {
  min-height: 142px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.rp-admin-users .rp-admin-user-stat .metric-icon {
  margin-bottom: 0.8rem;
}

.rp-admin-users-filter {
  border-radius: 8px;
}

.rp-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 999px;
  color: var(--rp-text-muted);
  background: rgba(var(--rp-brand-rgb), 0.04);
  font-size: 0.86rem;
  font-weight: 700;
}

.rp-check-pill .form-check-input {
  margin: 0;
}

.rp-admin-user-card {
  height: 100%;
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: var(--rp-glass-bg);
  color: var(--rp-text);
  box-shadow: var(--rp-shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

html[data-theme="light"] .rp-admin-user-card {
  background: var(--rp-surface);
}

.rp-admin-user-card:hover {
  border-color: rgba(var(--rp-brand-rgb), 0.32);
  box-shadow: var(--rp-shadow-elevated);
  transform: translateY(-2px);
}

.rp-admin-user-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: flex-start;
}

.rp-user-avatar-lg {
  width: 58px;
  height: 58px;
  font-size: 1.05rem;
}

.rp-admin-user-title {
  min-width: 0;
}

.rp-admin-user-title h2 {
  margin: 0 0 0.25rem;
  color: var(--rp-text);
  font-size: 1.02rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-admin-user-title p {
  margin: 0;
  color: var(--rp-text-muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.rp-admin-user-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.rp-admin-user-facts div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.05);
}

html[data-theme="light"] .rp-admin-user-facts div {
  background: #fff;
}

.rp-admin-user-facts span {
  color: var(--rp-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rp-admin-user-facts strong {
  color: var(--rp-text);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.rp-admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rp-admin-user-actions .btn {
  min-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 8px;
}

.rp-admin-user-note {
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.1);
  color: var(--rp-warning);
  font-size: 0.82rem;
  font-weight: 700;
}

.rp-admin-user-detail .rp-admin-hero,
.rp-admin-users .rp-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(var(--rp-brand-rgb), 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.1), rgba(var(--rp-success-rgb), 0.07)),
    var(--rp-glass-bg);
  color: var(--rp-text);
  box-shadow: var(--rp-shadow-card);
}

html[data-theme="light"] .rp-admin-user-detail .rp-admin-hero,
html[data-theme="light"] .rp-admin-users .rp-admin-hero {
  background: linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.08), rgba(var(--rp-success-rgb), 0.06)), #fff;
}

.rp-admin-user-detail .rp-admin-hero h1,
.rp-admin-users .rp-admin-hero h1 {
  color: var(--rp-brand);
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  font-weight: 800;
}

.rp-admin-user-detail .rp-admin-hero p:not(.eyebrow),
.rp-admin-users .rp-admin-hero p:not(.eyebrow) {
  color: var(--rp-text-muted);
}

.rp-admin-profile-card {
  padding: 1.1rem;
  border-radius: 8px;
}

.rp-admin-profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}

.rp-admin-profile-head h2 {
  margin: 0 0 0.2rem;
  color: var(--rp-text);
  font-size: 1.25rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.rp-admin-profile-head p {
  margin: 0 0 0.45rem;
  color: var(--rp-text-muted);
  overflow-wrap: anywhere;
}

.rp-user-avatar-xl {
  width: 74px;
  height: 74px;
  font-size: 1.25rem;
}

.rp-wallet-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(var(--rp-success-rgb), 0.22);
  border-radius: 8px;
  background: rgba(var(--rp-success-rgb), 0.08);
}

.rp-wallet-summary span {
  color: var(--rp-text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rp-wallet-summary strong {
  color: var(--rp-text);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}

.rp-admin-wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.rp-admin-wallet-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.045);
  color: var(--rp-text);
}

html[data-theme="light"] .rp-admin-wallet-card {
  background: #fff;
}

.rp-admin-wallet-card h3 {
  margin: 0 0 0.15rem;
  color: var(--rp-text);
  font-size: 0.98rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.rp-admin-wallet-card p,
.rp-admin-wallet-card small {
  display: block;
  margin: 0 0 0.4rem;
  color: var(--rp-text-muted);
  font-size: 0.82rem;
}

.rp-admin-wallet-card > strong {
  grid-column: 1 / -1;
  justify-self: end;
  color: var(--rp-text);
  font-size: 1.25rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.rp-admin-wallet-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--rp-brand-rgb), 0.13);
  color: var(--rp-brand);
}

.rp-admin-wallet-icon.vault {
  background: rgba(251, 191, 36, 0.15);
  color: var(--rp-warning);
}

.rp-admin-ops .rp-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(var(--rp-brand-rgb), 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.1), rgba(var(--rp-success-rgb), 0.07)),
    var(--rp-glass-bg);
  color: var(--rp-text);
  box-shadow: var(--rp-shadow-card);
}

html[data-theme="light"] .rp-admin-ops .rp-admin-hero {
  background: linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.08), rgba(var(--rp-success-rgb), 0.06)), #fff;
}

.rp-admin-ops .rp-admin-hero h1 {
  color: var(--rp-brand);
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  font-weight: 800;
}

.rp-admin-ops .rp-admin-hero p:not(.eyebrow) {
  color: var(--rp-text-muted);
}

.rp-admin-ops-stat {
  min-height: 142px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.rp-admin-ops-stat .metric-value {
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  overflow-wrap: anywhere;
}

.rp-admin-ops-filter {
  border-radius: 8px;
}

.rp-admin-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.rp-admin-op-card {
  min-height: 100%;
  display: grid;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: var(--rp-glass-bg);
  color: var(--rp-text);
  box-shadow: var(--rp-shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

html[data-theme="light"] .rp-admin-op-card {
  background: var(--rp-surface);
}

.rp-admin-op-card:hover {
  border-color: rgba(var(--rp-brand-rgb), 0.32);
  box-shadow: var(--rp-shadow-elevated);
  transform: translateY(-2px);
}

.rp-admin-op-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
}

.rp-admin-op-top h2 {
  margin: 0 0 0.25rem;
  color: var(--rp-text);
  font-size: 1rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.rp-admin-op-top p {
  margin: 0;
  color: var(--rp-text-muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.rp-admin-op-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--rp-brand-rgb), 0.13);
  color: var(--rp-brand);
}

.rp-admin-op-icon.success {
  background: rgba(var(--rp-success-rgb), 0.14);
  color: var(--rp-success);
}

.rp-admin-op-icon.warning {
  background: rgba(251, 191, 36, 0.16);
  color: var(--rp-warning);
}

.rp-admin-op-icon.info {
  background: rgba(14, 165, 233, 0.14);
  color: var(--rp-info);
}

.rp-admin-op-amount {
  color: var(--rp-text);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.rp-admin-op-facts,
.rp-admin-op-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.rp-admin-op-facts div,
.rp-admin-op-detail-grid div,
.rp-admin-op-route div {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 0.18rem;
  padding: 0.7rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.05);
}

html[data-theme="light"] .rp-admin-op-facts div,
html[data-theme="light"] .rp-admin-op-detail-grid div,
html[data-theme="light"] .rp-admin-op-route div {
  background: #fff;
}

.rp-admin-op-facts span,
.rp-admin-op-detail-grid span,
.rp-admin-op-route span {
  color: var(--rp-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rp-admin-op-facts strong,
.rp-admin-op-detail-grid strong,
.rp-admin-op-route strong {
  color: var(--rp-text);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.rp-admin-op-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
}

.rp-admin-op-route > .bi {
  color: var(--rp-brand);
}

.rp-admin-op-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rp-admin-op-actions .btn {
  min-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 8px;
}

.rp-admin-op-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.05);
}

.rp-admin-op-detail-head h3 {
  margin: 0.55rem 0 0.2rem;
  color: var(--rp-text);
  font-size: 1.15rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.rp-admin-op-detail-head p {
  margin: 0;
  color: var(--rp-text-muted);
  overflow-wrap: anywhere;
}

.rp-admin-op-detail-head strong {
  color: var(--rp-text);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}

.rp-admin-control .rp-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(var(--rp-brand-rgb), 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.1), rgba(var(--rp-success-rgb), 0.07)),
    var(--rp-glass-bg);
  color: var(--rp-text);
  box-shadow: var(--rp-shadow-card);
}

html[data-theme="light"] .rp-admin-control .rp-admin-hero {
  background: linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.08), rgba(var(--rp-success-rgb), 0.06)), #fff;
}

.rp-admin-control .rp-admin-hero h1 {
  color: var(--rp-brand);
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  font-weight: 800;
}

.rp-admin-control .rp-admin-hero p:not(.eyebrow) {
  color: var(--rp-text-muted);
}

.rp-admin-control-stat {
  min-height: 142px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.rp-admin-control-stat .metric-value {
  font-size: clamp(1.05rem, 1.75vw, 1.55rem);
  overflow-wrap: anywhere;
}

.rp-admin-control-filter {
  border-radius: 8px;
}

.rp-admin-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.rp-admin-control-card {
  min-height: 100%;
  display: grid;
  gap: 1rem;
  padding: 1.05rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: var(--rp-glass-bg);
  color: var(--rp-text);
  box-shadow: var(--rp-shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

html[data-theme="light"] .rp-admin-control-card {
  background: var(--rp-surface);
}

.rp-admin-control-card:hover {
  border-color: rgba(var(--rp-brand-rgb), 0.32);
  box-shadow: var(--rp-shadow-elevated);
  transform: translateY(-2px);
}

.rp-admin-control-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
}

.rp-admin-control-top h2 {
  margin: 0 0 0.25rem;
  color: var(--rp-text);
  font-size: 1rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.rp-admin-control-top p {
  margin: 0;
  color: var(--rp-text-muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.rp-admin-control-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--rp-brand-rgb), 0.13);
  color: var(--rp-brand);
}

.rp-admin-control-icon.success {
  background: rgba(var(--rp-success-rgb), 0.14);
  color: var(--rp-success);
}

.rp-admin-control-icon.danger {
  background: rgba(239, 68, 68, 0.14);
  color: var(--rp-danger);
}

.rp-admin-control-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(var(--rp-brand-rgb), 0.18);
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.06);
}

.rp-admin-control-meta span {
  color: var(--rp-text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

.rp-admin-control-meta strong {
  color: var(--rp-text);
  font-size: 1.2rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}

.rp-admin-control-facts,
.rp-admin-control-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.rp-admin-control-facts div,
.rp-admin-control-detail-grid div {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 0.18rem;
  padding: 0.7rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.05);
}

html[data-theme="light"] .rp-admin-control-facts div,
html[data-theme="light"] .rp-admin-control-detail-grid div {
  background: #fff;
}

.rp-admin-control-facts span,
.rp-admin-control-detail-grid span {
  color: var(--rp-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rp-admin-control-facts strong,
.rp-admin-control-detail-grid strong {
  color: var(--rp-text);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.rp-admin-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Reviews */
.rp-review-rating {
  display: inline-flex;
  gap: 0.25rem;
}

.rp-review-star {
  background: none;
  border: none;
  padding: 0.1rem;
  font-size: 1.6rem;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.12s ease, color 0.12s ease;
}

.rp-review-star:hover {
  transform: scale(1.12);
}

.rp-review-star.is-on {
  color: #f59e0b;
}

.rp-review-stars-sm {
  font-size: 0.95rem;
  color: #f59e0b;
}

.rp-review-stars-sm .bi-star {
  color: #cbd5e1;
}

.rp-review-body {
  margin: 0 0 0.85rem;
  font-style: italic;
  color: var(--rp-portal-text, #334155);
}

.rp-review-mine {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(248, 250, 252, 0.6);
}

.rp-admin-control-actions .btn {
  min-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 8px;
}

.rp-admin-control-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.05);
}

.rp-admin-control-detail-head h3 {
  margin: 0.55rem 0 0.2rem;
  color: var(--rp-text);
  font-size: 1.15rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.rp-admin-control-detail-head p {
  margin: 0;
  color: var(--rp-text-muted);
}

.rp-admin-control-detail-head strong {
  color: var(--rp-text);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}

.rp-admin-code-block {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.18);
  color: var(--rp-text);
  font-size: 0.78rem;
  white-space: pre-wrap;
}

.rp-media-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.08);
}

.rp-media-preview img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
}

.rp-media-preview div {
  width: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--rp-brand);
  font-size: 2.5rem;
}

.rp-admin-list {
  display: grid;
  gap: 0.7rem;
}

.rp-admin-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--rp-glass-border);
  border-radius: 8px;
  background: rgba(var(--rp-brand-rgb), 0.05);
}

html[data-theme="light"] .rp-admin-list-row {
  background: #fff;
}

.rp-admin-list-row div {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.rp-admin-list-row strong {
  color: var(--rp-text);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.rp-admin-list-row span {
  color: var(--rp-text-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .rp-admin-user-detail .rp-admin-hero,
  .rp-admin-users .rp-admin-hero,
  .rp-admin-ops .rp-admin-hero,
  .rp-admin-control .rp-admin-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 1rem;
  }

  .rp-admin-user-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rp-admin-user-head .rp-status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .rp-admin-user-facts {
    grid-template-columns: 1fr;
  }

  .rp-admin-user-actions .btn {
    flex: 1 1 100%;
  }

  .rp-wallet-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .rp-wallet-summary strong {
    text-align: left;
  }

  .rp-admin-wallet-grid {
    grid-template-columns: 1fr;
  }

  .rp-admin-ops-grid,
  .rp-admin-op-facts,
  .rp-admin-op-detail-grid,
  .rp-admin-op-route {
    grid-template-columns: 1fr;
  }

  .rp-admin-op-route > .bi {
    justify-self: center;
    transform: rotate(90deg);
  }

  .rp-admin-op-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rp-admin-op-top .rp-status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .rp-admin-op-actions .btn {
    flex: 1 1 100%;
  }

  .rp-admin-op-detail-head {
    flex-direction: column;
  }

  .rp-admin-op-detail-head strong {
    text-align: left;
  }

  .rp-admin-control-grid,
  .rp-admin-control-facts,
  .rp-admin-control-detail-grid {
    grid-template-columns: 1fr;
  }

  .rp-admin-control-top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rp-admin-control-top .rp-status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .rp-admin-control-actions .btn {
    flex: 1 1 100%;
  }

  .rp-admin-control-meta,
  .rp-admin-control-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rp-admin-control-meta strong,
  .rp-admin-control-detail-head strong {
    text-align: left;
  }

  .rp-admin-list-row {
    grid-template-columns: 1fr;
  }

  .rp-admin-list-row .text-end {
    text-align: left !important;
  }
}
