/* 
 * ===================================================================
 * APP SHELL & MOBILE-FIRST APPLICATION STYLES
 * Life Advisor Voice & Guidance Platform
 * ===================================================================
 */

:root {
  --app-header-height: 64px;
  --app-bottom-nav-height: 70px;
  --app-safe-bottom: env(safe-area-inset-bottom, 0px);
  --app-safe-top: env(safe-area-inset-top, 0px);
  --app-bg: #F8FAFC;
  --app-card-bg: #FFFFFF;
  --app-primary: #1769E0;
  --app-purple: #7B4DCE;
  --app-pink: #E91E8F;
  --app-gold: #F59E0B;
  --app-emerald: #10B981;
  --app-dark: #0F172A;
  --app-muted: #64748B;
  --app-border: rgba(226, 232, 240, 0.9);
  --app-radius-lg: 20px;
  --app-radius-md: 14px;
  --app-radius-sm: 10px;
  --app-shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --app-shadow-glow: 0 10px 30px -4px rgba(23, 105, 224, 0.25);
  --app-shadow-nav: 0 -4px 24px rgba(15, 23, 42, 0.06);
}

/* Purple & Accent Theme Utility Helpers */
.bg-purple-subtle {
  background-color: rgba(123, 77, 206, 0.12) !important;
}
.text-purple {
  color: #7B4DCE !important;
}
.border-purple-subtle {
  border-color: rgba(123, 77, 206, 0.25) !important;
}
.border-white-20 {
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.text-white-20 {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* Global App Shell Overrides */
html, body {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.app-mode {
  background-color: var(--app-bg);
  color: var(--app-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--app-bottom-nav-height) + var(--app-safe-bottom) + 16px);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Micro-interactions & Tactile Haptic Feedbacks */
.app-tap-active,
.btn,
.nav-tab-item,
.topic-chip,
.mood-chip,
.app-card-clickable {
  transition: transform 0.12s cubic-bezier(0.2, 0, 0.1, 1), opacity 0.12s ease;
  user-select: none;
}

.app-tap-active:active,
.btn:active,
.topic-chip:active,
.mood-chip:active,
.app-card-clickable:active {
  transform: scale(0.96) !important;
  opacity: 0.92;
}

/* ===================================================================
 * LAYOUT & CONTAINER ALIGNMENT (DESKTOP + MOBILE)
 * =================================================================== */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  .app-container {
    padding: 12px 14px 24px 14px;
  }
}

/* Mobile Data Card Feed for App-mode Tables */
.mobile-card-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-data-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid var(--app-border);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.12s ease;
}

.mobile-data-card:active {
  transform: scale(0.99);
}

.app-card {
  background: var(--app-card-bg);
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-card);
  padding: 22px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .app-card {
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 16px;
  }
}

/* ===================================================================
 * TOP APP BAR (USER & ADMIN)
 * =================================================================== */
.app-top-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--app-header-height) + var(--app-safe-top));
  padding-top: var(--app-safe-top);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--app-border);
  z-index: 1020;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.app-top-bar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.app-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.05);
  color: var(--app-dark);
  text-decoration: none;
  font-size: 1.15rem;
}

.app-avatar-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1769E0, #7B4DCE);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(23, 105, 224, 0.25);
  text-decoration: none;
}

.app-brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.4px;
  color: var(--app-dark);
  margin: 0;
  line-height: 1.2;
}

.app-credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(23, 105, 224, 0.08), rgba(123, 77, 206, 0.1));
  border: 1px solid rgba(23, 105, 224, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--app-primary);
  text-decoration: none;
}

.app-credits-pill .credit-add-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--app-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-left: 2px;
}

.app-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.app-status-chip.online {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.app-status-chip.offline {
  background: rgba(100, 116, 139, 0.1);
  color: #64748B;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* ===================================================================
 * BOTTOM NAVIGATION BAR (MOBILE-FIRST)
 * =================================================================== */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--app-bottom-nav-height) + var(--app-safe-bottom));
  padding-bottom: var(--app-safe-bottom);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-nav);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1040;
}

.nav-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--app-muted);
  height: 100%;
  padding: 4px 0;
  position: relative;
}

