/* Master CSS - Eagle x (Winners786 Elite Community) */
/* Soft Glassmorphism, Luxury Fintech Theme, Responsive Layout */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-purple: #5B21B6;
  --dark-purple: #4C1D95;
  --royal-purple: #6D28D9;
  --purple-light: #7C3AED;
  --gold-primary: #FBBF24;
  --gold-dark: #F59E0B;
  --orange-accent: #FB923C;
  --bg-gradient: linear-gradient(135deg, #DFFCF5 0%, #EAFBFF 50%, #F7F3FF 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 10px 30px rgba(91, 33, 182, 0.08);
  --text-heading: #111827;
  --text-body: #374151;
  --text-muted: #6B7280;
  --success-color: #22C55E;
  --warning-color: #F59E0B;
  --error-color: #EF4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-heading);
  padding-bottom: 100px;
  line-height: 1.5;
}


/* Typography & Layout Safety */
.text-purple { color: #6D28D9 !important; }
.bg-purple { background-color: #6D28D9 !important; color: #ffffff !important; }
.bg-light-purple { background-color: rgba(109, 40, 217, 0.08) !important; }
.bg-light-warning { background-color: rgba(245, 158, 11, 0.1) !important; }
.bg-light-info { background-color: rgba(6, 182, 212, 0.1) !important; }
.bg-light-primary { background-color: rgba(59, 130, 246, 0.1) !important; }
.border-purple { border-color: #6D28D9 !important; }

.fw-extrabold { font-weight: 800 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.extra-small { font-size: 0.82rem !important; line-height: 1.4 !important; }
.tracking-wider { letter-spacing: 0.05em !important; }

/* Glassmorphism Floating Card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  padding: 22px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(91, 33, 182, 0.12);
}

/* Primary & Action Buttons */
.btn-eagle-primary {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-light) 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(91, 33, 182, 0.25);
  transition: all 0.25s ease;
}

.btn-eagle-primary:hover {
  color: #fff;
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(91, 33, 182, 0.35);
}

.btn-eagle-action {
  background: linear-gradient(135deg, #F59E0B 0%, #F97316 50%, #7C3AED 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  transition: all 0.25s ease;
}

.btn-eagle-action:hover {
  color: #fff;
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.btn-eagle-outline {
  background: transparent;
  border: 2px solid var(--royal-purple);
  color: var(--royal-purple);
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-eagle-outline:hover {
  background: var(--royal-purple);
  color: #fff;
}

.btn-outline-purple {
  border: 2px solid #6D28D9;
  color: #6D28D9;
  background: #ffffff;
  transition: all 0.25s ease;
}

.btn-check:checked + .btn-outline-purple {
  background: #6D28D9;
  color: #ffffff;
  border-color: #6D28D9;
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.3);
}

.btn-check:checked + .btn-outline-purple i,
.btn-check:checked + .btn-outline-purple strong {
  color: #ffffff !important;
}

/* Balance Card Gradient */
.balance-card-gradient {
  background: linear-gradient(135deg, #4C1D95 0%, #6D28D9 50%, #7C3AED 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.3);
  position: relative;
  overflow: hidden;
}

.balance-card-gradient::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

/* User Profile Header */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Dynamic Announcement Marquee */
.marquee-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 10px 16px;
  border: 1px dashed var(--purple-light);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  animation: marquee 18s linear infinite;
  font-weight: 600;
  color: var(--dark-purple);
}

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

/* 4 Circular Animated Progress Indicators */
.circle-progress-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (min-width: 768px) {
  .circle-progress-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}

.circle-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.circle-svg-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
}

.circle-svg-container svg {
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #E5E7EB;
  stroke-width: 6;
}

.circle-bar {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.circle-bar-deposit { stroke: #22C55E; }
.circle-bar-pending-dep { stroke: #F59E0B; }
.circle-bar-withdraw { stroke: #6D28D9; }
.circle-bar-pending-with { stroke: #3B82F6; }

.circle-text-val {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Header Navbar */
.eagle-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.eagle-brand {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dark-purple) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   PREMIUM BOTTOM NAVIGATION BAR
   ============================================ */
.mobile-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
  background: #ffffff !important;
  border-top: 1.5px solid rgba(245, 158, 11, 0.25) !important;
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)) 0 !important;
  z-index: 999999 !important;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12) !important;
  transform: translateZ(0) !important;
  filter: none !important;
}

.nav-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: #9CA3AF;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-item-link i {
  font-size: 1.25rem;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-link:hover {
  color: var(--royal-purple);
  background: rgba(109, 40, 217, 0.07);
}

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

.nav-item-link.active {
  color: var(--royal-purple);
  font-weight: 800;
  background: rgba(109, 40, 217, 0.10);
}

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

.nav-item-link.text-danger {
  color: #EF4444 !important;
}

.nav-item-link.text-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #DC2626 !important;
}

/* Ultra-Luxury Floating Glassmorphic Top Toast Popup */
.eagle-popup-overlay {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  width: auto;
  max-width: 92%;
  height: auto;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.eagle-popup-overlay.show {
  opacity: 1;
  visibility: visible;
  top: 32px;
  transform: translateX(-50%) scale(1);
}

.eagle-popup-box {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  max-width: 90vw;
  width: max-content;
  word-break: break-word;
}

.eagle-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #F59E0B;
  border-right-color: #FB923C;
  border-radius: 50%;
  flex-shrink: 0;
  animation: eagleSpin 0.7s linear infinite;
}

@keyframes eagleSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.eagle-popup-text {
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.eagle-popup-icon {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: popIcon 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIcon {
  0% { transform: scale(0.4); }
  100% { transform: scale(1); }
}

.eagle-popup-icon.success { color: #22C55E; text-shadow: 0 0 12px rgba(34, 197, 94, 0.5); }
.eagle-popup-icon.error   { color: #EF4444; text-shadow: 0 0 12px rgba(239, 68, 68, 0.5); }
.eagle-popup-icon.warning { color: #F59E0B; text-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }
