/* ═══════════════════════════════════════════════════════════════════
   BIDPOTS PREMIUM UI v1.0
   Advanced rich look — Glassmorphism, Gradients, Animations,
   Premium cards, Enhanced forms, Modern typography
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Enhanced Global Typography ─────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ─── Premium Form Controls ──────────────────────────────────────── */
.form-control {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  height: auto !important;
}

.form-control:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  background: #ffffff !important;
  outline: none !important;
}

.form-control::placeholder {
  color: #94a3b8 !important;
  font-weight: 400;
}

/* ─── Premium Buttons ────────────────────────────────────────────── */
.btn {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn:active {
  transform: translateY(0);
}

/* ─── Premium Ad Cards ───────────────────────────────────────────── */
.ads .col-lg-3,
.ads .col-md-4,
.ads .col-sm-6 {
  margin-bottom: 24px;
}

.ads .col-lg-3 > a,
.ads .col-md-4 > a,
.ads .col-sm-6 > a,
[data-ref="AdItem"] {
  display: block;
  background: #ffffff;
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  text-decoration: none !important;
}

[data-ref="AdItem"]:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

[data-ref="AdItem"] img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-ref="AdItem"]:hover img {
  transform: scale(1.05);
}

/* ─── Premium Category Cards ─────────────────────────────────────── */
.home-cats > div > a {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #f1f5f9 !important;
  text-decoration: none !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.home-cats > div > a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.home-cats > div > a:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1), 0 4px 8px rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

.home-cats > div > a:hover::before {
  opacity: 1;
}

.home-cats > div > a figure {
  margin: 0;
}

.home-cats > div > a figure img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
  transition: transform 0.35s;
}

.home-cats > div > a:hover figure img {
  transform: scale(1.15) rotate(-3deg);
}

.home-cats > div > a figcaption {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ─── Premium Search Bar ─────────────────────────────────────────── */
.search-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%) !important;
  border-radius: 20px !important;
  padding: 28px 24px !important;
  margin-bottom: 32px !important;
  border: 1px solid rgba(226, 232, 240, 0.6) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255,255,255,0.8);
}

.search-bg .form-control {
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

.search-bg .input-group-addon {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border: none !important;
  border-radius: 0 12px 12px 0 !important;
  color: #fff !important;
  padding: 10px 18px !important;
  cursor: pointer;
  transition: all 0.25s;
}

.search-bg .input-group-addon:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
}

.stylish-input-group .form-control {
  border-radius: 12px 0 0 12px !important;
}

/* ─── Premium Page Background ────────────────────────────────────── */
#page-wrapper {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 30%, #f9fafb 100%) !important;
}

/* ─── Glassmorphism Helper ───────────────────────────────────────── */
.bp-glass {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* ─── Animated Gradient Background for Auth Pages ────────────────── */
.bp-auth-bg {
  min-height: 100vh;
  background: linear-gradient(-45deg, #0f172a, #1e1b4b, #0c4a6e, #1a1a2e, #312e81);
  background-size: 400% 400%;
  animation: bp-gradient-shift 20s ease infinite;
  position: relative;
  overflow: hidden;
}

.bp-auth-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 40%),
              radial-gradient(ellipse at 40% 80%, rgba(233, 69, 96, 0.08) 0%, transparent 40%);
  animation: bp-aurora 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bp-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bp-aurora {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, 5%) rotate(3deg); }
}

/* ─── Auth Page Split Layout ─────────────────────────────────────── */
.bp-auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.bp-auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  color: #ffffff;
}

.bp-auth-left-content {
  max-width: 440px;
  text-align: center;
  z-index: 1;
}

.bp-auth-left-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bp-auth-left-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.bp-auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.bp-auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.bp-auth-feature i {
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  color: #a5b4fc;
  flex-shrink: 0;
}

.bp-auth-feature span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ─── Auth Form Panel (Right Side) ───────────────────────────────── */
.bp-auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: #ffffff;
  position: relative;
}

.bp-auth-card {
  width: 100%;
  max-width: 440px;
}

.bp-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.bp-auth-logo img {
  height: 48px;
  width: auto;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.bp-auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.bp-auth-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0 0 28px;
}

.bp-auth-form .form-group {
  margin-bottom: 20px;
}

.bp-auth-form label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bp-auth-form label i {
  color: #94a3b8;
  font-size: 14px;
}

.bp-auth-form .form-control {
  padding: 14px 16px !important;
  font-size: 14px !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
}

