/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2D3142;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3B82F6;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes popupSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
  }
}

/* ===== Animation Classes ===== */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-up-fade {
  animation: slideUpFade 0.5s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-pulse-green {
  animation: pulse-green 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-ticker {
  animation: tickerScroll 30s linear infinite;
}

.animate-popup-in {
  animation: popupSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-popup-out {
  animation: popupSlideOut 0.4s ease-in forwards;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ===== Hero Carousel ===== */
.hero-slide {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  position: relative;
}

/* ===== Ticker Tape ===== */
.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-flex;
  animation: tickerScroll 30s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

/* ===== Navbar ===== */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(11, 12, 21, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #10B981, #3B82F6);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #10B981;
}

/* ===== Card Hover Effects ===== */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

/* ===== Plan Card ===== */
.plan-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.05), transparent);
  transition: left 0.6s ease;
}

.plan-card:hover::before {
  left: 100%;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
}

.plan-popular {
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

/* ===== Testimonial Card ===== */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

/* ===== Button Styles ===== */
.btn-primary {
  background: linear-gradient(135deg, #10B981, #059669);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10B981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

/* ===== Withdrawal Popup ===== */
.withdrawal-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  pointer-events: none;
}

.withdrawal-popup .popup-card {
  pointer-events: all;
  background: rgba(21, 23, 37, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, #10B981, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: linear-gradient(135deg, #10B981, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Glow Effects ===== */
.glow-green {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.glow-green-strong {
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ===== Stat Counter ===== */
.stat-number {
  animation: countUp 0.8s ease-out forwards;
}

/* ===== Step Connector ===== */
.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.5), rgba(16, 185, 129, 0.1));
}

/* ===== Feature Icon Glow ===== */
.feature-icon {
  transition: all 0.3s ease;
}

.card-hover:hover .feature-icon {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
  transform: scale(1.1);
}

/* ===== ROI Table ===== */
.roi-row {
  transition: background-color 0.2s ease;
}

.roi-row:hover {
  background-color: rgba(16, 185, 129, 0.05);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .step-connector::after {
    display: none;
  }
  
  .withdrawal-popup {
    bottom: 80px;
    right: 12px;
    left: 12px;
  }
}

/* ===== Smooth scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Custom focus styles ===== */
*:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

/* ===== Dashboard Layout ===== */
body {
  background: #0B0C15;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.dashboard-main {
  margin-left: 256px !important;
  min-height: 100vh;
  padding-bottom: 80px;
  position: relative;
}

@media (min-width: 1024px) {
  .dashboard-main {
    padding-bottom: 0;
  }
}

@media (max-width: 1023px) {
  .dashboard-main {
    margin-left: 0 !important;
  }
}

/* ===== Profit Chart (CSS Only) ===== */
.chart-container {
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 4px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: all 0.3s ease;
  min-width: 12px;
}

.chart-bar:hover {
  opacity: 0.85;
  transform: scaleY(1.02);
  transform-origin: bottom;
}

.chart-gradient {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.8) 0%, rgba(16, 185, 129, 0.2) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-bottom: none;
}

.chart-area-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.01) 100%);
  pointer-events: none;
}

/* ===== Step Wizard ===== */
.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2D3142;
  transition: all 0.3s ease;
}

.step-dot.active {
  background: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.step-dot.completed {
  background: #10B981;
}

.step-line {
  width: 48px;
  height: 2px;
  background: #2D3142;
  transition: background 0.3s ease;
}

.step-line.active {
  background: #10B981;
}

/* ===== Network Selector ===== */
.network-btn {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2D3142;
  background: #1E2130;
  color: #9CA3AF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.network-btn:hover {
  border-color: #3B82F6;
  color: #fff;
}

.network-btn.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10B981;
  color: #10B981;
}

/* ===== Filter Tabs ===== */
.filter-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.filter-tab.active {
  background: #10B981;
  color: #0B0C15;
}

.filter-tab:not(.active) {
  color: #9CA3AF;
}

.filter-tab:not(.active):hover {
  color: #fff;
}

