/* Digital Wealth PRO — Custom Styles */

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

.w-screen {
  width: 100vw;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Market Ticker */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 40s linear infinite;
}

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

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(148, 163, 184, 0.3);
}

.ticker-up {
  color: #22c55e;
}

.ticker-down {
  color: #ef4444;
}

/* Dashboard Mockup Animation */
.dashboard-mockup {
  perspective: 1200px;
}

.dashboard-card {
  animation: float-dashboard 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes float-dashboard {
  0%,
  100% {
    transform: translateY(0) rotateX(2deg) rotateY(-2deg);
  }
  50% {
    transform: translateY(-12px) rotateX(-1deg) rotateY(2deg);
  }
}

.chart-bar {
  animation: chart-grow 2s ease-out forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }
.chart-bar:nth-child(6) { animation-delay: 0.6s; }
.chart-bar:nth-child(7) { animation-delay: 0.7s; }

@keyframes chart-grow {
  to {
    transform: scaleY(1);
  }
}

.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.line-chart-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 3s ease forwards 0.5s;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-text, linear-gradient(135deg, #1a2f4a 0%, #1e4976 40%, #0e7490 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Background */
.hero-gradient {
  background: var(--gradient-hero, linear-gradient(160deg, #f0f3f7 0%, #e8eef5 35%, #edf4f8 70%, #f5f7fa 100%));
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  background: rgba(15, 27, 45, 0.82);
  border: 2px solid rgba(196, 160, 53, 0.75);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.hero-btn-secondary:hover {
  color: #ffffff;
  background: #1a2f4a;
  border-color: #c4a035;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

[data-theme="light"] .hero-btn-secondary {
  color: #1a2f4a;
  background: #ffffff;
  border: 2px solid #1a2f4a;
  box-shadow: 0 6px 20px rgba(26, 47, 74, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

[data-theme="light"] .hero-btn-secondary:hover {
  color: #ffffff;
  background: #1a2f4a;
  border-color: #1a2f4a;
  box-shadow: 0 10px 28px rgba(26, 47, 74, 0.28);
}

/* Floating hero icons */
.hero-float-icons {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-float-icon {
  position: absolute;
  opacity: 0.55;
  filter: drop-shadow(0 8px 24px rgba(30, 64, 175, 0.12));
}

.float-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.float-badge.float-sm {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
}

.float-crypto {
  border-radius: 50%;
}

.float-symbol {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.float-stock-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.float-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.hero-float-1 { animation: hero-float-a 7s ease-in-out infinite; }
.hero-float-2 { animation: hero-float-b 9s ease-in-out infinite 0.5s; }
.hero-float-3 { animation: hero-float-c 8s ease-in-out infinite 1s; }
.hero-float-4 { animation: hero-float-b 10s ease-in-out infinite 0.3s; }
.hero-float-5 { animation: hero-float-a 11s ease-in-out infinite 1.5s; }
.hero-float-6 { animation: hero-float-c 9.5s ease-in-out infinite 0.8s; }
.hero-float-7 { animation: hero-float-b 8.5s ease-in-out infinite 2s; }
.hero-float-8 { animation: hero-float-a 7.5s ease-in-out infinite 0.6s; }
.hero-float-9 { animation: hero-float-c 10.5s ease-in-out infinite 1.2s; }
.hero-float-10 { animation: hero-float-b 6.5s ease-in-out infinite 1.8s; opacity: 0.4; }

@keyframes hero-float-a {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(3deg); }
  66% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes hero-float-b {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-22px) translateX(8px) rotate(-4deg); }
}

@keyframes hero-float-c {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  40% { transform: translateY(-14px) translateX(-10px) rotate(5deg); }
  70% { transform: translateY(-24px) translateX(5px) rotate(-3deg); }
}

@media (max-width: 1023px) {
  .hero-float-icon {
    opacity: 0.35;
    transform: scale(0.75);
  }
  .hero-float-7,
  .hero-float-9,
  .hero-float-10 {
    display: none;
  }
}

@media (max-width: 639px) {
  .hero-float-6,
  .hero-float-8 {
    display: none;
  }
  .hero-float-icon {
    transform: scale(0.65);
    opacity: 0.3;
  }
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(30, 64, 175, 0.2);
}

.plan-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-featured {
  background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
}

/* Modal */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Form Validation */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input-success {
  border-color: #22c55e !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.visible {
  display: block;
}

/* Nav scroll state */
.nav-scrolled {
  background: var(--surface-header, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm, 0 4px 20px rgba(0, 0, 0, 0.08));
}

/* Button shimmer */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

/* Toast notification */
.toast {
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(0);
}

/* Stat counter glow */
.stat-glow {
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Section Badge */
.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  border: 1px solid #dbeafe;
}

/* Crypto Cards */
.crypto-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.crypto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(30, 64, 175, 0.15);
  border-color: #93c5fd;
}

.crypto-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  color: #fff;
  flex-shrink: 0;
}

.crypto-price-flash-up {
  animation: flash-up 0.6s ease;
}

.crypto-price-flash-down {
  animation: flash-down 0.6s ease;
}

@keyframes flash-up {
  0% { background-color: rgba(34, 197, 94, 0.2); }
  100% { background-color: transparent; }
}

@keyframes flash-down {
  0% { background-color: rgba(239, 68, 68, 0.2); }
  100% { background-color: transparent; }
}

/* Preview Cards */
.preview-card {
  transition: transform 0.4s ease;
}

.preview-card:hover {
  transform: translateY(-6px);
}

/* PWA Install Banner */
.pwa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pwa-banner.visible {
  transform: translateY(0);
}

body.pwa-banner-active {
  padding-bottom: 64px;
}

/* Currency Converter */
.converter-card {
  transition: box-shadow 0.3s ease;
}

.converter-card:hover {
  box-shadow: 0 20px 50px -12px rgba(30, 64, 175, 0.15);
}

.converter-swap:active {
  transform: rotate(180deg);
}

.converter-swap {
  transition: transform 0.4s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.converter-result.rate-updated {
  animation: rate-pulse 0.5s ease;
}

@keyframes rate-pulse {
  0% { background-color: #dbeafe; }
  100% { background-color: #eff6ff; }
}

.quick-pair.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.converter-status.live {
  color: #a7f3d0;
}

.converter-status.offline {
  color: #fde68a;
}

