/* ==========================================================================
   AxisVPN Mini App - Super Admin Control Center Styles
   Ultra-Polished Dark Glassmorphic Design matching Native AxisVPN Aesthetics
   Left-Side Two-Mode Sidebar (Compact 62px / Full 260px) + Analytics Deck
   ========================================================================== */

/* --------------------------------------------------------------------------
   Admin Shield Trigger Badge on Profile Screen
   -------------------------------------------------------------------------- */
.admin-profile-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  border: 2.5px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.55), 0 0 10px rgba(167, 139, 250, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  z-index: 10;
}

[data-theme="dark"] .admin-profile-badge {
  border-color: #1E1035;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.65), 0 0 12px rgba(167, 139, 250, 0.5);
}

.admin-profile-badge:hover {
  transform: scale(1.16) rotate(8deg);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.8);
}

.admin-profile-badge:active {
  transform: scale(0.92);
}

/* --------------------------------------------------------------------------
   Root Layout Container
   -------------------------------------------------------------------------- */
.admin-layout-root {
  min-height: 100vh;
  position: relative;
  box-sizing: border-box;
  background: #0B0714;
  color: #F8FAFC;
  display: flex;
  overflow-x: hidden;
}

[data-theme="light"] .admin-layout-root {
  background: #F8FAFC;
  color: #1E293B;
}

/* --------------------------------------------------------------------------
   Left-Side Two-Mode Sidebar (Compact 62px / Full 260px)
   -------------------------------------------------------------------------- */
.admin-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 62px;
  background: rgba(18, 13, 28, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10040;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
  overflow: hidden;
  box-sizing: border-box;
}

[data-theme="light"] .admin-sidebar {
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid rgba(139, 92, 246, 0.15);
  box-shadow: 4px 0 20px rgba(124, 58, 237, 0.08);
}

.admin-sidebar.is-full {
  width: 260px;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.7);
}

/* Backdrop for Mobile overlay */
.admin-sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 3, 12, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10035;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.admin-sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Header Area */
.admin-sidebar-header {
  padding: calc(14px + var(--tg-total-safe-top, 0px)) 10px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 64px;
  box-sizing: border-box;
}

[data-theme="light"] .admin-sidebar-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.admin-sidebar-user-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.admin-sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.admin-sidebar-user-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  text-align: right;
  transition: opacity 0.22s ease, width 0.22s ease;
}

.admin-sidebar.is-full .admin-sidebar-user-text {
  opacity: 1;
  width: auto;
}

.admin-sidebar-name {
  font-size: 0.86rem;
  font-weight: 800;
  color: #F8FAFC;
}

[data-theme="light"] .admin-sidebar-name {
  color: #1E293B;
}

.admin-sidebar-sub {
  font-size: 0.68rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

/* Sidebar Mode Toggle Button (Compact <-> Full) */
.admin-sidebar-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 auto;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .admin-sidebar-toggle-btn {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.18);
  color: #6D28D9;
}

.admin-sidebar-toggle-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.14);
}

.admin-sidebar-toggle-btn:active {
  transform: scale(0.92);
}

.admin-sidebar.is-full .admin-sidebar-toggle-btn {
  margin: 0;
}

/* Sidebar Scrollable Body */
.admin-sidebar-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
  box-sizing: border-box;
}

.admin-sidebar-body::-webkit-scrollbar {
  display: none;
}

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

.admin-sidebar-section-title {
  font-size: 0.66rem;
  font-weight: 800;
  color: #A78BFA;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 10px 4px 10px;
  white-space: nowrap;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, height 0.2s ease;
}

.admin-sidebar.is-full .admin-sidebar-section-title {
  opacity: 1;
  height: auto;
}

.admin-sidebar.is-compact .admin-sidebar-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 5px;
  margin-bottom: 2px;
}

.admin-sidebar.is-compact .admin-sidebar-section:last-child {
  border-bottom: none;
}

/* Sidebar Item Button */
.admin-sidebar-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 7px 5px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #CBD5E1;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  text-decoration: none;
}

[data-theme="light"] .admin-sidebar-item {
  color: #475569;
}

.admin-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

[data-theme="light"] .admin-sidebar-item:hover {
  background: rgba(124, 58, 237, 0.06);
  color: #1E293B;
}

