/* Payard.io-inspired Fintech Design Styles for SOULVD */
/* Enhanced with professional fintech aesthetics */

/* Root variables for fintech dark theme */
:root {
  --fin-bg-primary: #0a0f1c;
  --fin-bg-secondary: #111827;
  --fin-bg-card: rgba(17, 24, 39, 0.8);
  --fin-accent: #00d4aa;
  --fin-accent-secondary: #00b4d8;
  --fin-accent-glow: rgba(0, 212, 170, 0.4);
  --fin-text-primary: #ffffff;
  --fin-text-secondary: #9ca3af;
  --fin-border: rgba(255, 255, 255, 0.08);
  --fin-glass: rgba(17, 24, 39, 0.7);
}

/* ===== BASE STYLES ===== */
.fin-dark-bg {
  background-color: var(--fin-bg-primary);
}

.fin-secondary-bg {
  background-color: var(--fin-bg-secondary);
}

/* ===== GLASSMORPHISM ===== */
.fin-glass {
  background: var(--fin-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--fin-border);
}

.fin-card {
  background: var(--fin-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--fin-border);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== GRADIENT TEXT ===== */
.fin-gradient-text {
  background: linear-gradient(135deg, #00d4aa 0%, #00b4d8 50%, #00d4aa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ===== TRUST BADGES ===== */
.fin-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fin-accent);
  transition: all 0.3s ease;
}

.fin-trust-badge:hover {
  background: rgba(0, 212, 170, 0.15);
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-1px);
}

/* ===== SECURITY INDICATOR ===== */
.fin-security-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, 0.5);
  animation: pulse-security 2s ease-in-out infinite;
}

@keyframes pulse-security {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* ===== BUTTONS ===== */
.fin-btn-primary {
  background: linear-gradient(135deg, #00d4aa 0%, #00b4d8 100%);
  color: #0a0f1c;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
  position: relative;
  overflow: hidden;
}

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

.fin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
}

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

.fin-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fin-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* ===== KPI CARDS ===== */
.fin-kpi-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(10, 15, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.fin-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.5), transparent);
}

.fin-kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ===== FEATURE CARDS ===== */
.fin-feature-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.fin-feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 170, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.fin-feature-card:hover::after {
  opacity: 1;
}

.fin-feature-card:hover {
  background: rgba(17, 24, 39, 0.8);
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== GRID BACKGROUND ===== */
.fin-grid-bg {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== ANIMATED GLOW ===== */
.fin-glow {
  position: relative;
}

.fin-glow::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00d4aa, #00b4d8, #00d4aa, #00b4d8);
  background-size: 400%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  animation: glow-rotate 3s linear infinite;
  filter: blur(8px);
}

.fin-glow:hover::after {
  opacity: 0.6;
}

@keyframes glow-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== FLOATING ANIMATION ===== */
.fin-float {
  animation: float 6s ease-in-out infinite;
}

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

/* ===== SHIMMER EFFECT ===== */
.fin-shimmer {
  position: relative;
  overflow: hidden;
}

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

@keyframes shimmer {
  100% { left: 100%; }
}

/* ===== STATS TICKER ===== */
.fin-stats-ticker {
  display: flex;
  gap: 4rem;
  animation: ticker 30s linear infinite;
}

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

/* ===== PROGRESS BAR ===== */
.fin-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.fin-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00d4aa, #00b4d8);
  border-radius: 2px;
  transition: width 1s ease;
}

/* ===== NOTIFICATION DOT ===== */
.fin-notification {
  position: relative;
}

.fin-notification::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--fin-bg-primary);
}

/* ===== SKELETON LOADING ===== */
.fin-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

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

/* ===== NAVBAR STYLES ===== */
.fin-navbar {
  background: rgba(10, 15, 28, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== SECTION DIVIDERS ===== */
.fin-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ===== HOVER LIFT ===== */
.fin-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fin-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== TEXT GRADIENTS ===== */
.fin-text-gradient-subtle {
  background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BORDER GRADIENT ===== */
.fin-border-gradient {
  position: relative;
  background: var(--fin-bg-secondary);
  border-radius: 16px;
}

.fin-border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.3), rgba(0, 180, 216, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  .fin-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .fin-trust-badge {
    font-size: 0.65rem;
    padding: 0.375rem 0.75rem;
  }
}