.nav-tab-item .nav-tab-icon {
  font-size: 1.35rem;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.nav-tab-item .nav-tab-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin-top: 2px;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.nav-tab-item.active {
  color: var(--app-primary);
}

.nav-tab-item.active .nav-tab-icon {
  transform: translateY(-2px);
  color: var(--app-primary);
}

.nav-tab-item.active .nav-tab-label {
  font-weight: 700;
  color: var(--app-primary);
}

.nav-tab-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--app-primary), var(--app-purple));
}

/* Center Call Floating Action Button (FAB) */
.nav-tab-fab-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-tab-fab {
  position: absolute;
  top: -24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1769E0 0%, #E91E8F 100%);
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 8px 24px rgba(233, 30, 143, 0.45);
  text-decoration: none;
  border: 4px solid #FFFFFF;
  z-index: 1045;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.nav-tab-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px rgba(233, 30, 143, 0.55);
}

.nav-tab-fab:active {
  transform: translateY(-1px) scale(0.96);
}

.nav-tab-fab-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--app-pink);
  margin-top: 32px;
}

.nav-tab-fab::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid rgba(233, 30, 143, 0.5);
  animation: fab-ring-pulse 2.2s infinite cubic-bezier(0.24, 0, 0.38, 1);
  pointer-events: none;
}

@keyframes fab-ring-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ===================================================================
 * CLASSIC LIFE ADVISOR HERO CARD & TOPIC SELECTOR
 * =================================================================== */
.life-advisor-hero-card {
  border-radius: 26px;
  background: radial-gradient(circle at 80% 20%, #1E1B4B 0%, #0F172A 85%);
  color: #FFFFFF;
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.35);
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 767.98px) {
  .life-advisor-hero-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
}

.life-advisor-hero-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(233, 30, 143, 0.25) 0%, rgba(23, 105, 224, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.advisor-status-glow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.advisor-status-glow-pill.online {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.advisor-status-glow-pill.offline {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Sound Wave Animation */
.soundwave-visualizer {
  display: flex;
  align-items: center;
  gap: 3.5px;
  height: 24px;
}

.soundwave-bar {
  width: 3.5px;
  background: linear-gradient(to top, #1769E0, #E91E8F);
  border-radius: 3px;
  animation: soundwave-bounce 1.2s infinite ease-in-out alternate;
}

.soundwave-bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.soundwave-bar:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.soundwave-bar:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.soundwave-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }
.soundwave-bar:nth-child(5) { height: 60%; animation-delay: 0.15s; }
.soundwave-bar:nth-child(6) { height: 40%; animation-delay: 0.35s; }

@keyframes soundwave-bounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Life Guidance Topics Chips */
.topic-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.topic-scroll-row::-webkit-scrollbar {
  display: none;
}

.topic-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--app-border);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--app-dark);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.topic-chip.active,
.topic-chip:hover {
  background: linear-gradient(135deg, var(--app-primary), var(--app-purple));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(23, 105, 224, 0.25);
}

/* Apple Wallet Style Card */
.apple-wallet-card {
  border-radius: 24px;
  background: linear-gradient(135deg, #1769E0 0%, #7B4DCE 55%, #E91E8F 100%);
  color: #FFFFFF;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(123, 77, 206, 0.3);
}

.apple-wallet-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* Native List Rows */
.app-list-group {
  background: #FFFFFF;
  border-radius: var(--app-radius-lg);
  border: 1px solid var(--app-border);
  overflow: hidden;
  box-shadow: var(--app-shadow-card);
}

.app-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  text-decoration: none;
  color: var(--app-dark);
}

.app-list-item:last-child {
  border-bottom: none;
}

.app-list-item:hover {
  background: rgba(248, 250, 252, 0.8);
  color: var(--app-dark);
}

.app-list-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 14px;
  flex-shrink: 0;
}

/* ===================================================================
 * FULL-SCREEN CALLING INTERFACE & CALL WAITING OVERLAY
 * =================================================================== */
.native-call-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top, #1E1B4B 0%, #0F172A 70%, #030712 100%);
  color: #FFFFFF;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--app-safe-top) + 20px) 20px calc(var(--app-safe-bottom) + 30px) 20px;
  overflow: hidden;
}

.native-call-screen.video-mode {
  padding: 0 !important;
  margin: 0 !important;
  background: #000000 !important;
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
}

.call-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 20;
}