.bp-auth-form .form-control:focus {
  background: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* ─── Premium Auth Button ────────────────────────────────────────── */
.bp-auth-submit {
  width: 100%;
  padding: 14px 24px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.bp-auth-submit-login {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.bp-auth-submit-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45) !important;
}

.bp-auth-submit-register {
  background: linear-gradient(135deg, #e94560 0%, #d63384 50%, #be185d 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
}

.bp-auth-submit-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.45) !important;
}

/* ─── Divider ────────────────────────────────────────────────────── */
.bp-auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #94a3b8;
  font-size: 13px;
}

.bp-auth-divider::before,
.bp-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* ─── Switch Auth Link ───────────────────────────────────────────── */
.bp-auth-switch {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.bp-auth-switch p {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 12px;
}

.bp-auth-switch a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s;
}

.bp-auth-switch-register {
  background: linear-gradient(135deg, #fef2f2, #fce7f3);
  color: #be123c !important;
  border: 1.5px solid #fecdd3;
}

.bp-auth-switch-register:hover {
  background: linear-gradient(135deg, #fecdd3, #fbcfe8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.1);
}

.bp-auth-switch-login {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #3730a3 !important;
  border: 1.5px solid #c7d2fe;
}

.bp-auth-switch-login:hover {
  background: linear-gradient(135deg, #c7d2fe, #ddd6fe);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(55, 48, 163, 0.1);
}

/* ─── Remember Me & Forgot ───────────────────────────────────────── */
.bp-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.bp-auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #475569;
  margin: 0;
}

.bp-auth-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
  cursor: pointer;
}

.bp-auth-forgot {
  font-size: 13px;
  color: #6366f1 !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.2s;
}

.bp-auth-forgot:hover {
  color: #4338ca !important;
}

/* ─── Terms Text ─────────────────────────────────────────────────── */
.bp-auth-terms {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #94a3b8;
}

.bp-auth-terms a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.bp-auth-terms a:hover {
  text-decoration: underline;
}

/* ─── Error/Success Messages ─────────────────────────────────────── */
.bp-auth-message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-auth-message-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.bp-auth-message-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

/* ─── Floating Particles (decorative) ────────────────────────────── */
.bp-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bp-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: bp-float 20s ease-in-out infinite;
}

.bp-particle:nth-child(1) {
  width: 80px; height: 80px;
  background: rgba(99, 102, 241, 0.3);
  top: 20%; left: 10%;
  animation-delay: 0s;
}

.bp-particle:nth-child(2) {
  width: 120px; height: 120px;
  background: rgba(14, 165, 233, 0.2);
  top: 60%; right: 15%;
  animation-delay: -5s;
}

.bp-particle:nth-child(3) {
  width: 60px; height: 60px;
  background: rgba(233, 69, 96, 0.25);
  bottom: 20%; left: 30%;
  animation-delay: -10s;
}

.bp-particle:nth-child(4) {
  width: 100px; height: 100px;
  background: rgba(16, 185, 129, 0.15);
  top: 40%; left: 60%;
  animation-delay: -15s;
}

@keyframes bp-float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  25% { transform: translateY(-20px) translateX(10px) scale(1.05); }
  50% { transform: translateY(-10px) translateX(-15px) scale(0.95); }
  75% { transform: translateY(-25px) translateX(5px) scale(1.02); }
}

/* ─── Responsive Auth ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .bp-auth-container {
    flex-direction: column;
  }
  .bp-auth-left {
    padding: 32px 24px;
    min-height: auto;
  }
  .bp-auth-left-content h1 {
    font-size: 1.75rem;
  }
  .bp-auth-features {
    display: none;
  }
  .bp-auth-right {
    padding: 32px 24px;
  }
}

@media (max-width: 575px) {
  .bp-auth-left {
    padding: 24px 16px;
  }
  .bp-auth-left-content h1 {
    font-size: 1.5rem;
  }
  .bp-auth-left-content p {
    font-size: 0.9rem;
  }
  .bp-auth-right {
    padding: 24px 16px;
  }
  .bp-auth-title {
    font-size: 1.5rem;
  }
}

/* ─── Premium Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #94a3b8, #64748b);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #64748b, #475569);
}

/* ─── Selection Color ────────────────────────────────────────────── */
::selection {
  background: rgba(99, 102, 241, 0.2);
  color: #1e1b4b;
}

/* ─── Smooth Page Transitions ────────────────────────────────────── */
.page-content {
  animation: bp-page-enter 0.4s ease-out;
}

@keyframes bp-page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Premium Badge Styles ───────────────────────────────────────── */
.badge {
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  letter-spacing: 0.02em;
}

.badge.green {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #fff !important;
}

/* ─── Enhanced Chosen Dropdown ───────────────────────────────────── */
.chosen-container-single .chosen-single {
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  padding: 10px 16px !important;
  height: auto !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  transition: all 0.25s !important;
}

.chosen-container-active .chosen-single {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.chosen-container .chosen-drop {
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  margin-top: 4px !important;
}

/* ─── Premium Loading Animation ──────────────────────────────────── */
@keyframes bp-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.bp-loading {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: bp-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* ─── Premium Ad Listing Cards ───────────────────────────────────── */
.ad-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.ad-list .ads,
.ad-list > div {
  margin-bottom: 0 !important;
}

/* ─── Enhanced Dropdown Menus ────────────────────────────────────── */
.dropdown-menu {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05) !important;
  padding: 8px !important;
  animation: bp-dropdown-enter 0.2s ease-out;
}

@keyframes bp-dropdown-enter {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-menu > li > a {
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  transition: background 0.15s, color 0.15s !important;
}

.dropdown-menu > li > a:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}

/* ─── Premium Alerts ─────────────────────────────────────────────── */
.alert {
  border-radius: 12px !important;
  border: none !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.alert-success {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
  color: #065f46 !important;
}

.alert-danger, .alert-error {
  background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
  color: #991b1b !important;
}

.alert-warning {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
  color: #92400e !important;
}

.alert-info {
  background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
  color: #1e40af !important;
}

/* ─── Premium Modal ──────────────────────────────────────────────── */
.modal-content {
  border-radius: 16px !important;
  border: none !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 18px 24px !important;
}

.modal-header h4 {
  font-weight: 700 !important;
  color: #0f172a !important;
}

.modal-body {
  padding: 24px !important;
}

.modal-footer {
  border-top: 1px solid #f1f5f9 !important;
  padding: 16px 24px !important;
}

/* ─── Premium Table Styles ───────────────────────────────────────── */
.table {
  border-radius: 12px;
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0;
}

.table > thead > tr > th {
  background: #f8fafc !important;
  border-bottom: 2px solid #e2e8f0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b !important;
  padding: 12px 16px !important;
}

.table > tbody > tr > td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

.table > tbody > tr:hover > td {
  background: #f8fafc !important;
}

/* ─── Premium Pagination ─────────────────────────────────────────── */
.pagination {
  gap: 4px;
}

.pagination > li > a,
.pagination > li > span {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  transition: all 0.2s !important;
}

.pagination > li > a:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #2563eb !important;
}

.pagination > .active > a,
.pagination > .active > span {
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

/* ─── Premium Tabs ───────────────────────────────────────────────── */
.nav-tabs {
  border-bottom: 2px solid #f1f5f9 !important;
}

.nav-tabs > li > a {
  border: none !important;
  border-radius: 8px 8px 0 0 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #64748b !important;
  padding: 12px 20px !important;
  transition: all 0.2s !important;
}

.nav-tabs > li > a:hover {
  background: #f8fafc !important;
  color: #2563eb !important;
}

.nav-tabs > li.active > a {
  color: #2563eb !important;
  border-bottom: 3px solid #2563eb !important;
  background: transparent !important;
}

/* ─── Premium Well / Panel ───────────────────────────────────────── */
.panel {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.panel-heading {
  border-radius: 16px 16px 0 0 !important;
  background: linear-gradient(135deg, #f8fafc, #ffffff) !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 16px 20px !important;
}

.panel-body {
  padding: 20px !important;
}

/* ─── Premium Profile Page ───────────────────────────────────────── */
.profile-details {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.profile-details > figure {
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e40af 100%) !important;
  min-height: 160px;
}

.profile-details > figure img {
  border: 4px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ─── Smooth Image Loading ───────────────────────────────────────── */
img {
  transition: opacity 0.3s ease;
}

img[src=""],
img:not([src]) {
  opacity: 0;
}

/* ─── Enhanced Navigation Active State ───────────────────────────── */
.bp-main-nav > li > a.active,
.bp-main-nav > li.active > a {
  color: #ffffff !important;
  border-bottom-color: #e94560 !important;
}

/* ─── Premium Tooltip ────────────────────────────────────────────── */
.tooltip-inner {
  background: #1e293b !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.tooltip.top .tooltip-arrow {
  border-top-color: #1e293b !important;
}

/* ─── Link Hover Effect ──────────────────────────────────────────── */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* ─── Focus Visible Rings ────────────────────────────────────────── */
.bp-auth-form .form-group.focused .form-control {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08) !important;
  background: #ffffff !important;
}

/* ─── Validation Error Styling ───────────────────────────────────── */
span[id*="Validator"],
span[id*="validator"] {
  display: block !important;
  margin-top: 4px;
  font-size: 12px !important;
  font-weight: 500;
}
