@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@400;600;700;800&display=swap");

:root {
  --bg-gradient: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 35%, #E0F2FE 100%);
  --krez-dark: #0F172A;
  --krez-navy: #0B192C;
  --krez-blue: #2563EB;
  --krez-blue-light: #3B82F6;
  --krez-purple: #7C3AED;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-green: #16A34A;
  --shadow-soft: 0 10px 25px rgba(37, 99, 235, 0.08);
  --shadow-glow: 0 14px 30px rgba(37, 99, 235, 0.25);
  --font-main: 'Plus Jakarta Sans', 'Manrope', sans-serif;
  --font-sora: 'Sora', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-main);
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #1E293B 0%, #0F172A 100%);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* ===== Main Phone Screen Container (App-like Shell) ===== */
.phone-screen {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: var(--bg-gradient);
  position: relative;
  overflow-x: hidden;
  padding: 16px 16px 90px;
  box-shadow: 0 0 50px rgba(15, 23, 42, 0.18);
  transition: all 0.3s ease;
}

@media (min-width: 480px) {
  body {
    padding: 20px 0;
  }

  .phone-screen {
    border-radius: 38px;
    border: 7px solid #1E293B;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    min-height: calc(100vh - 40px);
  }
}

@media (max-width: 479px) {
  body {
    background: var(--bg-gradient);
    padding: 0;
  }

  .phone-screen {
    border-radius: 0;
    border: none;
    box-shadow: none;
    min-height: 100vh;
    padding: 14px 14px 85px;
  }
}

/* YouTube-Style Iconic Top Loading Bar */
.top-nav-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #FF0000 0%, #FF3366 50%, #FF0000 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 4px #FF0000;
  z-index: 99999;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  opacity: 0;
  border-radius: 0 0 4px 4px;
}

.top-nav-progress-bar.active {
  opacity: 1;
  animation: ytTopBarGlow 1.2s ease-in-out infinite;
}

@keyframes ytTopBarGlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ==================== SPLASH SCREEN WITH PROGRESS BAR ==================== */
.splash-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 30px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-logo-box {
  font-family: var(--font-sora);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.splash-logo-box .bg {
  color: #fff;
}

.splash-logo-box .pay {
  color: #3B82F6;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
}

.splash-tagline {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  text-align: center;
}

.splash-progress-wrapper {
  width: 100%;
  max-width: 260px;
}

.splash-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.splash-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
  border-radius: 99px;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.8);
}

.splash-progress-percent {
  font-family: var(--font-sora);
  font-size: 12px;
  font-weight: 800;
  color: #60A5FA;
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* ==================== YOUTUBE-STYLE LOADING SKELETON SCREEN ==================== */
.page-loader.yt-skeleton-screen {
  position: absolute;
  inset: 0;
  background: #F8FAFC;
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 85px;
  z-index: 99990;
  overflow-y: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.page-loader.yt-skeleton-screen.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* YouTube Signature Shimmer Wave Animation */
.yt-shimmer {
  background: #E2E8F0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.yt-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.45) 20%,
      rgba(255, 255, 255, 0.85) 50%,
      rgba(255, 255, 255, 0.45) 80%,
      rgba(255, 255, 255, 0) 100%);
  animation: ytShimmerSweep 1.35s ease-in-out infinite;
}

@keyframes ytShimmerSweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Top Shimmer Line */
.yt-skeleton-topline {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #FF0000, #FF3366, #FF0000);
  background-size: 200% 100%;
  animation: ytTopBarGlow 1.2s ease-in-out infinite;
  border-radius: 2px;
  margin-bottom: 2px;
}

/* Skeleton Header */
.yt-skeleton-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 6px;
}

.yt-skeleton-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.yt-skeleton-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.yt-skeleton-line {
  border-radius: 6px;
}

.yt-skeleton-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Skeleton Hero Promo Banner (Exact 2.5:1 ratio) */
.yt-skeleton-banner {
  width: 100%;
  aspect-ratio: 2.5 / 1;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* Skeleton Wallet / Balance Card */
.yt-skeleton-wallet-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.yt-skeleton-btn-row {
  display: flex;
  gap: 10px;
}

.yt-skeleton-pill-btn {
  flex: 1;
  height: 40px;
  border-radius: 24px;
}

/* Skeleton Quick Action Icons */
.yt-skeleton-actions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 0;
}

.yt-skeleton-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.yt-skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Skeleton Feed / Package Cards */
.yt-skeleton-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yt-skeleton-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.yt-skeleton-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.yt-skeleton-card-body {
  margin-bottom: 14px;
}

.yt-skeleton-card-btn {
  width: 100%;
  height: 42px;
  border-radius: 12px;
}

/* ==================== GLOBAL CLIENT ACTION LOADER ("PLEASE WAIT...") ==================== */
.client-action-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.client-action-loader-overlay.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.client-action-card {
  background: rgba(30, 41, 59, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 30px 36px;
  text-align: center;
  box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.55), 0 0 35px rgba(37, 99, 235, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 275px;
  max-width: 90vw;
  position: relative;
  overflow: hidden;
  animation: actionCardPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes actionCardPop {
  0% {
    transform: scale(0.88) translateY(14px);
    opacity: 0;
  }

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

.client-action-spinner-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-action-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3.5px solid rgba(255, 255, 255, 0.12);
  border-top-color: #FF0000;
  border-right-color: #2563EB;
  animation: ytSpin 0.75s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

@keyframes ytSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.client-action-icon {
  font-size: 26px;
  color: #38BDF8;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.75));
  animation: ytPulse 1.5s ease-in-out infinite alternate;
}

@keyframes ytPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.client-action-content h4 {
  color: #F8FAFC;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: 0.3px;
}

.client-action-content p {
  color: #94A3B8;
  font-size: 12.5px;
  margin: 0;
  font-weight: 500;
}

.client-action-shimmer-bar {
  width: 100%;
  height: 3px;
  background: #334155;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.client-action-shimmer-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, transparent, #FF0000, #2563EB, transparent);
  animation: ytBarSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ytBarSweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(250%);
  }
}

/* ==================== SCI-FI MINIMAL TOAST NOTIFICATIONS ==================== */
#toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 360px;
}

.toast {
  width: 100%;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #F8FAFC;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.45), 0 0 18px rgba(56, 189, 248, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  animation: sciFiToastIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.22s ease;
  margin-bottom: 8px;
}

.toast.hide {
  animation: sciFiToastOut 0.24s ease forwards;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.45), 0 0 18px rgba(16, 185, 129, 0.15);
}

.toast.error,
.toast.info {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.45), 0 0 18px rgba(245, 158, 11, 0.15);
}

.toast-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}

.toast-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
  flex-shrink: 0;
}

.toast.success .toast-status-dot {
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.toast.error .toast-status-dot {
  background: #EF4444;
  box-shadow: 0 0 8px #EF4444;
}

.toast.info .toast-status-dot {
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
}

.toast-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #F1F5F9;
  line-height: 1.4;
  letter-spacing: -0.1px;
}

.toast-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #38BDF8, #818CF8);
  transform-origin: left;
  animation: toastTimerShrink linear forwards;
}

