/* ==========================================================================
   SalonSarthi — Luxury Design Tokens & Custom CSS System
   Built for High Conversion & Customer Retention SaaS
   ========================================================================== */

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

:root {
  --bg-main: #0a0a0e;
  --bg-surface: #121218;
  --bg-card: #181822;
  --bg-card-hover: #1f1f2c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(229, 169, 60, 0.35);
  
  --gold-300: #FFF0A8;
  --gold-400: #F5D061;
  --gold-500: #E5A93C;
  --gold-600: #C58518;
  --gold-gradient: linear-gradient(135deg, #FFF0A8 0%, #F5D061 30%, #E5A93C 70%, #C58518 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(245, 208, 97, 0.15) 0%, rgba(229, 169, 60, 0.05) 100%);
  
  --emerald-500: #10B981;
  --emerald-gradient: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: #F3F4F6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* ==========================================================================
   Luxury Gradient Text & Badges
   ========================================================================== */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald-gradient {
  background: var(--emerald-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: var(--gold-gradient);
  color: #0A0A0E;
}

.border-gold-glow {
  border-color: var(--gold-500);
  box-shadow: 0 0 15px rgba(229, 169, 60, 0.2);
}

/* ==========================================================================
   Glassmorphism Effects
   ========================================================================== */
.glass-card {
  background: rgba(24, 24, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
}

.glass-card:hover {
  border-color: rgba(229, 169, 60, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav {
  background: rgba(14, 14, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.glass-bottom-nav {
  background: rgba(14, 14, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Interactive Micro-Animations
   ========================================================================== */
.hover-lift {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.active-press:active {
  transform: scale(0.97);
}

/* Shimmer animation for Skeleton Loaders */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #1a1a24 25%, #252533 50%, #1a1a24 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

/* Pulse glow for balance cards */
@keyframes pulseGoldGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(229, 169, 60, 0.15);
  }
  50% {
    box-shadow: 0 0 35px rgba(229, 169, 60, 0.35);
  }
}

.pulse-gold {
  animation: pulseGoldGlow 3s infinite ease-in-out;
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0d0d12;
}

::-webkit-scrollbar-thumb {
  background: #2b2b3b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-500);
}

/* Hide scrollbar for clean horizontal chips */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  backdrop-filter: blur(12px);
}

.toast.toast-success {
  background: rgba(16, 185, 129, 0.95);
  color: #FFFFFF;
}

.toast.toast-error {
  background: rgba(239, 68, 68, 0.95);
  color: #FFFFFF;
}

.toast.toast-warning {
  background: rgba(245, 158, 11, 0.95);
  color: #0A0A0E;
}

.toast.toast-info {
  background: rgba(30, 30, 42, 0.95);
  border: 1px solid var(--border-gold);
  color: #FFFFFF;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

/* ==========================================================================
   Modal Dialog Styling
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #15151F;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

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