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

:root {
  --color-canvas: #F7F8F4;
  --color-lime: #D4F842;
  --color-lime-glow: rgba(212, 248, 66, 0.45);
  --color-emerald-deep: #0E2A1D;
  --color-emerald-dark: #0F2D1F;
  --color-emerald-forest: #143D2B;
  --color-charcoal: #111827;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-canvas);
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F7F8F4;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Glassmorphism Classes */
.glass-pill {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.09), 0 6px 12px -4px rgba(15, 23, 42, 0.05);
}

.glass-nav {
  background: rgba(247, 248, 244, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

/* 3D Card Styling & Perspective */
.card-perspective-container {
  perspective: 1200px;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: 0 25px 50px -12px rgba(14, 42, 29, 0.35), 0 0 35px rgba(212, 248, 66, 0.15);
}

/* Floating Animations */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.8deg);
  }
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(12px) rotate(-1deg);
  }
}

@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(0.98);
  }
}

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

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

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

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

/* Gold EMV Chip Realism */
.emv-chip {
  background: linear-gradient(135deg, #e5b452 0%, #fae69e 35%, #ca8a04 70%, #fef08a 100%);
  border: 1px solid #b45309;
  position: relative;
  overflow: hidden;
}

.emv-chip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: chip-shimmer 4s infinite linear;
}

/* Holographic / Metallic Sheen overlay */
.card-sheen {
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(212, 248, 66, 0.12) 48%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(212, 248, 66, 0.08) 52%,
    rgba(255, 255, 255, 0.05) 70%,
    transparent 100%
  );
  pointer-events: none;
}

/* Neon Lime Button Glow */
.btn-lime-glow {
  box-shadow: 0 4px 20px -2px rgba(212, 248, 66, 0.5);
  transition: all 0.25s ease;
}

.btn-lime-glow:hover {
  box-shadow: 0 8px 30px 2px rgba(212, 248, 66, 0.65);
  transform: translateY(-1px);
}

/* Subtle Card Glow */
.lime-card-glow {
  box-shadow: 0 16px 32px -8px rgba(212, 248, 66, 0.25), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

/* Live Chart Bars Animation */
.chart-bar {
  transform-origin: bottom;
  animation: growBar 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes growBar {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* Toast Notification Transition */
#toast-container {
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled Header Glassmorphism */
.header-scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

/* Action Button Green Hover Glow in Balance Widget */
.widget-action-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.widget-action-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 248, 66, 0.6) !important;
  box-shadow: 0 0 20px rgba(212, 248, 66, 0.3), 0 8px 16px -4px rgba(0, 0, 0, 0.5);
}

/* Currency Toggle Pills */
.currency-pill {
  transition: all 0.2s ease;
}
.currency-pill.active {
  background-color: #D4F842 !important;
  color: #0E2A1D !important;
  font-weight: 800 !important;
  box-shadow: 0 0 12px rgba(212, 248, 66, 0.4);
}

/* Accordion Smooth Transition */
.faq-answer {
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.35s ease;
  overflow: hidden;
}
.faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Legal Modal Styling */
.legal-modal-content {
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}
.legal-modal-content::-webkit-scrollbar {
  width: 6px;
}
.legal-modal-content::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
