/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Tabs */
.tab-btn.active {
  border-bottom-color: #0284c7;
  color: #0284c7;
  font-weight: 700;
  background-color: #f0f9ff;
}

.overflow-touch {
  -webkit-overflow-scrolling: touch;
}

input[type="number"],
input[type="text"],
input[type="password"],
input[type="email"],
select {
  font-size: 16px !important;
}

/* Select & Option Dark Styling */
select option {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

#userPlansSelect {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

#userPlansSelect option {
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* Security pulsing badge */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.shield-pulse {
  animation: pulse-glow 2.5s infinite;
}

/* Password rule checkmarks */
.rule-item.valid {
  color: #16a34a;
  font-weight: 600;
}
.rule-item.invalid {
  color: #94a3b8;
}

/* Plan selector dropdown custom styling */
.plan-pill {
  transition: all 0.2s ease-in-out;
}
.plan-pill:hover {
  transform: translateY(-1px);
}

/* Glassmorphism modals & dropdowns */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

.header-dropdown {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
}

/* Modern Pillar Navigation */
.pillar-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0.75rem;
}
.pillar-btn:hover {
  background: rgba(30, 41, 59, 0.7);
  color: #f8fafc;
}
.pillar-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 15px -3px rgba(2, 132, 199, 0.2);
}

/* Sub-navigation Pills */
.subtab-btn {
  transition: all 0.2s ease;
  border-radius: 0.625rem;
}
.subtab-btn:hover {
  background: rgba(51, 65, 85, 0.6);
  color: #ffffff;
}
.subtab-btn.active {
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

/* Tab content smooth animation */
@keyframes tabEnter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content:not(.hidden) {
  animation: tabEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Comparison matrix cards */
.compare-card {
  transition: all 0.2s ease;
}
.compare-card:hover {
  border-color: #0284c7;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