.toast.success .toast-progress-bar {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.toast.error .toast-progress-bar {
  background: linear-gradient(90deg, #EF4444, #F87171);
}

.toast.info .toast-progress-bar {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

@keyframes toastTimerShrink {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes sciFiToastIn {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sciFiToastOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
}

/* Views Router */
.view {
  display: none;
  width: 100%;
}

.view.active {
  display: block;
  animation: viewSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

/* Global Micro-Animations & Transitions */
button,
.btn-primary,
.auth-action-btn,
.topup-btn,
.p-action-btn,
.faq-chip,
.chat-action-btn {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

button:active,
.btn-primary:active,
.auth-action-btn:active,
.topup-btn:active,
.p-action-btn:active,
.faq-chip:active {
  transform: scale(0.96);
}

.stat-item,
.ratio-card,
.wallet-card,
.package-card,
.profile-investment-summary-card,
.menu-item-row {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover,
.package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.09);
}

.stat-item:active,
.menu-item-row:active {
  transform: scale(0.985);
}

.chat-msg-row {
  animation: chatBubblePop 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatBubblePop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

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

/* Header Bar */
.bgpay-header,
.krezpay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 16px;
}

.bgpay-logo,
.krezpay-logo {
  font-family: var(--font-sora);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.bgpay-logo .krez,
.krezpay-logo .krez {
  color: var(--krez-dark);
}

.bgpay-logo .pay,
.krezpay-logo .pay {
  color: var(--krez-blue);
}

.info-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s;
}

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

/* Banner Carousel (Responsive 2.5 : 1 Ratio) */
.promo-card {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #0F172A;
  position: relative;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  margin-bottom: 20px;
}

.pure-banner-wrap {
  width: 100%;
  aspect-ratio: 2.5 / 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pure-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pure-banner-wrap:active .pure-banner-img {
  transform: scale(0.98);
}

.pure-banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 99px;
  z-index: 10;
}

.pure-banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pure-banner-dots span.active {
  width: 18px;
  border-radius: 99px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}

.banner-img-wrap {
  width: 100%;
  aspect-ratio: 2.5 / 1;
  position: relative;
  overflow: hidden;
}

.banner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay-content {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 27, 75, 0.85) 100%);
  color: #fff;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #4F46E5;
  color: #fff;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  width: max-content;
}

.banner-title {
  font-family: var(--font-sora);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-title span {
  color: #60A5FA;
}

.banner-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-top: 2px;
}

.banner-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.start-invite-btn {
  background: linear-gradient(90deg, #6366F1, #8B5CF6);
  color: #fff;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.carousel-dots span.active {
  width: 16px;
  border-radius: 99px;
  background: #60A5FA;
}

/* Wallet Card */
.wallet-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.wallet-info label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block;
}

.wallet-amount {
  font-family: var(--font-sora);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
}

.wallet-amount span.cents {
  font-size: 22px;
  color: #64748B;
  font-weight: 700;
}

.topup-btn {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #fff;
  padding: 11px 20px;
  border-radius: 14px;
  font-family: var(--font-sora);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  transition: transform 0.15s;
}

.topup-btn:active {
  transform: scale(0.95);
}

/* Ratio Grid */
.ratio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.ratio-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.ratio-card label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.ratio-val {
  font-family: var(--font-sora);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0 2px;
}

.ratio-card.inr .ratio-val {
  color: var(--krez-blue);
}

.ratio-sub {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Stat Stack Cards */
.stat-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-item {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.15s;
}

.stat-item:active {
  transform: scale(0.98);
}

.stat-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: #3B82F6;
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.3);
}

.stat-icon.cyan {
  background: #06B6D4;
  box-shadow: 0 6px 14px rgba(6, 182, 212, 0.3);
}

.stat-icon.green {
  background: #10B981;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}

.stat-details label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.stat-details .amount {
  font-family: var(--font-sora);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.stat-arrow {
  color: #94A3B8;
  font-size: 14px;
}

/* Deposit Screen */
.currency-switcher {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 10px 16px;
}

.curr-tab {
  font-family: var(--font-sora);
  font-size: 20px;
  font-weight: 800;
  color: #94A3B8;
  cursor: pointer;
  position: relative;
  padding-bottom: 6px;
}

.curr-tab.active {
  color: var(--krez-blue);
}

.curr-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: var(--krez-blue);
}

.notice-banner {
  background: #E0F2FE;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--krez-blue);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.notice-banner i {
  font-size: 18px;
  color: #2563EB;
}

.quota-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  cursor: pointer;
}

.quota-header-row h3 {
  font-family: var(--font-sora);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.quota-header-row i {
  color: var(--krez-blue);
  font-size: 16px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.tier-btn {
  background: #fff;
  border-radius: 18px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.tier-btn:active {
  transform: scale(0.95);
}

.tier-btn.active {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  border-color: #2563EB;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.tier-btn .title {
  font-family: var(--font-sora);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.tier-btn .percent {
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
  opacity: 0.9;
}

.tier-btn:not(.active) .percent {
  color: #64748B;
}

.filter-controls-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-controls-row select,
.filter-controls-row input {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.filter-controls-row input::placeholder {
  color: #94A3B8;
}

.refresh-btn {
  width: 100%;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #fff;
  padding: 16px;
  border-radius: 20px;
  font-family: var(--font-sora);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  margin-bottom: 20px;
  transition: transform 0.15s;
}

.refresh-btn:active {
  transform: scale(0.98);
}

.quota-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quota-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04), inset 0 1px 1px #FFFFFF;
  border: 1.5px solid #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.quota-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #2563EB 0%, #06B6D4 100%);
  border-radius: 24px 0 0 24px;
}

.quota-card-left h4 {
  font-family: var(--font-sora, 'Sora', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main, #0F172A);
  letter-spacing: -0.5px;
}

.quota-details-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 16px;
  margin-top: 10px;
}

.quota-detail-box {
  background: #F1F5F9;
  border-radius: 12px;
  padding: 8px 12px;
}

.quota-detail-box label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  display: block;
}

.quota-detail-box .val {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main, #0F172A);
  margin-top: 2px;
}

.quota-detail-box .val.blue {
  color: #2563EB;
}

.buy-quota-btn {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff;
  padding: 13px 30px;
  border-radius: 16px;
  font-family: var(--font-sora, 'Sora', sans-serif);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
}

.buy-quota-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.45);
}

.buy-quota-btn:active {
  transform: scale(0.96);
}

/* Add Bank Account */
.screen-header-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.screen-back-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s;
}

.screen-back-circle:active {
  transform: scale(0.92);
}

.screen-header-card h3 {
  font-family: var(--font-sora);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  flex: 1;
  text-align: center;
  margin-right: 38px;
}

.bank-form-group {
  margin-bottom: 20px;
}

.bank-form-group label {
  font-size: 12px;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 8px;
  padding-left: 2px;
}

.bank-input-pill {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bank-input-pill:focus {
  border-color: var(--krez-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.bank-input-pill::placeholder {
  color: #94A3B8;
  font-weight: 600;
}

.save-bank-btn {
  width: 100%;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  padding: 18px;
  border-radius: 22px;
  font-family: var(--font-sora);
  font-size: 16.5px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
  margin-top: 12px;
  transition: transform 0.15s;
}

.save-bank-btn:active {
  transform: scale(0.98);
}

/* Team Screen */
.team-earning-card {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border-radius: 24px;
  padding: 24px 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
  margin-bottom: 16px;
}

.team-earning-card .deco-circle {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -40px;
  right: -30px;
  pointer-events: none;
}

.team-earning-card label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  display: block;
}

.team-earning-amount {
  font-family: var(--font-sora);
  font-size: 38px;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -1px;
}

.team-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.team-stat-box {
  background: #fff;
  border-radius: 20px;
  padding: 16px 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.team-stat-box .val {
  font-family: var(--font-sora);
  font-size: 20px;
  font-weight: 800;
  color: var(--krez-blue);
  margin-bottom: 2px;
}

.team-stat-box label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
}

.invite-code-section {
  margin-bottom: 20px;
}

.invite-code-section label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  margin-bottom: 8px;
}

.invite-box {
  background: #fff;
  border: 1.5px dashed #CBD5E1;
  border-radius: 20px;
  padding: 8px 8px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

.invite-url-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  padding-right: 10px;
}

.invite-copy-sq {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--krez-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s;
}

.invite-copy-sq:active {
  transform: scale(0.92);
}

.team-detail-section label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
  margin-bottom: 8px;
}

.empty-team-box {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 28px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ==================== REALISTIC LUXURY SMART BANKING CARD ==================== */
.profile-quota-card {
  position: relative;
  border-radius: 22px;
  padding: 22px 22px 20px 22px;
  color: #FFFFFF;
  overflow: hidden;
  margin-bottom: 20px;
  background: 
    radial-gradient(circle at 90% 12%, rgba(56, 189, 248, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 10% 88%, rgba(37, 99, 235, 0.35) 0%, transparent 50%),
    linear-gradient(135deg, #0F172A 0%, #1E293B 45%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    0 18px 38px -12px rgba(15, 23, 42, 0.65),
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px 1px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Realistic diagonal metallic glass gloss reflection sweep */
.profile-quota-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.05) 32%,
    transparent 52%
  );
  pointer-events: none;
  transform: rotate(-10deg);
}

/* Micro-fine brushed titanium texture pattern */
.profile-quota-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.25;
  pointer-events: none;
}

.profile-quota-card .card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.card-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sora);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.card-brand .brand-logo-pill {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #38BDF8 0%, #2563EB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  font-size: 14px;
  color: #FFFFFF;
}

.card-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #E2E8F0;
}

/* Realistic Gold EMV Microchip & Contactless Waves */
.card-hardware-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.card-emv-chip {
  width: 44px;
  height: 33px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FDE68A 0%, #D97706 50%, #B45309 85%, #F59E0B 100%);
  border: 1px solid #B45309;
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(146, 64, 14, 0.7),
    0 2px 6px rgba(0, 0, 0, 0.35);
}

.card-emv-chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(146, 64, 14, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.card-emv-chip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(146, 64, 14, 0.7);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.4);
}

.card-emv-chip .chip-core {
  position: absolute;
  width: 18px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(146, 64, 14, 0.6);
  border-radius: 3px;
  background: rgba(245, 158, 11, 0.25);
  box-shadow: inset 0 0 2px rgba(180, 83, 9, 0.5);
  z-index: 2;
}

.card-contactless-waves {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.75);
  transform: rotate(90deg);
  display: inline-block;
  line-height: 1;
}

.card-quota-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  position: relative;
  z-index: 2;
}

.card-quota-amount {
  font-family: var(--font-sora);
  font-size: 34px;
  font-weight: 800;
  margin-top: 1px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.card-quota-amount span.unit {
  font-size: 16px;
  font-weight: 700;
  color: #38BDF8;
}

/* Embossed Card UID Number (Silver foil 3D effect) */
.card-user-code {
  font-family: 'Courier New', Courier, monospace, var(--font-sora);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #F1F5F9;
  text-shadow: 
    0 1px 1px rgba(255, 255, 255, 0.7),
    0 -1px 1px rgba(0, 0, 0, 0.85);
  margin: 10px 0 14px 0;
  position: relative;
  z-index: 2;
}

.card-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.card-meta-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-meta-sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94A3B8;
}

