/* ═══════════════════════════════════════════
   MoneyLenz – Custom Styles (Neon Pulse Theme)
   ═══════════════════════════════════════════ */

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(0, 232, 123, 0.3);
  color: #fff;
}

/* ─── Primary Button ─── */
.btn-primary {
  background: linear-gradient(135deg, #00e87b 0%, #00d4aa 50%, #00e87b 100%);
  background-size: 200% 200%;
  color: #06070b;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 8px 25px rgba(0, 232, 123, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 232, 123, 0.2);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── Glass Card ─── */
.glass-card {
  background: rgba(13, 15, 22, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(13, 15, 22, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
}

#navbar.navbar-scrolled {
  background: rgba(6, 7, 11, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ─── Hero Background Effects ─── */
.hero-bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 232, 123, 0.3), transparent 70%);
  top: -10%;
  right: -5%;
  animation: float-slow 15s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.2), transparent 70%);
  bottom: -5%;
  left: -5%;
  animation: float-slow 18s ease-in-out infinite reverse;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ─── Phone Mockup ─── */
.mockup-phone {
  max-width: 280px;
  position: relative;
}

.phone-frame {
  background: linear-gradient(145deg, #0d0f16 0%, #0a0c12 100%);
  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  position: relative;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #040508;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.phone-screen {
  background: linear-gradient(180deg, #06070b 0%, #0a0c12 100%);
  border-radius: 24px;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.phone-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 30%, rgba(0, 232, 123, 0.1), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ─── Tab Component ─── */
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #8a8fa8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #eef0f6;
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
  color: #fff;
  background: rgba(0, 232, 123, 0.1);
  border-color: rgba(0, 232, 123, 0.25);
  box-shadow: 0 0 15px rgba(0, 232, 123, 0.08);
}

.tab-panel {
  animation: tab-fade-in 0.3s ease;
}

.tab-panel.hidden {
  display: none;
}

@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── FAQ Accordion ─── */
.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

.faq-trigger:hover {
  color: #eef0f6;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-content.hidden {
  display: none;
}

/* ─── Scroll Reveal ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Animations ─── */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(15px, -20px); }
  50% { transform: translate(-10px, 15px); }
  75% { transform: translate(20px, 10px); }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease forwards;
}

.animation-delay-100 {
  animation-delay: 100ms;
}

.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-300 {
  animation-delay: 300ms;
}

.animation-delay-400 {
  animation-delay: 400ms;
}

/* Scroll-reveal delay classes */
.scroll-reveal.animation-delay-100 { transition-delay: 100ms; }
.scroll-reveal.animation-delay-200 { transition-delay: 200ms; }
.scroll-reveal.animation-delay-300 { transition-delay: 300ms; }
.scroll-reveal.animation-delay-400 { transition-delay: 400ms; }

/* ─── Loading Spinner ─── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(6, 7, 11, 0.3);
  border-top-color: #06070b;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── View Sections ─── */
.view-section {
  animation: view-fade-in 0.3s ease;
}

.view-section.hidden {
  display: none;
}

@keyframes view-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Upload Zone ─── */
.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.upload-zone:hover {
  border-color: rgba(0, 232, 123, 0.3);
  background: rgba(0, 232, 123, 0.03);
}

.upload-zone.drag-over {
  border-color: rgba(0, 232, 123, 0.5);
  background: rgba(0, 232, 123, 0.06);
  transform: scale(1.01);
}

/* ─── Processing Spinner (large) ─── */
.spinner-lg {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 232, 123, 0.15);
  border-top-color: #00e87b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ─── Progress Steps ─── */
.progress-step .step-icon {
  transition: all 0.3s ease;
}

.progress-step.active .step-icon {
  background: rgba(0, 232, 123, 0.1);
  border: 1px solid rgba(0, 232, 123, 0.25);
}

.progress-step.active .step-icon i {
  color: #00e87b;
}

.progress-step.active .step-status {
  color: #00e87b;
}

.progress-step.done .step-icon {
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.25);
}

.progress-step.done .step-icon i {
  color: #00d4aa;
}

.progress-step.done .step-status {
  color: #00d4aa;
}

/* ─── Boundary / Upsell Message ─── */
.boundary-message {
  border: 1px solid rgba(0, 232, 123, 0.1);
  background: linear-gradient(135deg, rgba(0, 232, 123, 0.03) 0%, rgba(0, 212, 170, 0.02) 100%);
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #06070b;
}

::-webkit-scrollbar-thumb {
  background: #1a1d2e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a2d3e;
}

/* ─── Mobile Responsive Tweaks ─── */
@media (max-width: 768px) {
  .mockup-phone {
    max-width: 220px;
  }

  .phone-screen {
    min-height: 300px;
  }

  .phone-frame {
    border-radius: 28px;
    padding: 8px;
  }

  .phone-notch {
    width: 80px;
    height: 20px;
  }

  .hero-orb-1 {
    width: 300px;
    height: 300px;
  }

  .hero-orb-2 {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .mockup-phone {
    max-width: 200px;
  }

  .phone-screen {
    min-height: 260px;
  }
}
