/* 💰 LuckyDong Premium Finance Theme CSS */
:root {
  /* Primary Colors - Indigo/Blue Premium Theme */
  --primary-dark: #1E1B4B;
  --primary: #4F46E5;
  --primary-light: #6366F1;
  --primary-accent: #06B6D4;
  
  /* Cyan Accent & Premium Blues */
  --gold: #06B6D4;
  --gold-light: #CFFAFE;
  --purple: #0EA5E9;
  --purple-light: #E0F2FE;
  
  /* Semantic */
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --danger: #E11D48;
  --danger-light: #FFE4E6;
  
  /* Neutral */
  --dark: #0F172A;
  --dark-secondary: #1E293B;
  --muted: #475569;
  --light: #F1F5F9;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
  color: var(--light);
  line-height: 1.6;
}

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

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

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

@keyframes pulse-soft {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.animate-slideUp {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-slideInLeft {
  animation: slideInLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.spinner {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============ Typography ============ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.75rem;
  font-weight: 900;
}

h2 {
  font-size: 2.25rem;
  font-weight: 800;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* ============ Components ============ */

/* Premium Card with Gold Border */
.premium-card {
  background: rgba(30, 27, 75, 0.8);
  backdrop-filter: blur(12px);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
  transition: all 0.3s ease;
}

.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(245, 158, 11, 0.25);
  border-color: #FBBF24;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Hero Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Badge */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-light);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
}

/* Status Badges */
.badge-paid {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.badge-late {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.badge-unpaid {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger);
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(63, 97, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-accent) 100%);
}

.btn-primary:active {
  transform: scale(0.95);
}

/* Secondary Button (Gold/Outlined) */
.btn-secondary {
  background: transparent;
  color: var(--gold);
  padding: 0.75rem 2rem;
  border-radius: 16px;
  border: 2px solid var(--gold);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--gold-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: scale(0.95);
}

/* Tertiary Button (Ghost) */
.btn-tertiary {
  background: transparent;
  color: var(--gold);
  padding: 0.75rem 2rem;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-tertiary:hover {
  color: #FBBF24;
  transform: translateX(4px);
}

/* Input Fields */
input, textarea, select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input::placeholder, textarea::placeholder, select::placeholder {
  color: var(--muted);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

/* Decorative Gradient Orb */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.orb-indigo {
  background: var(--primary-accent);
}

.orb-purple {
  background: var(--purple);
}

.orb-gold {
  background: var(--gold);
}

/* Navbar Styling */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem;
  pointer-events: none;
}

.navbar-content {
  max-width: 80rem;
  margin: 0 auto;
  pointer-events: auto;
  background: rgba(30, 27, 75, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 24px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-logo {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--purple) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.2);
}

.navbar-title {
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold) 0%, var(--light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ Utilities ============ */
.text-gold {
  color: var(--gold);
}

.text-white {
  color: var(--white);
}

.text-muted {
  color: var(--muted);
}

.border-gold {
  border-color: var(--gold);
}

.bg-gold-light {
  background-color: var(--gold-light);
}

.backdrop-blur {
  backdrop-filter: blur(12px);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Selection */
::selection {
  background: var(--gold);
  color: var(--primary-dark);
}

::-moz-selection {
  background: var(--gold);
  color: var(--primary-dark);
}