.card-meta-val {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.card-reward-ratio {
  font-size: 11px;
  font-weight: 700;
  color: #38BDF8;
}

/* Frosted Glass Luxury Top Up Button */
.card-topup-btn {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 8px 18px;
  border-radius: 99px;
  font-family: var(--font-sora);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-topup-btn:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

.card-topup-btn:active {
  transform: scale(0.95);
}

.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.p-action-btn {
  background: #fff;
  border-radius: 20px;
  padding: 16px 6px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.15s;
}

.p-action-btn:active {
  transform: scale(0.95);
}

.p-action-btn i {
  font-size: 20px;
  color: var(--krez-blue);
  margin-bottom: 8px;
  display: block;
}

.p-action-btn span {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
}

.settings-menu-card {
  background: #fff;
  border-radius: 24px;
  padding: 8px 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: background 0.15s;
}

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

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #EFF6FF;
  color: var(--krez-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.menu-item-left span {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
}

.menu-item-row i.fa-chevron-right {
  color: #94A3B8;
  font-size: 13px;
}

/* ==================== PAYMENT GATEWAY (MODERN NATIVE APP STYLING) ==================== */
.pay-gateway-wrap {
  background: #FAF5FF;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.12);
  margin-bottom: 40px;
  border: 1px solid rgba(124, 58, 237, 0.1);
}

/* ==================== CLEAN & MINIMAL FINTECH PAYMENT GATEWAY ==================== */
.pg-minimal-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: #F8FAFC;
  min-height: 100vh;
  box-sizing: border-box;
  font-family: var(--font-main), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0F172A;
  padding-bottom: 30px;
}

/* Minimal Header Bar */
.pg-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.pg-back-btn {
  background: transparent;
  border: none;
  color: #334155;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.pg-back-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.pg-nav-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.2px;
}

.pg-timer-badge {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
}

/* Amount Header Box */
.pg-amount-box {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 22px 20px 20px;
  text-align: center;
}

.pg-amount-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
}

.pg-amount-val {
  font-family: var(--font-sora), -apple-system, sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #0F172A;
  margin: 4px 0 2px;
  letter-spacing: -0.5px;
}

.pg-order-id {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 500;
}

/* Body Content */
.pg-content-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Section Cards */
.pg-section-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.pg-section-heading {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 12px;
}

/* QR Centerpiece */
.pg-qr-center {
  text-align: center;
  padding: 22px 16px 18px;
}

.pg-qr-frame {
  width: 184px;
  height: 184px;
  margin: 0 auto 10px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pg-qr-img {
  width: 164px;
  height: 164px;
  object-fit: contain;
}

.pg-qr-caption {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
  margin: 0;
}

/* 1-Click App Pay */
.pg-app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pg-app-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pg-app-pill:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.pg-app-pill:active {
  transform: scale(0.98);
}

.pg-app-dot.phonepe {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5F259F;
}

.pg-app-dot.paytm {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00BAF2;
}

.pg-app-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

/* Transfer Details Rows */
.pg-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.pg-detail-row:last-of-type {
  border-bottom: none;
}

.pg-detail-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-detail-label {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}

.pg-detail-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  font-family: monospace;
}

.pg-detail-val.highlight {
  color: #2563EB;
}

.pg-copy-link {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #2563EB;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pg-copy-link:hover {
  background: #E2E8F0;
}

.pg-remark-note {
  font-size: 11px;
  color: #64748B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 10px;
  line-height: 1.4;
}

/* UTR Submission Box */
.pg-utr-box {
  border: 1px solid #CBD5E1;
}

.pg-utr-subtext {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 10px;
  font-weight: 500;
}

.pg-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.pg-utr-input {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 12px 65px 12px 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: monospace;
  color: #0F172A;
  letter-spacing: 0.5px;
  box-sizing: border-box;
}

.pg-utr-input:focus {
  border-color: #0F172A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.pg-paste-link {
  position: absolute;
  right: 8px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.pg-paste-link:hover {
  background: #E2E8F0;
}

.pg-submit-btn {
  width: 100%;
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.pg-submit-btn:hover {
  background: #1E293B;
}

.pg-submit-btn:active {
  transform: scale(0.99);
}

.pg-help-row {
  font-size: 11.5px;
  color: #64748B;
  text-align: center;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: underline;
}

.pg-help-drawer {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
}

.pg-help-drawer p {
  margin: 2px 0;
}


/* ==================== LIVE CHAT & SUPPORT TICKET MODAL STYLES ==================== */
.floating-chat-btn {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
  cursor: pointer;
  transition: transform 0.15s;
}

.floating-chat-btn:active {
  transform: scale(0.9);
}

.chat-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 999999;
  animation: fadeIn 0.25s ease;
}

.chat-modal-overlay.hidden {
  display: none;
}

.chat-window-card {
  width: 100%;
  max-width: 440px;
  height: 85vh;
  background: #F8FAFC;
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
}

.chat-header-bar {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

.chat-header-info h4 {
  font-family: var(--font-sora);
  font-size: 17px;
  font-weight: 800;
}

.agent-online-tag {
  font-size: 11px;
  font-weight: 700;
  color: #86EFAC;
  display: flex;
  align-items: center;
  gap: 4px;
}

.agent-online-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
}

.chat-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

/* FAQ Quick Chips Scroll */
.faq-chips-bar {
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: none;
}

.faq-chips-bar::-webkit-scrollbar {
  display: none;
}

.faq-chip {
  background: #EFF6FF;
  border: 1px solid #BFDDFB;
  color: var(--krez-blue);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}

.faq-chip:active {
  background: #DBEAFE;
}

/* Chat Message Stream */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg-row {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.chat-msg-row.user {
  align-items: flex-end;
}

.chat-msg-row.bot,
.chat-msg-row.agent {
  align-items: flex-start;
}

.chat-msg-bubble {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  word-break: break-word;
}

.chat-sender-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.chat-sender-tag.user {
  color: rgba(255, 255, 255, 0.9);
  justify-content: flex-end;
}

.chat-sender-tag.agent {
  color: #2563EB;
}

.chat-sender-tag.bot {
  color: #64748B;
}

.badge-online-dot {
  color: #10B981;
  font-size: 10px;
  margin-left: 2px;
}

.chat-msg-bubble.user {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
  border-bottom-right-radius: 3px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}

.chat-msg-bubble.agent {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1.5px solid #93C5FD !important;
  border-bottom-left-radius: 3px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08) !important;
}

.chat-msg-bubble.bot {
  background: #F8FAFC !important;
  color: #1E293B !important;
  border-bottom-left-radius: 3px !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
}

.chat-time {
  font-size: 10px;
  opacity: 0.75;
  display: block;
  margin-top: 5px;
  text-align: right;
}

.badge-open {
  background: #DCFCE7;
  color: #15803D;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid #BBF7D0;
}

/* Typing animation dots */
.chat-msg-bubble.typing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
}

.chat-msg-bubble.typing .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3B82F6;
  animation: pulse 0.8s infinite alternate;
}

.chat-msg-bubble.typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-msg-bubble.typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  from {
    opacity: 0.3;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Chat Bottom Input Bar */
.chat-input-bar {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.chat-input-field {
  flex: 1;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.chat-input-field:focus {
  border-color: #2563EB;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.send-msg-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease;
}

.send-msg-btn:active {
  transform: scale(0.92);
}

.ticket-create-box {
  background: #fff;
  border-top: 1.5px solid #E2E8F0;
  padding: 16px;
}

.ticket-create-box.hidden {
  display: none;
}

/* ==================== HIGH-END DESIGN ENHANCEMENTS & MICRO-INTERACTIONS ==================== */

/* Floating Bottom Nav Dock */
.bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 408px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  z-index: 100;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 16px;
  border-radius: 22px;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.nav-item i {
  font-size: 19px;
  transition: transform 0.2s ease;
}

.nav-item:hover i {
  transform: translateY(-2px);
}

.nav-item.active {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1D4ED8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.nav-item.active i {
  transform: scale(1.15);
  color: #2563EB;
}

/* Shimmer animation on buttons */
.topup-btn,
.btn-primary,
.card-topup-btn {
  position: relative;
  overflow: hidden;
}

.topup-btn::after,
.btn-primary::after,
.card-topup-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg,
      transparent 30%,
      rgba(255, 255, 255, 0.25) 50%,
      transparent 70%);
  transform: rotate(30deg);
  animation: shimmer 4s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }

  30%,
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

/* Enhanced Form Inputs Focus State */
input[type="text"],
input[type="number"],
textarea,
select {
  transition: all 0.2s ease-in-out !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14) !important;
  background: #FFFFFF !important;
}

/* Quota Package Card Tier Accent Borders */
.quota-card {
  transition: all 0.25s ease-in-out;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
}

.quota-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

/* VIP Card Pulsing Chip Light */
.card-contactless i {
  color: #60A5FA;
  animation: wifiPulse 2s infinite ease-in-out;
}

@keyframes wifiPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Enhanced Toast Styling */
.toast {
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
}

/* ==================== FLOATING ROLE TOGGLE BUTTON ==================== */
.floating-role-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99999;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.floating-role-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
  border-color: #3B82F6;
}

.floating-role-toggle i {
  color: #3B82F6;
  font-size: 14px;
}