/* ===== Settings Tabs ===== */
.settings-tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.settings-tab:hover {
  color: #fff;
}

.settings-tab.active {
  color: #10B981;
  border-bottom-color: #10B981;
}

/* ===== Status Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-approved {
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-pending {
  color: #EAB308;
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.2);
}

.badge-rejected {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

/* ===== Plan Select Card ===== */
.plan-select-card {
  background: #151725;
  border: 1px solid #2D3142;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-select-card:hover {
  border-color: #10B981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.plan-select-card.selected {
  border-color: #10B981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

/* ===== Active Plan Card ===== */
.active-plan-card {
  background: #1E2130;
  border: 1px solid #2D3142;
  border-radius: 10px;
  padding: 12px;
}

.plan-progress-bar {
  width: 100%;
  height: 6px;
  background: #0B0C15;
  border-radius: 3px;
  overflow: hidden;
}

.plan-progress-fill {
  height: 100%;
  background: #10B981;
  border-radius: 3px;
  transition: width 1s ease;
}

/* ===== Table Styles ===== */
.tx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.tx-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9CA3AF;
  background: #1E2130;
  border-bottom: 1px solid #2D3142;
}

.tx-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid #2D3142;
  vertical-align: middle;
}

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

/* ===== Mobile Table Scroll ===== */
@media (max-width: 640px) {
  .tx-table-responsive {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== Copy Button ===== */
.copy-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #2D3142;
  background: #1E2130;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.copy-btn:hover {
  border-color: #10B981;
  color: #10B981;
}

.copy-btn.copied {
  border-color: #10B981;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
}

/* ===== Glow Button ===== */
.btn-glow {
  background: #10B981;
  color: #0B0C15;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-glow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== Stat Card Pulse ===== */
.stat-pulse {
  animation: pulse-green 2s infinite;
}

/* ===== Dashboard Navbar (plain CSS — no Tailwind CDN dependency) ===== */

#sidebar {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 256px;
  height: 100%;
  background-color: #151725;
  border-right: 1px solid #2D3142;
  z-index: 50 !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  transform: translateX(-100%);
}

@media (min-width: 1024px) {
  #sidebar {
    transform: translateX(0);
  }
}

#sidebar .sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid #2D3142;
}

#sidebar nav {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

#sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #9CA3AF;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

#sidebar nav a:hover {
  background: #1E2130;
  color: #fff;
}

#sidebar nav a.sidebar-active {
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.2);
}

#sidebar .sidebar-footer {
  padding: 16px;
  border-top: 1px solid #2D3142;
}

#sidebarOverlay {
  position: fixed !important;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 40;
  display: none;
}

#sidebarOverlay.db-overlay-active {
  display: block;
}

#mainContent > header {
  position: sticky !important;
  top: 0;
  z-index: 30 !important;
  height: 64px;
  background: rgba(21, 23, 37, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #2D3142;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.db-mobile-nav {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(21, 23, 37, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid #2D3142;
  z-index: 40 !important;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

@media (min-width: 1024px) {
  .db-mobile-nav {
    display: none;
  }
}

.db-mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: #6B7280;
  text-decoration: none;
  font-size: 10px;
  margin-top: 4px;
}

.db-mobile-nav a.db-nav-active {
  color: #34D399;
}

.sidebar-close-btn {
  display: none;
  color: #9CA3AF;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.sidebar-close-btn:hover {
  color: #fff;
}

.sidebar-toggle-btn {
  display: block;
  color: #9CA3AF;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 16px;
  padding: 4px;
  transition: color 0.2s;
}

.sidebar-toggle-btn:hover {
  color: #fff;
}

@media (min-width: 1024px) {
  .sidebar-toggle-btn {
    display: none;
  }
  .sidebar-close-btn {
    display: block;
  }
  .header-balance {
    display: block;
  }
}

@media (max-width: 640px) {
  .header-balance {
    display: none;
  }
}

.sidebar-admin-section {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #2D3142;
}

.sidebar-admin-label {
  padding: 0 16px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-admin-active {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #F87171 !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}