.admin-sidebar-item.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28) 0%, rgba(91, 33, 182, 0.16) 100%);
  border-color: rgba(139, 92, 246, 0.35);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.2);
}

[data-theme="light"] .admin-sidebar-item.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(91, 33, 182, 0.06) 100%);
  border-color: rgba(124, 58, 237, 0.25);
  color: #6D28D9;
}

/* Active indicator notch in compact mode */
.admin-sidebar.is-compact .admin-sidebar-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #8B5CF6;
  box-shadow: 0 0 8px #8B5CF6;
}

/* Icon Box inside Sidebar Item */
.admin-sidebar-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C4B5FD;
  flex-shrink: 0;
  margin: 0 auto;
  position: relative;
  transition: all 0.2s ease;
}

[data-theme="light"] .admin-sidebar-icon-box {
  background: rgba(124, 58, 237, 0.05);
  color: #7C3AED;
}

.admin-sidebar.is-full .admin-sidebar-icon-box {
  margin: 0;
}

.admin-sidebar-item.active .admin-sidebar-icon-box {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.4);
}

/* Label text in Full Mode */
.admin-sidebar-item-label {
  display: flex;
  flex-direction: column;
  margin-right: 10px;
  margin-left: 10px;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  overflow: hidden;
  text-align: right;
  transition: opacity 0.22s ease, width 0.22s ease;
}

[dir="ltr"] .admin-sidebar-item-label {
  text-align: left;
}

.admin-sidebar.is-full .admin-sidebar-item-label {
  opacity: 1;
  width: auto;
}

.admin-sidebar-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #F8FAFC;
}

[data-theme="light"] .admin-sidebar-title {
  color: #1E293B;
}

.admin-sidebar-desc {
  font-size: 0.68rem;
  color: #94A3B8;
}

.admin-sidebar-badge {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.64rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 9999px;
  margin-right: auto;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: pulseBeacon 2s infinite;
  display: none;
}

.admin-sidebar.is-compact .admin-sidebar-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  padding: 1px 4px;
  font-size: 0.58rem;
  display: inline-block;
}

.admin-sidebar.is-full .admin-sidebar-badge {
  display: inline-block;
}

/* Sidebar Footer Diagnostics */
.admin-sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
}

.admin-sidebar.is-compact .admin-sidebar-footer {
  justify-content: center;
}

.admin-sidebar.is-compact .admin-sidebar-footer-extra {
  display: none;
}

/* --------------------------------------------------------------------------
   Main Content Stage (Offset by Left Sidebar Width)
   -------------------------------------------------------------------------- */