.call-meta-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.call-meta-info h2 {
  color: #FFFFFF !important;
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  margin-top: 4px;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.call-meta-info p {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.9rem !important;
  margin-bottom: 0;
}

.call-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1;
  padding: 6px 14px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.call-status-badge.connecting,
.call-status-badge.ringing {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #FBBF24 !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2) !important;
}

.call-status-badge.connected {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #34D399 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2) !important;
}

.call-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: auto 0;
}

.call-avatar-container {
  width: 150px;
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.call-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1769E0 0%, #E91E8F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #FFFFFF;
  box-shadow: 0 0 40px rgba(233, 30, 143, 0.5);
  position: relative;
  z-index: 5;
}

.call-avatar-ring-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(233, 30, 143, 0.6);
  animation: call-pulse-ring 2.4s infinite cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.call-avatar-ring-pulse:nth-child(2) { animation-delay: 0.8s; }
.call-avatar-ring-pulse:nth-child(3) { animation-delay: 1.6s; }

@keyframes call-pulse-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.call-live-timer {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: 'Poppins', monospace;
  letter-spacing: 1px;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.call-credits-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.call-credits-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.call-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.call-ctrl-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.call-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.call-ctrl-btn:active {
  transform: scale(0.92);
}

.call-ctrl-btn.active {
  background: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.call-ctrl-btn.end-btn {
  background: #EF4444;
  width: 68px;
  height: 68px;
  font-size: 1.8rem;
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.5);
}

/* ===================================================================
 * CALL WAITING FLOATING OVERLAY (FOR ADMIN)
 * =================================================================== */
.call-waiting-overlay {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 480px;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #F59E0B;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10050;
  animation: call-waiting-slide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes call-waiting-slide {
  from {
    opacity: 0;
    transform: translate(-50%, -30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.call-waiting-icon-pulse {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F59E0B;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  animation: waiting-bell-ring 1s infinite alternate;
}

@keyframes waiting-bell-ring {
  0% { transform: rotate(-12deg) scale(1); }
  100% { transform: rotate(12deg) scale(1.1); }
}

/* ===================================================================
 * ADMIN NATIVE APP UI & FINANCIAL METRIC CARDS
 * =================================================================== */
.header-stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.admin-earning-hero-card {
  border-radius: 20px;
  background: linear-gradient(135deg, #064E3B 0%, #064E3B 40%, #0D382B 70%, #0F172A 100%);
  color: #FFFFFF;
  padding: 28px 32px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 36px -8px rgba(6, 78, 59, 0.3), 0 4px 12px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.admin-earning-hero-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(16, 185, 129, 0.06) 50%, transparent 70%);
  pointer-events: none;
}

.hero-stat-box {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-stat-caption {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  margin-top: 4px;
}

.hero-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  height: 52px;
  align-self: center;
}

.hero-action-btn-primary {
  background: #FFFFFF;
  color: #064E3B !important;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-action-btn-primary:hover {
  background: #ECFDF5;
  color: #047857 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-action-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-action-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Operational Metric Cards */
.admin-metric-card {
  background: #FFFFFF;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  padding: 22px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  border-color: rgba(23, 105, 224, 0.25);
}

.admin-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.admin-metric-value {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--app-dark);
}

.admin-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--app-muted);
}

@media (max-width: 576px) {
  .admin-earning-hero-card {
    padding: 16px 14px;
    border-radius: 16px;
    margin-bottom: 14px;
  }
  .hero-stat-value {
    font-size: 1.6rem !important;
  }
  .hero-stat-caption {
    font-size: 0.68rem;
  }
  .hero-divider {
    display: none;
  }
  .hero-action-btn-primary,
  .hero-action-btn-secondary {
    width: 100%;
    padding: 8px 16px;
    font-size: 0.82rem;
  }
  .admin-metric-card {
    padding: 12px 12px;
    border-radius: 14px;
  }
  .admin-metric-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .admin-metric-value {
    font-size: 1.25rem !important;
  }
  .admin-metric-label {
    font-size: 0.65rem;
  }
  .admin-metric-card .badge {
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
  }
}

/* ===================================================================
 * RESPONSIVE DESKTOP & MOBILE SHELL SWITCHING
 * =================================================================== */
@media (min-width: 992px) {
  .app-bottom-nav {
    display: none;
  }

  body.app-mode {
    padding-bottom: 24px;
  }

  .app-top-bar {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .sidebar-panel {
    display: none !important;
  }

  .content-panel {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .header-panel {
    display: none !important;
  }

  .main-content-inner {
    padding: 0 !important;
  }
}
