/* ==========================================================
   GEF — Global Empowerment Forum Custom CSS
   Luxury Web3 Glassmorphic & Cyber-Ecosystem Design
   ========================================================== */

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

:root {
  --bg-dark: #070c18;
  --bg-card: rgba(13, 21, 38, 0.75);
  --bg-card-hover: rgba(20, 32, 58, 0.85);
  --border-glass: rgba(56, 189, 248, 0.18);
  --border-glass-gold: rgba(245, 158, 11, 0.25);
  --cyan-neon: #00f0ff;
  --emerald-neon: #10b981;
  --gold-neon: #f59e0b;
  --purple-neon: #a855f7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
    url('/assets/images/bg-cyber-grid.svg');
  background-attachment: fixed;
}

/* Business-Thematic Background Utilities */
.bg-hero-glow {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(ellipse at 50% 25%, rgba(0, 240, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 75%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    url('/assets/images/bg-hero-network.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

.bg-cyber-section {
  background-color: #070c18;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(13, 21, 38, 0.75) 0%, #070c18 100%),
    url('/assets/images/bg-cyber-grid.svg');
  background-repeat: repeat;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 30px -10px rgba(0, 240, 255, 0.15);
}

.glass-panel-gold {
  background: rgba(24, 20, 10, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass-gold);
  border-radius: 1rem;
}

.glass-panel-gold:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 12px 30px -10px rgba(245, 158, 11, 0.2);
}

/* Gradients & Texts */
.text-gradient-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Neon Glow Buttons */
.btn-glow-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #2563eb 100%);
  color: #050b14;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
  transition: all 0.25s ease;
}

.btn-glow-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  color: #000;
}

.btn-glow-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050b14;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
  transition: all 0.25s ease;
}

.btn-glow-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
}

.btn-outline-glow {
  background: rgba(13, 21, 38, 0.6);
  border: 1px solid var(--border-glass);
  color: #38bdf8;
  transition: all 0.25s ease;
}

.btn-outline-glow:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

