:root {
  --primary-color: #e91e63; /* Premium Ruby Pink */
  --primary-gradient: linear-gradient(135deg, #ff4081 0%, #e91e63 100%);
  --secondary-color: #ff9800;
  --bg-gradient: linear-gradient(135deg, #fce4ec 0%, #ffe0b2 50%, #f8bbd0 100%);
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 10px 30px 0 rgba(233, 30, 99, 0.08);
}

* {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* Reset default ASP.NET scoped absolute footer */
.footer {
  position: static !important;
  line-height: inherit !important;
  margin-top: auto !important;
}

/* Glassmorphic Navbar */
.glass-navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.brand-text {
  font-weight: 800;
  font-size: 1.45rem;
  color: #2c3e50;
  letter-spacing: -0.5px;
}

.brand-highlight {
  color: var(--primary-color);
}

.custom-nav-link {
  font-weight: 600;
  color: #495057 !important;
  padding: 8px 16px !important;
  border-radius: 25px;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.custom-nav-link:hover {
  background: rgba(233, 30, 99, 0.08);
  color: var(--primary-color) !important;
  transform: translateY(-1px);
}

.custom-nav-link.active {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}

.user-pill {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  backdrop-filter: blur(8px);
}

.x-small {
  font-size: 0.72rem;
}

/* Glassmorphic Footer */
.glass-footer {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

/* Cards (Glassmorphism) */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  overflow: hidden;
}

.card-header.bg-primary {
  background: var(--primary-gradient) !important;
  border-bottom: none;
}

/* Buttons */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.25);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
  background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}

.btn-success {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.25);
  transition: all 0.25s ease;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
  transform: translateY(-1px);
}

.form-control, .form-select {
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  padding: 12px 16px;
  transition: all 0.25s ease;
  background-color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.18);
  background-color: #fff;
}

label.form-label {
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 6px;
}

/* Modern Match Card Design */
.modern-match-card {
  background: #ffffff !important;
  border: 1px solid rgba(233, 30, 99, 0.1) !important;
  border-radius: 24px !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03) !important;
}

.modern-match-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(233, 30, 99, 0.12) !important;
  border-color: rgba(233, 30, 99, 0.25) !important;
}

.card-gradient-header {
  background: linear-gradient(180deg, #fff5f8 0%, #ffffff 100%);
  border-bottom: 1px solid #f8e6ec;
}

.match-pill-badge {
  background: #ffffff;
  color: #2c3e50;
  border: 1.5px solid #ffe0ea;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
}

/* Stylized Avatars */
.avatar-wrapper {
  width: 90px;
  height: 90px;
  position: relative;
}

.avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
}

.avatar-monogram {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.9rem;
  color: #ffffff;
  letter-spacing: 1px;
  border: 3px solid #ffffff;
}

.avatar-female {
  background: linear-gradient(135deg, #ff4081 0%, #e91e63 100%);
}

.avatar-male {
  background: linear-gradient(135deg, #448aff 0%, #1565c0 100%);
}

.verified-badge-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #ffffff;
  color: #2e7d32;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Info Grid */
.profile-info-grid {
  display: flex;
  flex-direction: column;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fdf2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.info-text {
  line-height: 1.25;
}

.btn-action {
  transition: all 0.2s ease;
}

.btn-action:hover:not(:disabled) {
  transform: translateY(-2px);
}

/* Stepper on Registration */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.stepper-wrapper::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 5%;
  width: 90%;
  height: 4px;
  background-color: #e9ecef;
  z-index: 0;
  border-radius: 4px;
}

.stepper-progress-bar {
  position: absolute;
  top: 22px;
  left: 5%;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 0;
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.stepper-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  z-index: 1;
  cursor: default;
  transition: all 0.3s ease;
}

.stepper-item.clickable {
  cursor: pointer;
}

.step-counter {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid #e9ecef;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #adb5bd;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stepper-item.active .step-counter {
  background: var(--primary-gradient);
  border-color: #ffffff;
  color: white;
  box-shadow: 0 0 16px rgba(233, 30, 99, 0.5);
  transform: scale(1.12);
}

.stepper-item.active .step-name {
  color: var(--primary-color);
  font-weight: 700;
}

.stepper-item.completed .step-counter {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  border-color: #ffffff;
  color: white;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.stepper-item.completed .step-name {
  color: #2e7d32;
  font-weight: 600;
}

.step-name {
  font-size: 0.88rem;
  color: #6c757d;
  text-align: center;
  transition: color 0.3s ease;
}

/* Registration Form Step Visibility & Animation */
.form-step {
  display: none;
  animation: stepFadeIn 0.35s ease-in-out;
}

.form-step.form-step-active {
  display: block;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(233, 30, 99, 0.08);
  color: var(--primary-color);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

/* Navigation Buttons in Wizard */
.btn-wizard-prev {
  background: #ffffff;
  color: #495057;
  border: 1.5px solid #dee2e6;
  border-radius: 30px;
  padding: 10px 26px;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-wizard-prev:hover {
  background: #f8f9fa;
  color: #212529;
  border-color: #ced4da;
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-wizard-next {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-wizard-next:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
  color: #ffffff;
}

.btn-wizard-submit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-wizard-submit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
  color: #ffffff;
}

/* Notifications & Connect Button Enhancements */
.notif-bell-btn {
  transition: all 0.25s ease;
}

.notif-bell-btn:hover {
  background: rgba(233, 30, 99, 0.1) !important;
  color: var(--primary-color);
  transform: scale(1.05);
}

.notif-dropdown-panel {
  animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-item {
  transition: background-color 0.2s ease;
}

.notif-item:hover {
  background-color: rgba(233, 30, 99, 0.04);
}

.shadow-xs {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}