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

:root {
  --primary-dark: #071325;
  --secondary-dark: #0f2744;
  --card-dark: #16325B;
  --card-border: #227B94;
  --accent-saffron: #FF6500;
  --accent-gold: #FFB300;
  --accent-green: #10B981;
  --accent-blue: #0284C7;
  --accent-purple: #8B5CF6;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --bg-gradient: linear-gradient(135deg, #071325 0%, #0f2744 50%, #16325B 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--primary-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Glassmorphism effects */
.glass-panel {
  background: rgba(15, 39, 68, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.glass-card {
  background: rgba(22, 50, 91, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 101, 0, 0.2);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-saffron);
  box-shadow: 0 12px 30px rgba(255, 101, 0, 0.15);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #FF6500 0%, #FF8E00 100%);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 101, 0, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255, 101, 0, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-green { background: rgba(16, 185, 129, 0.2); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-amber { background: rgba(245, 158, 11, 0.2); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-blue { background: rgba(2, 132, 199, 0.2); color: #38BDF8; border: 1px solid rgba(2, 132, 199, 0.4); }
.badge-purple { background: rgba(139, 92, 246, 0.2); color: #C084FC; border: 1px solid rgba(139, 92, 246, 0.4); }
.badge-red { background: rgba(239, 68, 68, 0.2); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.4); }

/* Form Controls */
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(7, 19, 37, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #FFFFFF;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-saffron);
  box-shadow: 0 0 0 3px rgba(255, 101, 0, 0.2);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 20, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-content {
  background: #0f2744;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Mobile Bottom Navigation (Visible on mobile screens) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 19, 37, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0.25rem;
  z-index: 50;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-saffron);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Digital ID Card Preview */
.id-card-wrapper {
  background: linear-gradient(135deg, #0f2744 0%, #1e3e62 100%);
  border: 2px solid #f5af19;
  border-radius: 16px;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.id-card-wrapper::after {
  content: "ABPN OFFICIAL";
  position: absolute;
  top: 40%;
  right: -20px;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  transform: rotate(-30deg);
  pointer-events: none;
}

/* Interactive Pricing & Calculator Enhancements */
.pricing-card {
  background: linear-gradient(180deg, rgba(22, 50, 91, 0.7) 0%, rgba(15, 39, 68, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: #FFB300;
  box-shadow: 0 15px 35px rgba(255, 179, 0, 0.2);
}

.pricing-card.featured {
  border: 2px solid #FF6500;
  box-shadow: 0 10px 30px rgba(255, 101, 0, 0.25);
}

.pricing-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: 14px;
  right: -32px;
  background: linear-gradient(135deg, #FF6500, #FF8E00);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 34px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Project Selection Tile in Calculator & Modal */
.project-select-tile {
  background: rgba(7, 19, 37, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.project-select-tile:hover {
  background: rgba(15, 39, 68, 0.9);
  border-color: rgba(255, 179, 0, 0.4);
}

.project-select-tile.selected {
  background: rgba(255, 101, 0, 0.12);
  border-color: #FF6500;
  box-shadow: 0 0 12px rgba(255, 101, 0, 0.2);
}

/* Key Account Manager (KAM) Highlight Cards */
.kam-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 39, 68, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

.glow-text-gold {
  color: #FFB300;
  text-shadow: 0 0 12px rgba(255, 179, 0, 0.4);
}

.glow-text-orange {
  color: #FF6500;
  text-shadow: 0 0 12px rgba(255, 101, 0, 0.4);
}

.glow-text-emerald {
  color: #10B981;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}