/* ==================== TRANSACTION HISTORY MODAL ==================== */
.history-list-stream {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tx-card-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.tx-card-item:hover {
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.tx-icon.deposit {
  background: #DCFCE7;
  color: #16A34A;
}

.tx-icon.withdraw {
  background: #FEE2E2;
  color: #DC2626;
}

.tx-meta h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.tx-date {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.tx-utr {
  font-size: 10px;
  font-family: monospace;
  color: #2563EB;
  background: #EFF6FF;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}

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

.tx-amount {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.tx-amount.green {
  color: #16A34A;
}

.tx-amount.red {
  color: #DC2626;
}

.tx-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  display: inline-block;
}

.tx-status-pill.pending {
  background: #FEF3C7;
  color: #D97706;
}

.tx-status-pill.approved {
  background: #DCFCE7;
  color: #15803D;
}

.tx-status-pill.rejected {
  background: #FEE2E2;
  color: #B91C1C;
}

.empty-history-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-history-state i {
  font-size: 36px;
  color: #CBD5E1;
  margin-bottom: 12px;
}

.withdraw-card-box {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}

.withdraw-card-box h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.linked-bank-card {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(49, 46, 129, 0.25);
}

.linked-bank-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #60A5FA;
}

.bank-holder-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.bank-acc-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
  font-weight: 600;
}

.bank-verified-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==================== SEPARATE ADMIN DASHBOARD STYLES (EDGE-TO-EDGE LUXURY SUITE) ==================== */
.admin-page-container {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  animation: fadeInAdmin 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-dashboard-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

@keyframes fadeInAdmin {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

/* Sticky Edge-to-Edge Header */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.admin-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 19px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.admin-logo-text {
  display: flex;
  flex-direction: column;
}

.admin-logo-text .brand-title {
  font-family: var(--font-sora, 'Sora', sans-serif);
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-logo-text .core-tag {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.admin-logo-text .brand-sub {
  font-size: 11.5px;
  color: #64748B;
  font-weight: 600;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 14px 6px 8px;
  border-radius: 24px;
}

.admin-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.admin-user-info .admin-role {
  font-size: 9.5px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.4px;
}

.admin-user-info .admin-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
}

.admin-logout-btn,
.logout-pill-btn {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.admin-logout-btn:hover,
.logout-pill-btn:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* Edge-to-Edge Main Workspace */
.admin-main-workspace {
  width: 100%;
  max-width: 100%;
  padding: 26px 32px 80px;
  box-sizing: border-box;
  flex: 1;
}

/* Edge-to-Edge Responsive Metrics Grid */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.admin-metric-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  border: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: #CBD5E1;
  transition: height 0.25s ease;
}

.admin-metric-card.orange::before {
  background: linear-gradient(90deg, #F59E0B, #D97706);
}

.admin-metric-card.blue::before {
  background: linear-gradient(90deg, #3B82F6, #2563EB);
}

.admin-metric-card.green::before {
  background: linear-gradient(90deg, #10B981, #059669);
}

.admin-metric-card.teal::before {
  background: linear-gradient(90deg, #14B8A6, #0D9488);
}

.admin-metric-card.purple::before {
  background: linear-gradient(90deg, #A855F7, #7C3AED);
}

.admin-metric-card.indigo::before {
  background: linear-gradient(90deg, #6366F1, #4F46E5);
}

/* Interactive Hover Lift, Shimmer Sweep & Pressed Feedback */
.admin-metric-card.interactive-card {
  cursor: pointer;
  user-select: none;
}

.admin-metric-card.interactive-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: none;
}

.admin-metric-card.interactive-card:hover::after {
  left: 180%;
  transition: all 0.75s ease;
}

.admin-metric-card.interactive-card:hover {
  transform: translateY(-6px) scale(1.018);
  box-shadow: 0 18px 36px -6px rgba(15, 23, 42, 0.12);
}

.admin-metric-card.interactive-card:hover::before {
  height: 5px;
}

.admin-metric-card.interactive-card:active {
  transform: scale(0.975);
}

.admin-metric-card.orange:hover {
  border-color: #F59E0B;
  box-shadow: 0 16px 36px -6px rgba(245, 158, 11, 0.22);
}

.admin-metric-card.blue:hover {
  border-color: #3B82F6;
  box-shadow: 0 16px 36px -6px rgba(37, 99, 235, 0.22);
}

.admin-metric-card.green:hover {
  border-color: #10B981;
  box-shadow: 0 16px 36px -6px rgba(16, 185, 129, 0.22);
}

.admin-metric-card.teal:hover {
  border-color: #14B8A6;
  box-shadow: 0 16px 36px -6px rgba(20, 184, 166, 0.22);
}

.admin-metric-card.purple:hover {
  border-color: #A855F7;
  box-shadow: 0 16px 36px -6px rgba(168, 85, 247, 0.22);
}

.admin-metric-card.indigo:hover {
  border-color: #6366F1;
  box-shadow: 0 16px 36px -6px rgba(99, 102, 241, 0.22);
}

.admin-metric-card:hover .m-icon {
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.admin-metric-card .m-left {
  display: flex;
  flex-direction: column;
}

.m-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.admin-metric-card .m-left label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  display: block;
}

.m-click-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #64748B;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.admin-metric-card:hover .m-click-tag {
  opacity: 1;
  background: #2563EB;
  color: #FFFFFF;
  transform: translateX(2px);
}

.admin-metric-card .val {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-sora, 'Sora', sans-serif);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.admin-metric-card .m-subtext {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.text-orange {
  color: #D97706 !important;
}

.text-blue {
  color: #2563EB !important;
}

.text-green {
  color: #16A34A !important;
}

.text-teal {
  color: #0D9488 !important;
}

.text-purple {
  color: #9333EA !important;
}

.text-indigo {
  color: #4F46E5 !important;
}

.m-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.m-icon.orange {
  background: #FEF3C7;
  color: #D97706;
}

.m-icon.blue {
  background: #EFF6FF;
  color: #2563EB;
}

.m-icon.green {
  background: #DCFCE7;
  color: #16A34A;
}

.m-icon.teal {
  background: #CCFBF1;
  color: #0D9488;
}

.m-icon.purple {
  background: #F3E8FF;
  color: #9333EA;
}

.m-icon.indigo {
  background: #EEF2FF;
  color: #4F46E5;
}

/* ==================== EXECUTIVE ANALYTICS & CHARTS DECK ==================== */
.admin-analytics-deck {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
  width: 100%;
}

@media (max-width: 1100px) {
  .admin-analytics-deck {
    grid-template-columns: 1fr;
  }
}

.analytics-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.analytics-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.analytics-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.chart-title-row h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.3px;
}

.chart-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: #EFF6FF;
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-badge.pulse {
  background: #DCFCE7;
  color: #15803D;
}

.chart-subtitle {
  font-size: 12px;
  color: #64748B;
  margin: 0;
}

.chart-range-group {
  display: flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}

.chart-range-btn {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-range-btn:hover {
  color: #0F172A;
}

.chart-range-btn.active {
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.chart-kpi-summary {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.kpi-mini-pill {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.kpi-mini-pill:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.kpi-mini-pill .kpi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.kpi-mini-pill.green .kpi-dot {
  background: #10B981;
}

.kpi-mini-pill.blue .kpi-dot {
  background: #2563EB;
}

.kpi-mini-pill.purple .kpi-dot {
  background: #8B5CF6;
}

.kpi-label {
  color: #64748B;
  font-weight: 600;
  font-size: 11.5px;
}

.kpi-val {
  color: #0F172A;
  font-weight: 800;
  font-size: 13px;
}

.chart-footer-hint {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.donut-interactive-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legend-item:hover {
  background: #FFFFFF;
  border-color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  display: inline-block;
}

.legend-name {
  color: #64748B;
  font-weight: 600;
  font-size: 11.5px;
  flex: 1;
}

.legend-val {
  color: #0F172A;
  font-weight: 800;
  font-size: 12.5px;
}

/* ==================== MODERN SAAS ADMIN LAYOUT & SIDEBAR ==================== */
.admin-app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #F1F5F9;
  position: relative;
  overflow-x: hidden;
}

/* Dark Obsidian SaaS Left Sidebar */
.admin-sidebar {
  width: 260px;
  min-width: 260px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: #0B132B;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.admin-sidebar-brand {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-shield-orb {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 17px;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.45);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.brand-accent {
  color: #38BDF8;
}

.brand-edition-tag {
  font-size: 10px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.sidebar-close-btn {
  display: none;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
}

/* Sidebar Navigation Items */
.admin-sidebar-nav {
  flex: 1;
  padding: 18px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 1px;
  padding: 12px 14px 6px;
  text-transform: uppercase;
}

.admin-nav-item {
  width: 100%;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.18s ease;
  position: relative;
  text-align: left;
}

.admin-nav-item i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  color: #64748B;
  transition: color 0.18s ease;
}

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

.admin-nav-item:hover i {
  color: #38BDF8;
}

.admin-nav-item.active {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.admin-nav-item.active i {
  color: #FFFFFF;
}

.admin-badge {
  margin-left: auto;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
}

/* Sidebar Footer User Card */
.admin-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  font-size: 16px;
}

.sidebar-status-glow {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #0B132B;
  box-shadow: 0 0 8px #10B981;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
}

.sidebar-username {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.sidebar-user-role {
  font-size: 10px;
  font-weight: 800;
  color: #34D399;
  letter-spacing: 0.6px;
}

/* ==================== MAIN VIEWPORT & POP HEADER ==================== */
.admin-main-viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #F8FAFC;
}

/* Modern High-Impact Pop Header */
.admin-top-pop-header {
  height: 70px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-mobile-toggle {
  display: none;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.admin-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.crumb-root {
  color: #64748B;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crumb-separator {
  color: #CBD5E1;
  font-weight: 400;
}

.crumb-current {
  color: #0F172A;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-header-actions-dock {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.header-action-pill:hover {
  background: #FFFFFF;
  border-color: #2563EB;
  color: #2563EB;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.header-live-pulse-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.pulse-beacon {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.beacon-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.beacon-ring {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: beaconPulse 2s infinite ease-out;
}

@keyframes beaconPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.admin-header-user-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: 6px;
}

.user-role-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: #2563EB;
  letter-spacing: 0.6px;
}

.user-name-text {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.admin-header-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.admin-header-logout-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* Workspace Main Container */
.admin-main-workspace {
  flex: 1;
  padding: 24px 32px 48px;
  box-sizing: border-box;
  width: 100%;
}

.admin-content-card {
  width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  border: 1px solid #E2E8F0;
  box-sizing: border-box;
}

/* ==================== SCI-FI FLOATING TOAST SYSTEM ==================== */
.admin-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.admin-modern-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: adminToastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.admin-modern-toast.hide {
  opacity: 0;
  transform: translateX(40px) scale(0.95);
}

.admin-modern-toast.success .toast-icon-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.admin-modern-toast.info .toast-icon-badge {
  background: rgba(37, 99, 235, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.admin-modern-toast.error .toast-icon-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.toast-content-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.toast-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.toast-message-body {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #F8FAFC;
}

.toast-close-x {
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.toast-close-x:hover {
  color: #FFFFFF;
}

.toast-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.toast-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #10B981);
  animation: adminToastShrink linear forwards;
}

@keyframes adminToastSlideIn {
  from { opacity: 0; transform: translateX(60px) scale(0.92); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes adminToastShrink {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==================== AUDIT LOGS OVERHAUL (TIMELINE CARDS) ==================== */
.audit-filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.audit-chip {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.audit-chip:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

.audit-chip.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.admin-audit-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.audit-timeline-item {
  display: flex;
  align-items: stretch;
  gap: 16px;
  position: relative;
}

.audit-timeline-stem {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
  flex-shrink: 0;
}

.audit-icon-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  z-index: 2;
  box-shadow: 0 0 0 4px #FFFFFF, 0 2px 8px rgba(0, 0, 0, 0.08);
}

.audit-timeline-item.green .audit-icon-orb { background: #ECFDF5; color: #059669; }
.audit-timeline-item.red .audit-icon-orb { background: #FEF2F2; color: #DC2626; }
.audit-timeline-item.emerald .audit-icon-orb { background: #ECFDF5; color: #10B981; }
.audit-timeline-item.amber .audit-icon-orb { background: #FFFBEB; color: #D97706; }
.audit-timeline-item.purple .audit-icon-orb { background: #F5F3FF; color: #7C3AED; }
.audit-timeline-item.blue .audit-icon-orb { background: #EFF6FF; color: #2563EB; }

.audit-stem-connector {
  flex: 1;
  width: 2px;
  background: #E2E8F0;
  margin-top: 4px;
}

.audit-timeline-item:last-child .audit-stem-connector {
  display: none;
}

.audit-card-card {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
  transition: all 0.18s ease;
}

.audit-card-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.audit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audit-action-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.audit-actor-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.audit-actor-badge.system {
  color: #64748B;
  background: #F1F5F9;
}

.audit-timestamp {
  font-size: 11.5px;
  color: #94A3B8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.audit-card-body {
  font-size: 13.5px;
  color: #1E293B;
  line-height: 1.5;
}

.audit-detail-text {
  margin: 0;
  font-weight: 500;
}

.empty-audit-state {
  text-align: center;
  padding: 48px 20px;
  background: #F8FAFC;
  border-radius: 16px;
  border: 1px dashed #CBD5E1;
}

.empty-audit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 12px;
}

.empty-audit-state h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.empty-audit-state p {
  font-size: 13px;
  color: #64748B;
  margin: 0;
}

/* Responsive Breakpoints for Admin Layout */
@media (max-width: 1024px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-sidebar-overlay.active {
    display: block;
  }
  .sidebar-close-btn {
    display: block;
  }
  .admin-mobile-toggle {
    display: block;
  }
  .admin-top-pop-header {
    padding: 0 16px;
  }
  .admin-main-workspace {
    padding: 16px;
  }
  .admin-content-card {
    padding: 20px 16px;
  }
}

.admin-view-pane {
  display: none;
}

.admin-view-pane.active {
  display: block;
  animation: fadeInAdmin 0.2s ease;
}

.pane-header {
  margin-bottom: 22px;
}

.admin-filter-chip {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #64748B;
  transition: all 0.15s ease;
}

.admin-filter-chip:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.6);
}

.admin-filter-chip.active {
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.pane-header.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.pane-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 5px 0;
  font-family: var(--font-sora, 'Sora', sans-serif);
  letter-spacing: -0.3px;
}

.pane-header p {
  font-size: 13px;
  color: #64748B;
  margin: 0;
}

/* High-Density Responsive Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #FFFFFF;
}

.admin-table th {
  background: #F8FAFC;
  padding: 13px 18px;
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1.5px solid #E2E8F0;
  white-space: nowrap;
}

.admin-table td {
  padding: 15px 18px;
  font-size: 13px;
  color: #1E293B;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
  background: #F8FAFC;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Custom Table Cells & Badges */
.tx-id-badge {
  font-family: monospace;
  font-weight: 700;
  background: #EFF6FF;
  color: #1D4ED8;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid #DBEAFE;
  display: inline-block;
}

.user-cell b,
.bank-cell b {
  display: block;
  font-weight: 700;
  color: #0F172A;
  font-size: 13px;
}

.user-cell .sub,
.bank-cell .sub {
  font-size: 11.5px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.amount-cell .main {
  font-weight: 800;
  font-size: 14.5px;
  color: #0F172A;
  display: block;
  font-family: var(--font-sora, 'Sora', sans-serif);
}

.amount-cell .sub.green {
  font-size: 11px;
  color: #16A34A;
  font-weight: 700;
  margin-top: 2px;
}

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

.utr-badge-box code {
  background: #FEF3C7;
  color: #92400E;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #FDE68A;
  letter-spacing: 0.3px;
}

.utr-badge-box i {
  cursor: pointer;
  color: #94A3B8;
  font-size: 14px;
  transition: color 0.15s;
}

.utr-badge-box i:hover {
  color: #2563EB;
}

.action-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-btn-sm {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-btn-sm.approve {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.admin-btn-sm.approve:hover {
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
  transform: translateY(-1px);
}

.admin-btn-sm.reject {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #F FFFFF;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.admin-btn-sm.reject:hover {
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.empty-table-state {
  text-align: center;
  padding: 48px 16px;
  color: #64748B;
  font-weight: 700;
  font-size: 13.5px;
}

.empty-table-state i {
  color: #16A34A;
  margin-right: 8px;
  font-size: 16px;
}

/* Package Grid in Admin */
.admin-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.admin-pkg-card {
  background: #94a3b8e8;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-pkg-card:hover {
  border-color: #93C5FD;
  background: #94a3b564;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.pkg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tier-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  letter-spacing: 0.4px;
}

.tier-badge.low {
  background: #DCFCE7;
  color: #16A34A;
}

.tier-badge.middle {
  background: #EFF6FF;
  color: #2563EB;
}

.tier-badge.high {
  background: #FEF3C7;
  color: #D97706;
}

.pkg-delete-btn {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 15px;
  transition: color 0.15s;
}

.pkg-delete-btn:hover {
  color: #EF4444;
}

.pkg-amount {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 10px;
  font-family: var(--font-sora, 'Sora', sans-serif);
}

.pkg-details {
  font-size: 12.5px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.42);
  transform: translateY(-1px);
}

.admin-top-btn {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  padding: 9px 18px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
}

.admin-top-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Tickets Stream in Admin */
.admin-tickets-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-ticket-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px;
  transition: all 0.2s ease;
}

.admin-ticket-card:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.t-id {
  font-family: monospace;
  color: #64748B;
  font-size: 11px;
}

.t-subject {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}

.t-status {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 12px;
}

.t-status.open {
  background: #FEF3C7;
  color: #D97706;
}

.t-status.in_progress {
  background: #EFF6FF;
  color: #2563EB;
}

.t-status.resolved {
  background: #DCFCE7;
  color: #16A34A;
}

.t-issue {
  font-size: 12.5px;
  color: #475569;
  background: #FFFFFF;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  margin-bottom: 14px;
}

.t-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.t-msg-row {
  display: flex;
  width: 100%;
}

.t-msg-row.client-row {
  justify-content: flex-start;
}

.t-msg-row.agent-row {
  justify-content: flex-end;
}

.t-msg-row.system-row {
  justify-content: center;
}

.t-msg {
  max-width: 85%;
  font-size: 12.5px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.t-msg.client {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-left: 3.5px solid #0284C7;
}

.t-msg.agent {
  background: #EFF6FF;
  border: 1.5px solid #93C5FD;
  border-right: 3.5px solid #2563EB;
}

.t-msg.system {
  background: #F1F5F9;
  color: #64748B;
  font-style: italic;
  font-size: 11.5px;
  text-align: center;
  border: 1px dashed #CBD5E1;
}

.t-msg-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 4px;
}

.t-msg-tag {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.t-msg-tag.client {
  color: #0369A1;
}

.t-msg-tag.agent {
  color: #1D4ED8;
}

.t-msg-tag.system {
  color: #64748B;
}

.t-msg-body {
  font-size: 12.5px;
  line-height: 1.45;
  color: #0F172A;
}

.t-msg-time {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 500;
}

.t-reply-row {
  display: flex;
  gap: 10px;
}

.admin-input-sm {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  color: #0F172A;
}

/* Settings Form */
.admin-settings-form {
  max-width: 720px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-input {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 11px;
  padding: 11px 15px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0F172A;
  margin-top: 5px;
  box-sizing: border-box;
  transition: all 0.2s;
}

.admin-input:focus {
  border-color: #2563EB;
  background: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Audit Logs */
.admin-audit-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
}

.audit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #F1F5F9;
  font-size: 12.5px;
}

.audit-time {
  font-family: monospace;
  color: #94A3B8;
  font-size: 11px;
  white-space: nowrap;
}

.audit-action-tag {
  font-weight: 800;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.audit-action-tag.client_deposit {
  background: #FEF3C7;
  color: #D97706;
}

.audit-action-tag.approve_deposit {
  background: #DCFCE7;
  color: #16A34A;
}

.audit-action-tag.reject_deposit {
  background: #FEE2E2;
  color: #DC2626;
}

.audit-action-tag.add_package {
  background: #EFF6FF;
  color: #2563EB;
}

.audit-action-tag.update_settings {
  background: #F3E8FF;
  color: #9333EA;
}

.audit-details {
  color: #334155;
  font-weight: 600;
}

/* Mobile Responsive Overrides for Edge-to-Edge Admin */
@media (max-width: 900px) {
  .admin-header {
    padding: 12px 16px;
  }

  .admin-main-workspace {
    padding: 18px 16px 60px;
  }

  .admin-content-card {
    padding: 20px 16px;
  }

  .admin-logo-text .brand-sub {
    display: none;
  }

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

/* ==================== SUPABASE STATUS BADGE & DOT ==================== */
.supabase-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.green {
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulseGreen 2s infinite;
}

.status-dot.red {
  background: #EF4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ==================== GLOBAL UTILITY & MODAL OVERLAY FIXES ==================== */
.hidden {
  display: none !important;
}

.support-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.support-modal-overlay.hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

/* Admin Modal Overlays & Centered Dialog Cards */
.admin-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.admin-modal-overlay.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.admin-modal-card {
  background: #FFFFFF !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(226, 232, 240, 0.9) !important;
  text-align: center;
  padding: 32px 26px !important;
  width: 100% !important;
  max-width: 430px !important;
  margin: auto !important;
  position: relative;
  z-index: 100001;
  box-sizing: border-box;
  animation: adminModalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes adminModalScaleIn {
  from {
    transform: scale(0.92) translateY(12px);
    opacity: 0;
  }

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


/* ==================== CENTERED LUXURY MODALS & LIVE CHAT STYLING ==================== */
@keyframes scaleUpModal {
  from {
    transform: scale(0.94);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.chat-container-card {
  width: 100% !important;
  max-width: 450px !important;
  margin: auto !important;
  background: #ffffff;
  border-radius: 24px !important;
  box-shadow: 0 20px 60px -10px rgba(15, 23, 42, 0.38), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  height: auto;
  overflow: hidden;
  position: relative;
  animation: scaleUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-container-card.ig-theme {
  height: 80vh;
}

/* Chat & Modal Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #ffffff;
  border-bottom: 1.5px solid #F1F5F9;
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  max-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.chat-avatar .online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.chat-agent-info h4 {
  font-family: var(--font-sora);
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.2px;
}

.chat-agent-info p {
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.chat-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: scale(1.06);
}

/* Quick Help FAQ Chips Container */
.chat-faq-container {
  padding: 10px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.chat-faq-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-faq-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chat-faq-chips::-webkit-scrollbar {
  display: none;
}

.faq-chip {
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 99px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.faq-chip:hover {
  border-color: #2563EB;
  color: #2563EB;
  background: #EFF6FF;
  transform: translateY(-1px);
}

.faq-chip.agent-chip {
  background: linear-gradient(135deg, #EDE9FE, #F3E8FF);
  border-color: #C4B5FD;
  color: #6D28D9;
  font-weight: 800;
}

.faq-chip.agent-chip:hover {
  background: linear-gradient(135deg, #DDD6FE, #EDE9FE);
  border-color: #7C3AED;
}

/* Chat Messages Stream */
.chat-message-stream {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F8FAFC;
}

.chat-msg-row {
  display: flex;
  width: 100%;
}

.chat-msg-row.user {
  justify-content: flex-end;
}

.chat-msg-row.bot,
.chat-msg-row.agent {
  justify-content: flex-start;
}

.chat-msg-bubble {
  max-width: 82%;
  padding: 11px 15px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 18px;
  word-break: break-word;
  position: relative;
}

.chat-msg-bubble.user {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #ffffff !important;
  border-radius: 18px 18px 4px 18px !important;
  padding: 11px 15px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22) !important;
}

.chat-msg-bubble.agent {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1.5px solid #93C5FD !important;
  border-left: 4px solid #2563EB !important;
  border-radius: 18px 18px 18px 4px !important;
  padding: 11px 15px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08) !important;
}

.chat-msg-bubble.bot {
  background: #F8FAFC !important;
  color: #334155 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 18px 18px 18px 4px !important;
  padding: 11px 15px !important;
  font-size: 13px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.chat-msg-bubble.agent b {
  color: #2563EB;
}

.chat-avatar.ig-avatar-ring {
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box !important;
  border: 2.5px solid transparent !important;
  color: #E1306C !important;
  box-shadow: none !important;
}

.ig-verified-badge {
  color: #0095F6;
  font-size: 13px;
  margin-left: 3px;
}

.chat-time {
  display: block;
  font-size: 9.5px;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

/* Typing Indicator Animation */
.chat-msg-bubble.typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}

.chat-msg-bubble.typing .dot {
  width: 6px;
  height: 6px;
  background: #94A3B8;
  border-radius: 50%;
  animation: typingBounce 1.3s infinite ease-in-out;
}

.chat-msg-bubble.typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-msg-bubble.typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

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

  30% {
    transform: translateY(-5px);
  }
}

/* Support Ticket Form Box inside Chat */
.ticket-form-box {
  background: #F1F5F9;
  border-top: 1px solid #E2E8F0;
  padding: 14px 16px;
  flex-shrink: 0;
  animation: fadeInPane 0.2s ease;
}

.ticket-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: #1E293B;
}

/* External Channels Bar */
.chat-external-links {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border-top: 1px solid #F1F5F9;
  flex-shrink: 0;
}

.chat-action-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.chat-action-btn.ticket-btn {
  background: #EDE9FE;
  color: #7C3AED;
  border: 1px solid #DDD6FE;
}

.chat-action-btn.ticket-btn:hover {
  background: #DDD6FE;
}

.chat-action-btn.telegram-btn {
  background: #E0F2FE;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

.chat-action-btn.telegram-btn:hover {
  background: #BAE6FD;
}

.chat-action-btn.whatsapp-btn {
  background: #DCFCE7;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.chat-action-btn.whatsapp-btn:hover {
  background: #BBF7D0;
}

/* Chat Input Footer Bar */
.chat-footer-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 14px;
  background: #ffffff;
  border-top: 1px solid #F1F5F9;
  flex-shrink: 0;
}

#chatUserInput {
  flex: 1;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 24px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0F172A;
  outline: none;
  transition: all 0.2s ease;
}

#chatUserInput:focus {
  border-color: #2563EB;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  border: none;
  transition: all 0.2s ease;
}

.chat-send-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.chat-send-btn:active {
  transform: scale(0.96);
}

/* ==================== TRANSACTION HISTORY MODAL STYLES ==================== */
.history-list-stream {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FAFC;
  min-height: 250px;
}

.tx-card-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.tx-card-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.tx-icon.deposit {
  background: #DCFCE7;
  color: #16A34A;
}

.tx-icon.withdraw {
  background: #FEE2E2;
  color: #EF4444;
}

.tx-meta h4 {
  font-family: var(--font-sora);
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.tx-date {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.tx-utr {
  font-size: 10.5px;
  font-family: monospace;
  color: #7C3AED;
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

.tx-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.tx-amount {
  font-family: var(--font-sora);
  font-size: 15px;
  font-weight: 800;
}

.tx-amount.green {
  color: #16A34A;
}

.tx-amount.red {
  color: #EF4444;
}

.tx-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tx-status-pill.approved {
  background: #DCFCE7;
  color: #16A34A;
}

.tx-status-pill.pending {
  background: #FEF3C7;
  color: #D97706;
}

.tx-status-pill.rejected {
  background: #FEE2E2;
  color: #DC2626;
}

.empty-history-state {
  text-align: center;
  padding: 48px 20px;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.empty-history-state i {
  font-size: 42px;
  color: #CBD5E1;
}

/* ==================== AUTHENTICATION UI (CLIENT & ADMIN) ==================== */
.auth-wrapper {
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0 30px;
}

.auth-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-header .auth-logo {
  font-family: var(--font-sora);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-header .auth-logo .bg {
  color: #0F172A;
}

.auth-header .auth-logo .pay {
  color: #2563EB;
}

.auth-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 13px;
  color: #64748B;
}

.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  margin-bottom: 6px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap i.input-icon {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  font-size: 15px;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-input::placeholder {
  color: #94A3B8;
  font-weight: 500;
}

.auth-action-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.auth-action-btn:active {
  transform: scale(0.98);
}

.auth-action-btn.green {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.auth-footer-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #64748B;
}

.auth-link {
  color: #2563EB;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-link:hover {
  text-decoration: underline;
}

/* User Profile & Header Logout Buttons */
.user-profile-meta {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile-meta .user-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
}

.user-profile-meta .user-info p {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
}

.logout-pill-btn {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.logout-pill-btn:hover {
  background: #FCA5A5;
}

/* Admin Auth Overlay Screen */
.admin-auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-auth-box {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ==================== LIVE ALERT BELL & BADGE ANIMATIONS ==================== */
.alert-bell-btn {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.alert-bell-btn:hover {
  transform: scale(1.08);
  background: #EFF6FF !important;
  color: #2563EB !important;
}

.alert-bell-btn:active {
  transform: scale(0.92);
}

.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #EF4444;
  color: #FFFFFF;
  font-family: var(--font-sora);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: bellBadgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bellBadgePop {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

/* ==================== LIVE NOTIFICATIONS LIST CARDS ==================== */
.notifications-card {
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32) !important;
}

.notif-item {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: notifSlideIn 0.25s ease-out;
}

.notif-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@keyframes notifSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

/* ==================== ADMIN REJECTION MODAL & REASON CHIPS ==================== */
.reject-modal-card {
  border: 1.5px solid #FECDD3 !important;
  box-shadow: 0 25px 70px rgba(153, 27, 27, 0.25) !important;
}

.reject-chips-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reject-chip-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #F1F5F9;
  background: #F8FAFC;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.reject-chip-btn:hover {
  background: #FFF1F2;
  border-color: #FECDD3;
  color: #991B1B;
  transform: translateX(3px);
}

.reject-chip-btn.active {
  background: #FFF1F2;
  border-color: #EF4444;
  color: #991B1B;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
}

.reject-chip-btn i {
  font-size: 15px;
  flex-shrink: 0;
}

/* ==================== DIRECT LIVE QR CHECKOUT CARD ==================== */
.qr-scanner-card.direct-live-qr {
  background: #FFFFFF;
  border: 1.5px solid #DDD6FE;
  border-radius: 22px;
  padding: 20px 16px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}

.qr-scanner-card.direct-live-qr .qr-frame-box {
  width: 196px;
  height: 196px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-scanner-card.direct-live-qr .qr-frame-box:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.15);
}

.qr-scanner-card.direct-live-qr .qr-dynamic-img {
  width: 170px;
  height: 170px;
}

/* ==================== USDT DEPOSIT PANE STYLES (SCREENSHOT 1) ==================== */
.usdt-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.usdt-price-box {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.usdt-price-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.usdt-price-val {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
}

.usdt-price-val.platform {
  color: #2563EB;
}

/* Vibrant Blue Calculator Card */
.usdt-calc-card {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 60%, #1D4ED8 100%);
  border-radius: 20px;
  padding: 20px;
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  margin-bottom: 16px;
}

.usdt-calc-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.usdt-calc-header h4 {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.usdt-calc-rate {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.usdt-calc-input-wrap {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.usdt-calc-input {
  border: none;
  background: transparent;
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  outline: none;
  width: 100%;
}

.usdt-calc-unit {
  font-size: 14px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.5px;
}

.usdt-calc-info-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.usdt-calc-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.usdt-calc-info-row .bonus-highlight {
  color: #86EFAC;
  font-weight: 700;
}

.usdt-calc-info-row.total {
  border-top: 1px dashed rgba(255, 255, 255, 0.35);
  padding-top: 8px;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.usdt-calc-info-row .total-val {
  font-size: 17px;
  font-weight: 800;
}

.usdt-create-order-btn {
  width: 100%;
  background: #2563EB;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 13px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.usdt-create-order-btn:hover {
  background: #1D4ED8;
}

.usdt-create-order-btn:active {
  transform: scale(0.98);
}

/* Preset Buttons Grid (3x3) */
.usdt-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.usdt-preset-btn {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 8px 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.usdt-preset-btn:hover {
  border-color: #93C5FD;
  transform: translateY(-2px);
}

.usdt-preset-btn.active {
  border-color: #2563EB;
  background: #EFF6FF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.usdt-preset-val {
  font-size: 18px;
  font-weight: 800;
  color: #2563EB;
}

.usdt-preset-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.usdt-preset-badge.basic {
  background: #1E293B;
  color: #FFFFFF;
}

.usdt-preset-badge.vip {
  background: #D97706;
  color: #FFFFFF;
}

/* ==================== USDT TASK DETAILS VIEW (SCREENSHOT 2) ==================== */
.usdt-task-screen-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  background: #F0F7FF;
  padding-bottom: 30px;
  box-sizing: border-box;
}

.usdt-task-header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.usdt-task-back-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E0E7FF;
  color: #2563EB;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.usdt-task-back-circle:hover {
  background: #C7D2FE;
}

.usdt-task-header-title {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.usdt-task-body {
  padding: 10px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.usdt-task-qr-card {
  width: 240px;
  height: 240px;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.usdt-task-qr-box {
  width: 200px;
  height: 200px;
}

.usdt-task-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.usdt-task-timer {
  font-size: 26px;
  font-weight: 800;
  color: #2563EB;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.usdt-task-amount-note {
  font-size: 13px;
  color: #64748B;
  margin: 0 0 6px;
  font-weight: 500;
}

.usdt-task-amount-note b {
  color: #1E293B;
  font-weight: 800;
}

.usdt-task-address-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: #64748B;
  margin-bottom: 22px;
}

.usdt-task-address-line .addr-code {
  font-family: monospace;
  font-weight: 700;
  color: #334155;
}

.usdt-task-copy-icon-btn {
  background: transparent;
  border: none;
  color: #2563EB;
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.usdt-task-input-box {
  width: 100%;
  margin-bottom: 16px;
}

.usdt-task-txid-field {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #0F172A;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.usdt-task-txid-field:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.usdt-task-action-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.usdt-task-btn-submit {
  width: 100%;
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: background 0.15s ease;
}

.usdt-task-btn-submit:hover {
  background: #1D4ED8;
}

.usdt-task-btn-cancel {
  width: 100%;
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.usdt-task-btn-cancel:hover {
  background: #F8FAFC;
}

/* ==========================================================
   WITHDRAWAL & DYNAMIC UPI ACCOUNTS (CLEAN WHITE THEME)
   ========================================================== */
.withdraw-dark-container,
.withdraw-white-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 22px 18px;
  color: #0F172A;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.withdraw-balance-header {
  text-align: center;
  margin-bottom: 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 18px 14px;
}

.withdraw-balance-label {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.withdraw-balance-amount {
  font-size: 34px;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-sora, 'Sora', sans-serif);
  margin-top: 4px;
  letter-spacing: -0.5px;
}

.withdraw-balance-amount .currency-symbol {
  font-size: 26px;
  font-weight: 700;
  color: #2563EB;
  margin-right: 2px;
}

/* Add UPI Button */
.withdraw-add-upi-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
  margin-bottom: 22px;
}

.withdraw-add-upi-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
}

.withdraw-add-upi-btn:active {
  transform: scale(0.98);
}

/* Saved Real UPI Accounts Section */
.withdraw-upi-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #0F172A;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.withdraw-upi-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.user-upi-empty-card {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
}

.user-upi-empty-title {
  color: #0F172A;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.user-upi-empty-desc {
  color: #64748B;
  font-size: 12px;
  line-height: 1.4;
}

.user-upi-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.user-upi-card.active {
  border-color: #2563EB;
  background: #EFF6FF;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.user-upi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.user-upi-badge {
  background: #EFF6FF;
  color: #2563EB;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.user-upi-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-upi-status-tag.active {
  color: #10B981;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-upi-btn-select {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #2563EB;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-upi-btn-select:hover {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.user-upi-btn-del {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.user-upi-btn-del:hover {
  color: #EF4444;
}

.user-upi-vpa {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
}

.user-upi-beneficiary {
  font-size: 12px;
  color: #64748B;
}

/* Payout Request Card */
.withdraw-request-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 18px 16px;
}

.withdraw-request-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.payout-method-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.payout-method-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payout-method-tab.active {
  background: #EFF6FF;
  border-color: #2563EB;
  color: #2563EB;
  font-weight: 800;
}

.payout-details-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #334155;
}

.withdraw-amount-box label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.withdraw-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.withdraw-input-prefix {
  position: absolute;
  left: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #64748B;
}

.withdraw-input-field {
  width: 100%;
  padding: 12px 14px 12px 34px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  color: #0F172A;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-sora, 'Sora', sans-serif);
  outline: none;
}

.withdraw-input-field:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.withdraw-quick-presets {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.withdraw-preset-chip {
  flex: 1;
  padding: 8px 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.withdraw-preset-chip:hover {
  background: #EFF6FF;
  border-color: #2563EB;
  color: #2563EB;
}

.withdraw-submit-btn {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: none;
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.withdraw-submit-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* ==========================================================
   SCREENSHOT 2: PAYMENT CHECKOUT METHOD TABS
   ========================================================== */
.pg-method-toggle-container {
  display: flex;
  background: #F1F5F9;
  border-radius: 12px;
  padding: 4px;
  margin: 12px 16px 16px;
  gap: 4px;
}

.pg-method-tab {
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pg-method-tab.active {
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================
   TEAM & TREE-LIKE HIERARCHY STRUCTURE (10% COMMISSION)
   ========================================================== */
.invite-share-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.invite-share-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease;
}

.invite-share-btn:active {
  transform: scale(0.97);
}

.invite-share-btn.whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.invite-share-btn.copy {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}

/* ==========================================================
   MINIMAL TEAM & REFERRALS (NO CLUTTER, REAL DATA)
   ========================================================== */
.minimal-team-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 14px;
}

.minimal-team-top h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.minimal-team-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Minimal Hero Earnings Card */
.min-team-hero-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.min-team-hero-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.min-team-hero-amount {
  font-family: var(--font-sora);
  font-size: 32px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.min-team-hero-sub {
  display: block;
  font-size: 12px;
  color: #64748B;
  margin-top: 4px;
}

/* Minimal 3-Cell Stats Grid */
.min-team-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.min-team-stat-cell {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.min-team-stat-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.min-team-stat-val {
  font-family: var(--font-sora);
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
}

.min-team-stat-val.accent {
  color: #2563EB;
}

/* Minimal Invite Card */
.min-invite-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.min-invite-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.min-invite-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.min-invite-code {
  font-family: var(--font-sora);
  font-size: 15px;
  font-weight: 800;
  color: #2563EB;
  background: #EFF6FF;
  padding: 3px 10px;
  border-radius: 8px;
}

.min-invite-link-box {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 6px 8px 6px 12px;
  gap: 8px;
  margin-bottom: 12px;
}

.min-invite-url {
  flex: 1;
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.min-link-copy-btn {
  background: #E2E8F0;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0F172A;
  cursor: pointer;
  flex-shrink: 0;
}

.min-invite-actions-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

.min-btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transition: opacity 0.15s ease;
}

.min-btn-whatsapp:active {
  opacity: 0.9;
}

.min-btn-copy {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.min-btn-copy:active {
  opacity: 0.9;
}

/* Minimal Commission Structure */
.min-card-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 16px;
}

.min-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
}

.min-level-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.min-level-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}

.min-level-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.min-level-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.min-level-tag.level-1 {
  background: #EFF6FF;
  color: #2563EB;
}

.min-level-tag.level-2 {
  background: #F5F3FF;
  color: #7C3AED;
}

.min-level-name {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.min-level-desc {
  font-size: 11px;
  color: #64748B;
}

.min-level-badge {
  font-family: var(--font-sora);
  font-size: 14px;
  font-weight: 800;
  color: #2563EB;
}

.min-level-badge.secondary {
  color: #7C3AED;
}

/* Minimal Team Members List */
.min-empty-members {
  padding: 24px 16px;
  text-align: center;
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.5;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px dashed #CBD5E1;
}

.min-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
}

.min-member-row:last-child {
  border-bottom: none;
}

.min-member-info {
  display: flex;
  flex-direction: column;
}

.min-member-phone {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

.min-member-meta {
  font-size: 11px;
  color: #64748B;
}

.min-member-stats {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.min-member-comm {
  font-size: 13.5px;
  font-weight: 800;
  color: #10B981;
}

.min-member-vol {
  font-size: 11px;
  color: #64748B;
}

/* Direct Wallet Add Card on Deposit */
.deposit-wallet-add-card {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

/* ==========================================================================
   MODERN ADMIN ENHANCEMENTS: TOP PROGRESS BAR, GLOBAL LOADER & PAGINATION
   ========================================================================== */

/* 1. YouTube/GitHub Style Top Animated Slim Progress Bar */
.admin-top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  z-index: 100005;
  background: linear-gradient(90deg, #2563EB 0%, #38BDF8 50%, #10B981 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9), 0 0 6px rgba(37, 99, 235, 0.8);
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: none;
  opacity: 0;
}

.admin-top-progress-bar.active {
  opacity: 1;
}

/* 2. Modern Full-Screen Global Loading Screen with Dual-Ring Gradient Spinner */
.admin-global-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-global-loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.admin-loader-card {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.9);
  max-width: 380px;
  width: 100%;
  position: relative;
  animation: loaderCardEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loaderCardEnter {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }

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

.admin-loader-rings {
  position: relative;
  width: 82px;
  height: 82px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-loader-rings .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.admin-loader-rings .ring.outer {
  border: 3.5px solid transparent;
  border-top-color: #2563EB;
  border-right-color: #38BDF8;
  animation: spinRing 1s linear infinite;
}

.admin-loader-rings .ring.inner {
  inset: 9px;
  border: 3px solid transparent;
  border-bottom-color: #10B981;
  border-left-color: #6366F1;
  animation: spinRingReverse 1.4s linear infinite;
}

.loader-logo-core {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  animation: pulseCore 1.6s ease-in-out infinite;
}

@keyframes spinRing {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinRingReverse {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes pulseCore {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  }
}

.admin-loader-title {
  font-family: var(--font-sora, 'Sora', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.admin-loader-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 18px;
  max-width: 290px;
  line-height: 1.45;
}

.admin-loader-progress-track {
  width: 100%;
  height: 5px;
  background: #F1F5F9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.admin-loader-progress-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #2563EB, #38BDF8, #10B981);
  border-radius: 10px;
  animation: loaderBarIndeterminate 1.5s infinite ease-in-out;
}

@keyframes loaderBarIndeterminate {
  0% {
    width: 10%;
    transform: translateX(-10%);
  }

  50% {
    width: 70%;
    transform: translateX(40%);
  }

  100% {
    width: 10%;
    transform: translateX(110%);
  }
}

/* 3. Modern Admin Header Redesign & Fast Action Toolbar */
.modern-admin-header {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 24px -2px rgba(15, 23, 42, 0.05) !important;
  padding: 12px 32px !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.modern-admin-header .admin-logo-icon {
  position: relative;
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-admin-header .admin-logo:hover .admin-logo-icon {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.logo-glow-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.modern-admin-header .brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
}

.modern-admin-header .version-tag {
  background: #F1F5F9;
  color: #64748B;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  letter-spacing: 0.3px;
}

.admin-header-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid transparent;
}

.admin-header-btn.sync-btn {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #BFDBFE;
}

.admin-header-btn.sync-btn:hover {
  background: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.admin-header-btn.sync-btn:hover i {
  animation: spinSync 0.6s ease;
}

@keyframes spinSync {
  100% {
    transform: rotate(360deg);
  }
}

.admin-header-btn.client-btn {
  background: #F8FAFC;
  color: #475569;
  border-color: #CBD5E1;
}

.admin-header-btn.client-btn:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.supabase-status-badge.modern {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 6px 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-pulse-wrap {
  position: relative;
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-pulse-ring {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  animation: statusPulseAnim 2s infinite cubic-bezier(0, 0, 0.2, 1);
}

@keyframes statusPulseAnim {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

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

.avatar-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  border: 1.5px solid #FFFFFF;
}

.admin-user-pill {
  position: relative;
  transition: all 0.2s ease;
}

.admin-user-pill:hover {
  background: #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border-color: #CBD5E1;
}

/* 4. High-Speed Modern Table Pagination System */
.admin-table-pagination-wrap {
  width: 100%;
  margin-top: 14px;
}

.admin-table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.pag-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pag-info-text {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 600;
}

.pag-info-text b {
  color: #0F172A;
  font-weight: 700;
}

.pag-page-size-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
}

.pag-size-select {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.pag-size-select:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pag-nav-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pag-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pag-nav-btn:hover:not(:disabled) {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #BFDBFE;
  transform: translateY(-1px);
}

.pag-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pag-num-btn {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pag-num-btn:hover {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #BFDBFE;
}

.pag-num-btn.active {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.pag-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  font-size: 12px;
  color: #94A3B8;
  font-weight: 700;
}

@media (max-width: 900px) {
  .admin-header-toolbar {
    display: none;
  }

  .modern-admin-header {
    padding: 10px 16px !important;
  }

  .admin-table-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .pag-nav-controls {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   YOUTUBE / STRIPE STYLE SKELETON SHIMMER LOADERS
   ========================================================================== */
@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
  display: inline-block;
}

.skeleton-row-animate td {
  padding: 16px 14px;
  border-bottom: 1px solid #F1F5F9;
}

.skeleton-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   MODERN 3D PRE-POPPED QUOTA PACKAGE CARDS (ATTRACTIVE AT FIRST GLANCE)
   ========================================================================== */
.admin-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
  width: 100%;
}

.admin-pkg-card {
  border-radius: 26px;
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Watermark Ambient Icon */
.pkg-card-watermark {
  position: absolute;
  right: -10px;
  bottom: 20px;
  font-size: 135px;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-14deg);
  z-index: 1;
  line-height: 1;
  transition: transform 0.4s ease;
}

.admin-pkg-card:hover .pkg-card-watermark {
  transform: rotate(-8deg) scale(1.08);
}

/* --- TIER SPECIFIC SIGNATURE PRE-POPPED 3D STYLES --- */
/* DIAMOND */
.admin-pkg-card.tier-diamond {
  background: linear-gradient(165deg, #FFFFFF 0%, #FAF5FF 40%, #EDE9FE 100%);
  border: 2px solid #C4B5FD;
  box-shadow: 0 16px 36px -6px rgba(124, 58, 237, 0.28), 0 4px 14px rgba(124, 58, 237, 0.12), inset 0 1px 2px #FFFFFF;
}

.admin-pkg-card.tier-diamond .pkg-card-top-bar {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 50%, #4C1D95 100%);
}

.admin-pkg-card.tier-diamond .pkg-card-watermark i {
  color: #7C3AED;
}

.admin-pkg-card.tier-diamond:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 44px -6px rgba(124, 58, 237, 0.38), 0 8px 18px rgba(124, 58, 237, 0.18), inset 0 1px 2px #FFFFFF;
}

/* GOLD */
.admin-pkg-card.tier-gold {
  background: linear-gradient(165deg, #FFFFFF 0%, #FFFDF5 40%, #FEF3C7 100%);
  border: 2px solid #FCD34D;
  box-shadow: 0 16px 36px -6px rgba(217, 119, 6, 0.28), 0 4px 14px rgba(217, 119, 6, 0.12), inset 0 1px 2px #FFFFFF;
}

.admin-pkg-card.tier-gold .pkg-card-top-bar {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
}

.admin-pkg-card.tier-gold .pkg-card-watermark i {
  color: #D97706;
}

.admin-pkg-card.tier-gold:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 44px -6px rgba(217, 119, 6, 0.38), 0 8px 18px rgba(217, 119, 6, 0.18), inset 0 1px 2px #FFFFFF;
}

/* PLATINUM */
.admin-pkg-card.tier-platinum {
  background: linear-gradient(165deg, #FFFFFF 0%, #F0FDF4 40%, #D1FAE5 100%);
  border: 2px solid #6EE7B7;
  box-shadow: 0 16px 36px -6px rgba(5, 150, 105, 0.26), 0 4px 14px rgba(5, 150, 105, 0.12), inset 0 1px 2px #FFFFFF;
}

.admin-pkg-card.tier-platinum .pkg-card-top-bar {
  background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
}

.admin-pkg-card.tier-platinum .pkg-card-watermark i {
  color: #059669;
}

.admin-pkg-card.tier-platinum:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 44px -6px rgba(5, 150, 105, 0.36), 0 8px 18px rgba(5, 150, 105, 0.18), inset 0 1px 2px #FFFFFF;
}

/* SILVER */
.admin-pkg-card.tier-silver {
  background: linear-gradient(165deg, #FFFFFF 0%, #F8FAFC 40%, #E2E8F0 100%);
  border: 2px solid #CBD5E1;
  box-shadow: 0 16px 36px -6px rgba(71, 85, 105, 0.24), 0 4px 14px rgba(71, 85, 105, 0.1), inset 0 1px 2px #FFFFFF;
}

.admin-pkg-card.tier-silver .pkg-card-top-bar {
  background: linear-gradient(135deg, #64748B 0%, #475569 50%, #334155 100%);
}

.admin-pkg-card.tier-silver .pkg-card-watermark i {
  color: #475569;
}

.admin-pkg-card.tier-silver:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 44px -6px rgba(71, 85, 105, 0.34), 0 8px 18px rgba(71, 85, 105, 0.16), inset 0 1px 2px #FFFFFF;
}

/* BRONZE */
.admin-pkg-card.tier-bronze {
  background: linear-gradient(165deg, #FFFFFF 0%, #FFFDF8 40%, #FFEDD5 100%);
  border: 2px solid #FDBA74;
  box-shadow: 0 16px 36px -6px rgba(180, 83, 9, 0.24), 0 4px 14px rgba(180, 83, 9, 0.1), inset 0 1px 2px #FFFFFF;
}

.admin-pkg-card.tier-bronze .pkg-card-top-bar {
  background: linear-gradient(135deg, #B45309 0%, #92400E 50%, #78350F 100%);
}

.admin-pkg-card.tier-bronze .pkg-card-watermark i {
  color: #92400E;
}

.admin-pkg-card.tier-bronze:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 44px -6px rgba(180, 83, 9, 0.34), 0 8px 18px rgba(180, 83, 9, 0.16), inset 0 1px 2px #FFFFFF;
}

/* Header Top Bar & Badges */
.pkg-card-top-bar {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.pkg-tier-pill {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pkg-delete-modern-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.pkg-delete-modern-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Card Body & Price */
.pkg-card-body {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}

.pkg-card-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748B;
  margin-bottom: 4px;
}

.pkg-card-price {
  font-family: var(--font-sora, 'Sora', sans-serif);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}

.pkg-card-price .currency-symbol {
  font-size: 22px;
  font-weight: 800;
  color: #64748B;
}

.pkg-card-price .amount-number {
  font-size: 32px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.6px;
  line-height: 1;
}

.currency-code-pill {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 6px;
}

/* Pre-popped 3D Feature Chips */
.pkg-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pkg-chip {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pkg-chip.full-width {
  grid-column: span 2;
}

.pkg-chip-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.pkg-chip-icon-box.bonus {
  background: #FEF3C7;
  color: #D97706;
}

.pkg-chip-icon-box.income {
  background: #DCFCE7;
  color: #059669;
}

.pkg-chip-icon-box.quota {
  background: #EDE9FE;
  color: #7C3AED;
}

.pkg-chip-content {
  display: flex;
  flex-direction: column;
}

.pkg-chip-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.pkg-chip-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  margin-top: 2px;
}

.pkg-chip-val.bonus {
  color: #D97706;
}

.pkg-chip-val.income {
  color: #059669;
}

.pkg-chip-val.quota {
  color: #7C3AED;
}

/* Card Footer */
.pkg-card-footer {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  position: relative;
  z-index: 2;
}

.pkg-foot-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pkg-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.pkg-foot-id {
  font-family: monospace;
  color: #94A3B8;
  font-size: 10.5px;
}

/* ==========================================================================
   INTERACTIVE SMARTPHONE CLIENT QUICK VIEW SIMULATOR
   ========================================================================== */
.phone-simulator-card {
  background: #0F172A;
  border-radius: 36px;
  padding: 16px 20px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
  width: 95%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-simulator-card.expanded {
  max-width: 780px;
}

.phone-sim-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #FFFFFF;
}

.phone-sim-title {
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E2E8F0;
}

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

.phone-sim-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.phone-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.phone-btn.close-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
}

.phone-bezel-frame {
  width: 100%;
  height: 680px;
  max-height: 78vh;
  background: #000000;
  border-radius: 30px;
  border: 4px solid #1E293B;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.phone-island-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #000000;
  border-radius: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.phone-notch-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111827;
  border: 1px solid #374151;
}

.phone-notch-speaker {
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: #1F2937;
}

.phone-viewport-screen {
  width: 100%;
  height: 100%;
  border: none;
  background: #F8FAFC;
  flex: 1;
}

.phone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.4);
  pointer-events: none;
}

/* ==================== ADMIN YOUTUBE-STYLE SKELETON LOADERS ==================== */
.admin-skeleton-row td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #F1F5F9;
}

.skeleton-line {
  height: 14px;
  background: #E2E8F0;
  border-radius: 6px;
  display: inline-block;
}

.skeleton-box {
  background: #E2E8F0;
  border-radius: 8px;
  display: inline-block;
}

.skeleton-circle {
  border-radius: 50%;
  background: #E2E8F0;
  display: inline-block;
}

.skeleton-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   ENTERPRISE ADMIN SETTINGS & RATES / UPI GATEWAY MASTER STYLES
   ========================================================================== */

.admin-settings-master-layout {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-premium-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.settings-premium-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 30px -6px rgba(15, 23, 42, 0.08);
}

.settings-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #F1F5F9;
}

.settings-card-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-card-header-left h4 {
  font-family: 'Plus Jakarta Sans', var(--font-main), sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}

.settings-card-header-left p {
  font-size: 13px;
  color: #64748B;
  margin: 0;
  font-weight: 500;
}

.settings-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.settings-badge-icon.rates-badge {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border-color: #A7F3D0;
  color: #059669;
}

.settings-badge-icon.bank-badge {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  border-color: #E9D5FF;
  color: #7C3AED;
}

.settings-badge-icon.crypto-badge {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #FDE68A;
  color: #D97706;
}

.settings-badge-icon.db-badge {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-color: #BBF7D0;
  color: #16A34A;
}

.settings-card-pill {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.settings-card-pill.emerald {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857;
}

.settings-card-pill.blue {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

.settings-card-body-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 992px) {
  .settings-card-body-grid {
    grid-template-columns: 1fr;
  }
}

.settings-form-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-preview-col {
  display: flex;
  flex-direction: column;
}

/* Live Holographic QR Code Preview Card */
.admin-live-qr-card {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  border-radius: 18px;
  padding: 22px 20px;
  color: #FFFFFF;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.admin-live-qr-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.qr-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 14px;
}

.live-preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #38BDF8;
}

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

@keyframes qrPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.qr-code-frame {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.qr-img-screen {
  width: 156px;
  height: 156px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

.qr-details-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.qr-merchant-name {
  font-size: 14px;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.qr-vpa-code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
  color: #93C5FD;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  word-break: break-all;
  max-width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.qr-preview-hint {
  font-size: 11.5px;
  color: #94A3B8;
  line-height: 1.45;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Dynamic Spread Indicator Alert Banner */
.rates-spread-card {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1.5px solid #A7F3D0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.rates-spread-card .spread-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rates-spread-card .spread-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #059669;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.rates-spread-card .spread-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #065F46;
}

.rates-spread-card .spread-sub {
  font-size: 12.5px;
  color: #047857;
  margin-top: 3px;
  font-weight: 600;
}

.rates-spread-card .spread-benchmarks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rates-spread-card .spread-chip {
  background: #FFFFFF;
  border: 1px solid #A7F3D0;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #065F46;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Grids */
.settings-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .settings-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .settings-grid-3col {
    grid-template-columns: 1fr;
  }
}

.settings-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 640px) {
  .settings-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Modern Illuminated Toggle Card */
.toggle-switch-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.toggle-switch-card:hover {
  border-color: #CBD5E1;
  background: #F1F5F9;
}

.toggle-info-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toggle-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
}

.toggle-desc {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

.modern-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
  cursor: pointer;
}

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

.modern-switch .switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #CBD5E1;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 30px;
}

.modern-switch .switch-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modern-switch input:checked + .switch-slider {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

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

/* Sticky Action Bar */
.admin-settings-sticky-bar {
  position: sticky;
  bottom: 20px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.8);
  margin-top: 26px;
}

.admin-settings-sticky-bar .sticky-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.admin-settings-sticky-bar .sticky-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-settings-sticky-bar .save-broadcast-btn {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.admin-settings-sticky-bar .save-broadcast-btn:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}