/* Pulsing Badge */
.pulse-indicator {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #10b981;
  animation: pulseRing 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Mirror Crypto Wallet Modal */
.crypto-wallet-modal {
  background: #0b1120;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.2);
  overflow: hidden;
}

.wallet-header-mirror {
  background: linear-gradient(90deg, #111c33 0%, #0c1426 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #070c18;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}

/* ==========================================================
   PRESENTATION DECK (NATIVE APP UI & PROJECTOR MODE)
   ========================================================== */
.presentation-container {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  background: #040711;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

.presentation-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(45px) scale(0.98);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.presentation-slide::-webkit-scrollbar {
  display: none;
}

.presentation-slide.active-slide {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  z-index: 10;
}

.presentation-slide.prev-slide {
  opacity: 0;
  transform: translateX(-45px) scale(0.98);
}

.slide-inner-box {
  margin: auto 0;
  width: 100%;
}

/* Portrait Layout (Mobile Phones & Vertical Displays) */
@media (orientation: portrait), (max-width: 640px) {
  .presentation-slide {
    padding: 1.25rem 0.875rem calc(4.75rem + env(safe-area-inset-bottom, 0px)) 0.875rem;
    justify-content: flex-start;
  }
  .slide-inner-box {
    margin: auto 0;
  }
}

/* Landscape / Projector Mode Layout */
@media (orientation: landscape) and (min-width: 641px) {
  .presentation-slide {
    padding: 2rem 3.5rem calc(4.75rem + env(safe-area-inset-bottom, 0px)) 3.5rem;
    justify-content: center;
    align-items: center;
  }
  .slide-inner-box {
    margin: auto;
    max-width: 74rem;
  }
}

/* Body State Classes from JS Detector */
body.is-portrait .presentation-slide {
  padding: 1.25rem 0.875rem calc(4.75rem + env(safe-area-inset-bottom, 0px)) 0.875rem;
  justify-content: flex-start;
}
body.is-portrait .slide-inner-box {
  margin: auto 0;
}

body.is-landscape .presentation-slide {
  padding: 2rem 3.5rem calc(4.75rem + env(safe-area-inset-bottom, 0px)) 3.5rem;
  justify-content: center;
  align-items: center;
}
body.is-landscape .slide-inner-box {
  margin: auto;
  max-width: 74rem;
}

/* Native App Deck Floating Dock (Single-Line Row) */
.deck-nav-bar {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(8, 14, 30, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 240, 255, 0.12);
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.3s ease;
  max-width: calc(100vw - 1rem);
}

.deck-nav-bar.deck-dock-idle {
  opacity: 0.18;
  transform: translate(-50%, 6px) scale(0.96);
}

.deck-nav-bar:hover,
.deck-nav-bar:focus-within {
  opacity: 1 !important;
  transform: translate(-50%, 0) scale(1) !important;
}

.deck-ctrl-btn {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 28, 52, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .deck-ctrl-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.875rem;
    font-size: 0.875rem;
  }
}

.deck-ctrl-btn:hover {
  background: rgba(28, 45, 82, 0.95);
  border-color: rgba(0, 240, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.deck-ctrl-btn:active {
  transform: scale(0.9);
  background: rgba(0, 240, 255, 0.25);
}

.deck-ctrl-next {
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  border: 1px solid #38bdf8;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.deck-ctrl-next:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.deck-ctrl-projector {
  background: rgba(14, 30, 60, 0.9);
  border-color: rgba(0, 240, 255, 0.35);
}

.deck-counter-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #00f0ff;
  background: rgba(6, 25, 45, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 0.35rem 0.55rem;
  border-radius: 0.625rem;
  white-space: nowrap;
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  user-select: none;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .deck-counter-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.75rem;
  }
}

/* Toast Pill Notification */
.deck-toast {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(-25px);
  background: rgba(8, 18, 38, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #00f0ff;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.deck-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.projector-contrast {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Ajax Loader Spinner */
.spin-loader {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #00f0ff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* Ticker Marquee & Carousel Animation */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

.ticker-fade-mask {
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* 100% Mobile Application Native Apperance (PWA Dock with Scrollbar) */
.mobile-app-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(7, 12, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.7);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0 0.5rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.35) transparent;
}

.mobile-app-dock::-webkit-scrollbar {
  height: 4px;
}
.mobile-app-dock::-webkit-scrollbar-track {
  background: transparent;
}
.mobile-app-dock::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.4);
  border-radius: 9999px;
}

.mobile-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 64px;
  flex: 1 0 20%;
  height: 100%;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  position: relative;
  padding: 0 4px;
}

.mobile-dock-btn i {
  font-size: 1.25rem;
  margin-bottom: 2px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-dock-btn:active i,
.mobile-dock-btn.active i {
  transform: scale(1.15);
  color: #00f0ff;
}

.mobile-dock-btn.active {
  color: #00f0ff;
}

.mobile-dock-btn.active::after {
  content: '';
  position: absolute;
  top: 4px;
  width: 16px;
  height: 3px;
  border-radius: 9999px;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}

/* Ecosystem Dropdown Z-Index & Click State */
#ecosystemFlyout > div {
  background-color: #0c1427 !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 240, 255, 0.15) !important;
}

#ecosystemFlyout.is-active-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Sticky Customer Care Widget */
.customer-care-float {
  position: fixed;
  bottom: 80px; /* Above mobile dock */
  right: 16px;
  z-index: 49;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 1023px) {
  .customer-care-float {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .customer-care-float {
    bottom: 24px;
    right: 24px;
  }
}

.customer-care-float:hover {
  transform: translateY(-3px) scale(1.06);
}

.care-badge-pill {
  background: rgba(11, 20, 38, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 639px) {
  .care-badge-pill {
    padding: 0;
    border-radius: 50%;
    border: none;
    background: transparent;
    box-shadow: none;
  }
}

.care-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #10b981, #25d366);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.care-avatar::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background: #10b981;
  border: 2px solid #070c18;
  border-radius: 50%;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* USDT Currency Symbol */
.usdt-sym {
  display: inline-flex;
  align-items: baseline;
  font-family: inherit;
  font-weight: 800;
  color: #34d399;
  letter-spacing: -0.02em;
}

.usdt-sym::before {
  content: '₮';
  margin-right: 2px;
  font-family: system-ui, -apple-system, sans-serif;
  color: #10b981;
}

/* ==========================================================
   Mobile Single-Page Login View (Zero Scrollbar, Fullscreen)
   ========================================================== */
@media (max-width: 1023px) {
  html.route-login-html,
  body.route-login {
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }

  body.route-login {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  /* Strict guarantee: hide header, top navbar, footer, and customer care on mobile login */
  body.route-login header,
  body.route-login nav:not(.mobile-app-dock),
  body.route-login footer,
  body.route-login .customer-care-float {
    display: none !important;
  }

  /* Center the login form in the viewport above the bottom dock */
  body.route-login .login-page-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    overflow: hidden !important;
  }

  body.route-login .login-page-container > div {
    width: 100%;
  }
}

/* ==========================================================
   SECURE CRYPTO GATEWAY Modal Zero-Scrollbar Containment
   ========================================================== */
#mirrorWalletModal {
  padding: 0.75rem !important;
}

.crypto-wallet-modal {
  max-height: calc(100dvh - 1.5rem) !important;
  overflow: hidden !important;
}

/* ==========================================================
   PHONEPE-STYLE PAYMENT & PAYOUT ANIMATION SUITE
   ========================================================== */

/* Concentric Expanding Ripple Rings */
.status-ripple {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.28);
  animation: phonepe-ripple 2.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  pointer-events: none;
}

.status-ripple.error {
  background: rgba(239, 68, 68, 0.28);
}

.status-ripple.delay-200 {
  animation-delay: 0.45s;
}

.status-ripple.delay-400 {
  animation-delay: 0.9s;
}

@keyframes phonepe-ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.95;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Center Badges: Emerald for Success, Crimson for Error */
.badge-phonepe-success {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.65), inset 0 2px 6px rgba(255, 255, 255, 0.4);
  animation: badge-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.badge-phonepe-error {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 0 60px rgba(239, 68, 68, 0.65), inset 0 2px 6px rgba(255, 255, 255, 0.4);
  animation: badge-shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

@keyframes badge-pop {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  65% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes badge-shake {
  0%, 100% { transform: scale(1) translateX(0); }
  20%, 60% { transform: scale(1.05) translateX(-8px); }
  40%, 80% { transform: scale(1.05) translateX(8px); }
}

/* SVG Animated Draw Checkmark */
.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3.5;
  stroke-miterlimit: 10;
  stroke: rgba(255, 255, 255, 0.9);
  animation: stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke-check 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.45s forwards;
}

@keyframes stroke-circle {
  100% { stroke-dashoffset: 0; }
}

@keyframes stroke-check {
  100% { stroke-dashoffset: 0; }
}

/* SVG Animated Draw Error Cross */
.checkmark-circle-error {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke: rgba(255, 255, 255, 0.9);
  animation: stroke-circle 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.error-cross-1, .error-cross-2 {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.35s forwards;
}

/* Confetti Particles Animation */
.confetti-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0.95;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0;
  }
}

/* ==========================================================
   WEB3 MULTI-WALLET CONNECT MODAL (Mobile Apps & Extensions)
   ========================================================== */
.wallet-card-option {
  background: rgba(13, 22, 43, 0.7);
  border: 1px solid rgba(14, 165, 233, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-card-option:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.6);
  background: rgba(13, 22, 43, 0.95);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.25);
}

.wallet-tab-btn {
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
}

.wallet-tab-btn.active {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: #22d3ee;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}
/* Authenticated desktop layouts use a persistent role-specific sidebar. */
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.sidebar-nav-link i { width: 1.1rem; text-align: center; color: #22d3ee; }
.sidebar-nav-link:hover { color: #fff; background: rgba(15, 23, 42, .8); border-color: #334155; }
.layout-admin .sidebar-nav-link.active { color: #fde68a; background: rgba(245, 158, 11, .11); border-color: rgba(245, 158, 11, .4); }
.layout-admin .sidebar-nav-link.active i { color: #fbbf24; }
.layout-member .sidebar-nav-link.active { color: #a5f3fc; background: rgba(6, 182, 212, .11); border-color: rgba(34, 211, 238, .4); }
.layout-member .sidebar-nav-link.active i { color: #22d3ee; }

/* Admin members directory: content-sized columns with touch scrolling. */
.admin-members-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #0891b2 #0f172a;
}
.admin-members-scroll::-webkit-scrollbar { height: .45rem; }
.admin-members-scroll::-webkit-scrollbar-track { background: #0f172a; border-radius: 999px; }
.admin-members-scroll::-webkit-scrollbar-thumb { background: #0891b2; border-radius: 999px; }
.admin-members-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
.admin-members-table th,
.admin-members-table td {
  width: auto;
  min-width: max-content;
  padding-left: .75rem;
  padding-right: .75rem;
  white-space: nowrap;
  vertical-align: middle;
}
.admin-members-table th:first-child,
.admin-members-table td:first-child { padding-left: 0; }
.admin-members-table th:last-child,
.admin-members-table td:last-child { padding-right: 0; }

.admin-withdrawals-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #0891b2 #0f172a;
}
.admin-withdrawals-scroll::-webkit-scrollbar { height: .45rem; }
.admin-withdrawals-scroll::-webkit-scrollbar-track { background: #0f172a; border-radius: 999px; }
.admin-withdrawals-scroll::-webkit-scrollbar-thumb { background: #0891b2; border-radius: 999px; }
.admin-withdrawals-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
.admin-withdrawals-table th,
.admin-withdrawals-table > tbody > tr:not(.withdrawal-detail-row) > td {
  width: auto;
  min-width: max-content;
  padding-left: .75rem;
  padding-right: .75rem;
  white-space: nowrap;
  vertical-align: middle;
}
.admin-withdrawals-table th:first-child,
.admin-withdrawals-table > tbody > tr:not(.withdrawal-detail-row) > td:first-child { padding-left: 0; }
.admin-withdrawals-table th:last-child,
.admin-withdrawals-table > tbody > tr:not(.withdrawal-detail-row) > td:last-child { padding-right: 0; }
.admin-withdrawals-table .withdrawal-detail-row > td {
  white-space: normal;
}

.admin-overview-page { max-width: 100%; }
.gef-inline-scroll,
.admin-overview-table-scroll {
  scrollbar-width: thin;
  scrollbar-color: #0891b2 #0f172a;
  -webkit-overflow-scrolling: touch;
}
.gef-inline-scroll::-webkit-scrollbar,
.admin-overview-table-scroll::-webkit-scrollbar { height: .45rem; }
.gef-inline-scroll::-webkit-scrollbar-track,
.admin-overview-table-scroll::-webkit-scrollbar-track { background: #0f172a; border-radius: 999px; }
.gef-inline-scroll::-webkit-scrollbar-thumb,
.admin-overview-table-scroll::-webkit-scrollbar-thumb { background: #0891b2; border-radius: 999px; }
.admin-overview-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
}
.admin-overview-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
.admin-overview-table th,
.admin-overview-table td {
  width: auto;
  min-width: max-content;
  padding-left: .75rem;
  padding-right: .75rem;
  white-space: nowrap;
  vertical-align: middle;
}
.admin-overview-table th:first-child,
.admin-overview-table td:first-child { padding-left: 0; }
.admin-overview-table th:last-child,
.admin-overview-table td:last-child { padding-right: 0; }

.gef-genealogy-scroll { overflow-x: auto; overscroll-behavior-inline: contain; padding: .5rem .25rem 1rem; scrollbar-width: thin; scrollbar-color: #0891b2 #0f172a; }
.gef-genealogy-tree { min-width: max-content; display: flex; flex-direction: column; align-items: center; }
.gef-genealogy-root, .gef-genealogy-card { width: 12rem; border: 1px solid rgba(34,211,238,.35); border-radius: .85rem; background: #0b1426; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.gef-genealogy-root { display: flex; align-items: center; gap: .65rem; padding: .75rem; color: #67e8f9; }
.gef-genealogy-card summary { list-style: none; display: flex; align-items: center; gap: .6rem; padding: .7rem; cursor: pointer; }
.gef-genealogy-card summary::-webkit-details-marker { display: none; }
.gef-genealogy-card b, .gef-genealogy-root b { display: block; color: #fff; font: 700 .7rem ui-monospace, monospace; }
.gef-genealogy-card small, .gef-genealogy-root small { display: block; max-width: 7.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #94a3b8; font-size: .62rem; }
.genealogy-avatar { width: 1.9rem; height: 1.9rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: .6rem; background: rgba(6,182,212,.14); color: #22d3ee; }
.gef-genealogy-card.is-active { border-color: rgba(16,185,129,.42); }
.gef-genealogy-card.is-active .genealogy-avatar { background: rgba(16,185,129,.14); color: #34d399; }
.gef-genealogy-card.is-pending { border-color: rgba(245,158,11,.35); }
.gef-genealogy-card.is-pending .genealogy-avatar { background: rgba(245,158,11,.12); color: #fbbf24; }
.genealogy-chevron { margin-left: auto; color: #64748b; font-size: .55rem; transition: transform .18s ease; }
.gef-genealogy-card[open] .genealogy-chevron { transform: rotate(180deg); }
.genealogy-details { display: grid; gap: .35rem; border-top: 1px solid #1e293b; padding: .65rem .75rem; color: #94a3b8; font-size: .62rem; }
.genealogy-details i { width: .85rem; color: #22d3ee; }
.gef-genealogy-children { position: relative; display: flex; justify-content: center; gap: 1rem; padding-top: 1.5rem; }
.gef-genealogy-children::before { content: ''; position: absolute; top: 0; left: 50%; height: 1.5rem; border-left: 1px solid rgba(34,211,238,.35); }
.gef-genealogy-branch { position: relative; display: flex; flex-direction: column; align-items: center; padding: 1.5rem .25rem 0; }
.gef-genealogy-branch::before { content: ''; position: absolute; top: 0; left: 0; right: 0; border-top: 1px solid rgba(34,211,238,.35); }
.gef-genealogy-branch:first-child::before { left: 50%; }
.gef-genealogy-branch:last-child::before { right: 50%; }
.gef-genealogy-branch:only-child::before { left: 50%; right: 50%; }
.gef-genealogy-branch::after { content: ''; position: absolute; top: 0; left: 50%; height: 1.5rem; border-left: 1px solid rgba(34,211,238,.35); }
@media (max-width: 640px) {
  .gef-genealogy-scroll { margin-inline: -.5rem; padding-inline: .5rem; }
  .gef-genealogy-root, .gef-genealogy-card { width: 10.5rem; }
  .gef-genealogy-card small, .gef-genealogy-root small { max-width: 6rem; }
  .gef-genealogy-children { gap: .65rem; }
}
