/* ==========================================================================
   FinanceAdhikar — Premium Design System & Brand Styling
   Primary: #0D233A (Navy Trust) | Accent: #C69255 (Gold Prosperity)
   ========================================================================== */

:root {
  --fa-navy-dark: #071524;
  --fa-navy: #0D233A;
  --fa-navy-light: #163250;
  --fa-navy-soft: #214368;
  
  --fa-gold: #C69255;
  --fa-gold-hover: #B57F42;
  --fa-gold-light: #F4EAE0;
  --fa-gold-glow: rgba(198, 146, 85, 0.25);
  
  --fa-surface-light: #FFFFFF;
  --fa-bg-light: #F8FAFC;
  --fa-border-light: #E2E8F0;
  --fa-text-main: #0F172A;
  --fa-text-muted: #64748B;
  
  --fa-surface-dark: #0D1C2E;
  --fa-bg-dark: #07121F;
  --fa-border-dark: #1E344F;
  --fa-text-dark: #F1F5F9;
  --fa-text-dark-muted: #94A3B8;

  --fa-radius-sm: 8px;
  --fa-radius-md: 12px;
  --fa-radius-lg: 16px;
  --fa-radius-xl: 24px;
}

/* ==========================================================================
   1. Luxury Gold & Navy Custom Scrollbar (Cross-Browser)
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: #C69255 rgba(13, 35, 58, 0.25);
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(13, 28, 46, 0.08);
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-track {
  background: rgba(7, 18, 31, 0.6);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D4A373 0%, #C69255 100%);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #DEAF80 0%, #D4A373 100%);
  box-shadow: 0 0 8px rgba(198, 146, 85, 0.5);
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0;
  height: 0;
}

/* Base Body Lock when Drawer is Active */
body.drawer-active {
  overflow: hidden !important;
  touch-action: none;
}

/* Custom Gold Accent Button */
.btn-gold {
  background: linear-gradient(135deg, #D4A373 0%, #C69255 50%, #B57F42 100%);
  color: #FFFFFF !important;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 14px rgba(198, 146, 85, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #DEAF80 0%, #D4A373 50%, #C69255 100%);
  box-shadow: 0 6px 20px rgba(198, 146, 85, 0.5);
  transform: translateY(-1px);
}

.btn-navy {
  background: #0D233A;
  color: #FFFFFF !important;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 14px rgba(13, 35, 58, 0.3);
  transition: all 0.25s ease;
  border: 1px solid #1A3A5E;
}
.btn-navy:hover {
  background: #163250;
  box-shadow: 0 6px 20px rgba(13, 35, 58, 0.45);
  transform: translateY(-1px);
}

/* Glass & Border Cards */
.fa-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}
.dark .fa-card {
  background: #0D1C2E;
  border-color: #1E344F;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
}
.fa-card-hover:hover {
  border-color: #C69255;
  box-shadow: 0 12px 28px -4px rgba(198, 146, 85, 0.18);
  transform: translateY(-3px);
}
.dark .fa-card-hover:hover {
  border-color: #D4A373;
  box-shadow: 0 12px 28px -4px rgba(198, 146, 85, 0.25);
  transform: translateY(-3px);
}

/* Gold Gradient Text */
.text-gold-gradient {
  background: linear-gradient(135deg, #DEAF80 0%, #C69255 60%, #9B6D4A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  background: #E2E8F0;
  border-radius: 6px;
  outline: none;
  transition: background 0.2s;
}
.dark input[type="range"] {
  background: #1E344F;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #C69255;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(198, 146, 85, 0.55);
  border: 2px solid #FFFFFF;
  transition: transform 0.15s ease, background 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #D4A373;
}

/* Badge Gold */
.badge-gold {
  background-color: rgba(198, 146, 85, 0.12);
  color: #9B6D4A;
  border: 1px solid rgba(198, 146, 85, 0.3);
  font-weight: 600;
}
.dark .badge-gold {
  background-color: rgba(198, 146, 85, 0.18);
  color: #DEAF80;
  border-color: rgba(198, 146, 85, 0.4);
}

/* Result highlight callout */
.result-stat-box {
  background: linear-gradient(135deg, rgba(13, 35, 58, 0.03) 0%, rgba(198, 146, 85, 0.08) 100%);
  border: 1px solid rgba(198, 146, 85, 0.25);
  border-radius: 14px;
}
.dark .result-stat-box {
  background: linear-gradient(135deg, rgba(13, 28, 46, 0.6) 0%, rgba(198, 146, 85, 0.12) 100%);
  border-color: rgba(198, 146, 85, 0.35);
}

/* Tool Workspace Mobile Hardening */
.tool-workspace {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.tool-workspace canvas {
  max-width: 100% !important;
  height: auto !important;
}
.tool-workspace input[type="number"],
.tool-workspace input[type="text"],
.tool-workspace select {
  font-size: 14px;
  max-width: 100%;
}
@media (max-width: 640px) {
  .tool-workspace {
    font-size: 13px;
  }
}

/* Clean Direct Ad Placement Container */
.fa-ad-slot {
  position: relative;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0;
  background: transparent;
  border: none;
  text-align: center;
  width: 100%;
}

/* Related Calculators Luxury Card Styles */
.related-calc-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 0.875rem 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.dark .related-calc-card {
  background: #0D1C2E;
  border-color: #1E344F;
}
.related-calc-card:hover {
  border-color: #C69255;
  box-shadow: 0 8px 24px -4px rgba(198, 146, 85, 0.22);
  transform: translateX(4px);
}
.dark .related-calc-card:hover {
  border-color: #D4A373;
  box-shadow: 0 8px 24px -4px rgba(198, 146, 85, 0.3);
}

.related-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(198, 146, 85, 0.1);
  color: #C69255;
  border: 1px solid rgba(198, 146, 85, 0.25);
  transition: all 0.25s ease;
}
.related-calc-card:hover .related-icon-box {
  background: linear-gradient(135deg, #D4A373 0%, #C69255 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(198, 146, 85, 0.4);
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}
.animate-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}