.admin-main-stage {
  flex: 1;
  margin-left: 62px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 96px;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Upper Purple Canvas Hero Section
   -------------------------------------------------------------------------- */
.admin-purple-hero {
  background: linear-gradient(145deg, #1A0F2E 0%, #2A104E 50%, #431A85 100%);
  padding: calc(14px + var(--tg-total-safe-top, 0px)) 16px 28px 16px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 8px 28px -4px rgba(67, 26, 133, 0.35);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.admin-purple-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18) 0%, rgba(109, 40, 217, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.admin-hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
  margin-bottom: 12px;
}

.admin-back-pill {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-back-pill:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.18);
}

.admin-back-pill:active {
  transform: scale(0.92);
}

.admin-active-module-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-hero-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-super-pill {
  font-size: 0.68rem;
  font-weight: 800;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.admin-live-pulse-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseBeacon 1.8s infinite;
}

.admin-hero-desc {
  font-size: 0.76rem;
  color: #DDD6FE;
  line-height: 1.4;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Dynamic Tab Body Area
   -------------------------------------------------------------------------- */
.admin-tab-body {
  padding: 16px 14px;
  box-sizing: border-box;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --------------------------------------------------------------------------
   OVERVIEW TAB: Analytics-Style Cards & Micro-Charts System
   -------------------------------------------------------------------------- */
.admin-metrics-grid,
.admin-analytics-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

/* Individual Analytics Info Card matching AxisVPN design language */
.admin-analytics-card {
  border-radius: 18px;
  padding: 14px 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(26, 20, 42, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  animation: analyticsCardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-sizing: border-box;
  min-height: 138px;
}

[data-theme="light"] .admin-analytics-card {
  background: #FFFFFF;
  border: 1px solid rgba(139, 92, 246, 0.14);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}

.admin-analytics-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.3);
}

/* Card 1: Subscribers (Soft Purple Tint) */
.admin-analytics-stagger-1 {
  animation-delay: 0.05s;
  background: 
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, rgba(28, 20, 46, 0.92) 0%, rgba(20, 14, 34, 0.92) 100%);
}

[data-theme="light"] .admin-analytics-stagger-1 {
  background: 
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
    linear-gradient(160deg, #FFFFFF 0%, #FAF6FE 100%);
}

/* Card 2: Active Services (Soft Emerald Tint) */
.admin-analytics-stagger-2 {
  animation-delay: 0.10s;
  background: 
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, rgba(20, 32, 28, 0.92) 0%, rgba(14, 24, 20, 0.92) 100%);
}

[data-theme="light"] .admin-analytics-stagger-2 {
  background: 
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
    linear-gradient(160deg, #FFFFFF 0%, #F5FBF8 100%);
}

/* Card 3: Revenue (Soft Amber Tint) */
.admin-analytics-stagger-3 {
  animation-delay: 0.15s;
  background: 
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, rgba(34, 26, 18, 0.92) 0%, rgba(24, 18, 12, 0.92) 100%);
}

[data-theme="light"] .admin-analytics-stagger-3 {
  background: 
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 60%),
    linear-gradient(160deg, #FFFFFF 0%, #FFFBF5 100%);
}

/* Card 4: Receipts (Soft Coral Tint) */
.admin-analytics-stagger-4 {
  animation-delay: 0.20s;
  background: 
    radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, rgba(36, 18, 22, 0.92) 0%, rgba(24, 12, 16, 0.92) 100%);
}

[data-theme="light"] .admin-analytics-stagger-4 {
  background: 
    radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.06) 0%, transparent 60%),
    linear-gradient(160deg, #FFFFFF 0%, #FFF5F6 100%);
}

/* Card Header */
.admin-analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.admin-analytics-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #94A3B8;
}

[data-theme="light"] .admin-analytics-title {
  color: #64748B;
}

.admin-analytics-metric-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin: 4px 0 8px 0;
}

.admin-analytics-number {
  font-size: 1.35rem;
  font-weight: 900;
  color: #F8FAFC;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

[data-theme="light"] .admin-analytics-number {
  color: #1E293B;
}

.admin-analytics-unit {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94A3B8;
}

/* Micro-Chart Vertical Bars */
.admin-analytics-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  padding-bottom: 2px;
}

.admin-analytics-bar {
  width: 3.5px;
  background: var(--brand-purple, #7C3AED);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  animation: barGrowUp 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.admin-analytics-footer-insight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 5px;
}

[data-theme="light"] .admin-analytics-footer-insight {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   Quick Operations & Diagnostic Elements
   -------------------------------------------------------------------------- */
.admin-section-header {
  font-size: 0.88rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 16px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

[data-theme="light"] .admin-section-header {
  color: #1E293B;
}

.admin-action-btn-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

/* Polished Quick Operation Cards */
.admin-quick-op-card {
  background: rgba(26, 20, 42, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-align: right;
}

[data-theme="light"] .admin-quick-op-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.14);
}

.admin-quick-op-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.25);
}

.admin-quick-op-card:active {
  transform: scale(0.97);
}

.admin-quick-op-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-quick-op-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-quick-op-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #F8FAFC;
}

[data-theme="light"] .admin-quick-op-title {
  color: #1E293B;
}

.admin-quick-op-desc {
  font-size: 0.68rem;
  color: #94A3B8;
}

/* System Diagnostics Card & Status Badges */
.admin-health-card {
  background: rgba(24, 18, 38, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .admin-health-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.15);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.06);
}

.admin-health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
}

[data-theme="light"] .admin-health-row {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.admin-health-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.admin-health-label {
  color: #94A3B8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}

[data-theme="light"] .admin-health-label {
  color: #64748B;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-status-badge.is-healthy {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34D399;
}

.admin-status-badge.is-disabled {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #F87171;
}

.admin-status-badge.is-neutral {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.22);
  color: #C4B5FD;
}

.admin-status-badge.is-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #FBBF24;
}

