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

:root {
  --color-obsidian: #050b0a;
  --color-obsidian-light: #0b1413;
  --color-obsidian-card: rgba(10, 20, 19, 0.75);
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.4);
  --color-emerald-border: rgba(45, 212, 160, 0.35);
  --color-gold: #dfba73;
  --color-gold-light: #f7e5b8;
  --color-gold-glow: rgba(223, 186, 115, 0.3);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-obsidian);
  color: #f1f5f9;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, .font-serif-luxury {
  font-family: 'Playfair Display', serif;
}

.font-display {
  font-family: 'Outfit', sans-serif;
}

/* 1-to-1 Exact Nuba Pill Header */
.nuba-header-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 6px 8px 6px 16px;
  background: linear-gradient(90deg, #173832 0%, #162a28 25%, #101c1c 55%, #122824 85%, #17362f 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 9999px;
  border: 1px solid rgba(45, 212, 160, 0.45);
  box-shadow: 0 0 30px rgba(20, 184, 134, 0.3), 0 15px 35px rgba(0, 0, 0, 0.7);
  position: relative;
  transition: all 0.3s ease;
}

.nuba-wa-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #10b981 0%, #22c55e 50%, #4ade80 100%);
  color: #032215;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.45);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nuba-wa-pill-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.7);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--color-obsidian-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass-panel-glow {
  background: rgba(10, 22, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-emerald-border);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.15), 0 20px 40px rgba(0, 0, 0, 0.6);
}

.glass-panel-gold {
  background: rgba(14, 22, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(223, 186, 115, 0.35);
  box-shadow: 0 0 30px rgba(223, 186, 115, 0.15), 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Gradients and Glows */
.text-gold-gradient {
  background: linear-gradient(135deg, #ffffff 15%, #f7e5b8 65%, #dfba73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald-gradient {
  background: linear-gradient(135deg, #a7f3d0 0%, #34d399 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #032215;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-gold {
  background: linear-gradient(135deg, #f7e5b8 0%, #dfba73 50%, #b89345 100%);
  color: #1a1403;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(223, 186, 115, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(223, 186, 115, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.btn-outline-gold {
  background: rgba(223, 186, 115, 0.05);
  border: 1px solid rgba(223, 186, 115, 0.5);
  color: #f7e5b8;
  box-shadow: 0 0 15px rgba(223, 186, 115, 0.18);
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: rgba(223, 186, 115, 0.15);
  border-color: #dfba73;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(223, 186, 115, 0.35);
}

/* Custom Range Slider for Calculator */
input[type="range"].custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

input[type="range"].custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffeaa7, #dfba73);
  box-shadow: 0 0 15px rgba(223, 186, 115, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
  border: 2px solid #ffffff;
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"].custom-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(223, 186, 115, 1);
}

/* Before / After Slider Container */
.ba-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.ba-before-img,
.ba-after-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 3px solid #10b981;
  box-shadow: 2px 0 15px rgba(16, 185, 129, 0.8);
}

.ba-after-wrapper .ba-after-img {
  width: 100%;
  min-width: 100%;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #10b981;
  border: 3px solid #ffffff;
  box-shadow: 0 0 20px #10b981, 0 4px 10px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: none;
  z-index: 10;
}

/* Pulsing Badge Animations */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pulse-radar::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: inherit;
  opacity: 0.4;
  animation: pulse-ring 2.5s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060b0a;
}
::-webkit-scrollbar-thumb {
  background: #172a27;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}