/* --------------------------------------------------------------------------
   Subsystem Generic Item Card
   -------------------------------------------------------------------------- */
.admin-subsystem-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-subsystem-heading {
  font-size: 0.92rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 7px;
}

[data-theme="light"] .admin-subsystem-heading {
  color: #1E293B;
}

.admin-btn-add {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: #FFFFFF;
  border: none;
  padding: 7px 12px;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-btn-add:hover {
  transform: scale(1.04);
}

.admin-item-card {
  background: rgba(26, 20, 42, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .admin-item-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

.admin-item-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
}

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

.admin-item-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 7px;
}

[data-theme="light"] .admin-item-title {
  color: #1E293B;
}

.admin-item-sub {
  font-size: 0.76rem;
  color: #94A3B8;
  font-weight: 500;
  line-height: 1.4;
}

.admin-item-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-pill-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: #C4B5FD;
}

[data-theme="light"] .admin-pill-tag {
  background: rgba(124, 58, 237, 0.08);
  color: #6D28D9;
}

.admin-pill-green {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.admin-pill-red {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.admin-pill-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.admin-item-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .admin-item-actions-row {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.admin-btn-action-sm {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F1F5F9;
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

[data-theme="light"] .admin-btn-action-sm {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.15);
  color: #1E293B;
}

.admin-btn-danger-sm {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #EF4444;
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   Receipt Cards
   -------------------------------------------------------------------------- */
.admin-receipt-card {
  background: rgba(26, 20, 42, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="light"] .admin-receipt-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

.admin-receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-receipt-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-receipt-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(109, 40, 217, 0.3);
}

.admin-receipt-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #F8FAFC;
}

[data-theme="light"] .admin-receipt-name {
  color: #1E293B;
}

.admin-receipt-sub {
  font-size: 0.72rem;
  color: #94A3B8;
}

.admin-receipt-amount-badge {
  font-size: 1.05rem;
  font-weight: 900;
  color: #10B981;
}

.admin-receipt-meta-box {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
}

[data-theme="light"] .admin-receipt-meta-box {
  background: rgba(124, 58, 237, 0.05);
}

.admin-receipt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-btn-approve {
  border: none;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  font-family: inherit;
}

.admin-btn-approve:hover {
  transform: scale(1.02);
}

.admin-btn-reject {
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   Search & User Row Card
   -------------------------------------------------------------------------- */
.admin-search-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.admin-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(26, 20, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 42px 12px 14px;
  color: #F8FAFC;
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .admin-search-input {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #1E293B;
}

.admin-search-input:focus {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.admin-search-icon-pos {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}

.admin-user-card {
  background: rgba(26, 20, 42, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .admin-user-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

.admin-user-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.3);
}

/* --------------------------------------------------------------------------
   Settings Tab Elements
   -------------------------------------------------------------------------- */
.admin-settings-group {
  background: rgba(26, 20, 42, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 16px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .admin-settings-group {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

.admin-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .admin-setting-row {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.admin-setting-row:last-child {
  border-bottom: none;
}

.admin-setting-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-setting-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 6px;
}

[data-theme="light"] .admin-setting-title {
  color: #1E293B;
}

.admin-setting-desc {
  font-size: 0.72rem;
  color: #94A3B8;
}

.admin-toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.admin-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

input:checked + .admin-toggle-slider {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-color: #10B981;
}

input:checked + .admin-toggle-slider:before {
  transform: translateX(22px);
}

/* Modal Form Controls */
.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.admin-form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #F8FAFC;
}

[data-theme="light"] .admin-form-label {
  color: #1E293B;
}

.admin-form-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  color: #F8FAFC;
  font-size: 0.84rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

[data-theme="light"] .admin-form-input {
  background: rgba(124, 58, 237, 0.04);
  border-color: rgba(124, 58, 237, 0.15);
  color: #1E293B;
}

.admin-form-input:focus {
  border-color: #8B5CF6;
}

.admin-empty-state {
  text-align: center;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.admin-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #C4B5FD;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-empty-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #F8FAFC;
}

[data-theme="light"] .admin-empty-title {
  color: #1E293B;
}

.admin-empty-sub {
  font-size: 0.76rem;
  color: #94A3B8;
  max-width: 240px;
}
