/* ==========================================================================
   TRUSOF MATRIMONY - HARMONY DESIGN SYSTEM
   Brand: TRUSOF - "Trust of India"
   ========================================================================== */

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

:root {
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-light: #ffe4e6;
  --primary-subtle: #fff1f2;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-muted: #334155;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --gold-text: #b45309;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(225, 29, 72, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile nav */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.text-primary { color: var(--primary); }
.text-gold { color: var(--gold-text); }
.text-muted { color: var(--text-muted); }
.text-white { color: #ffffff; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-verified {
  background: var(--success-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-match {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

.badge-gold {
  background: var(--gold-light);
  color: var(--gold-text);
  border: 1px solid #fde68a;
}

.badge-navy {
  background: var(--navy-light);
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.925rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f43f5e 0%, var(--primary) 100%);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.38);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-page);
  border-color: var(--text-light);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary-subtle);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 2px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--navy-muted);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}
.user-pill:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-light);
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #090e1a 0%, #1e1b4b 50%, #4c0519 100%);
  color: #ffffff;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.07;
  background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.25rem; }
}

.hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto;
}

/* Search Widget */
.search-widget-card {
  position: relative;
  z-index: 5;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  max-width: 1020px;
  margin: 0 auto;
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .search-form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .search-form-grid { grid-template-columns: repeat(5, 1fr); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

/* Trust Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .trust-bar { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  text-align: left;
}

.trust-icon {
  font-size: 1.5rem;
}

.trust-text h4 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
}

.trust-text p {
  color: #94a3b8;
  font-size: 0.72rem;
}

/* ==========================================================================
   PROFILE CARDS & GRIDS
   ========================================================================== */
.section-padding {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .profiles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .profiles-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .profiles-grid { grid-template-columns: repeat(4, 1fr); }
}

.profile-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.profile-img-wrap {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  background: var(--navy-light);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-card:hover .profile-img {
  transform: scale(1.04);
}

.profile-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.shortlist-btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.shortlist-btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: scale(1.1);
}
.shortlist-btn.active {
  color: var(--primary);
  background: var(--primary-subtle);
}

.profile-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.profile-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.85rem;
  color: var(--navy-muted);
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-meta-icon {
  color: var(--primary);
  font-size: 0.95rem;
  width: 16px;
  text-align: center;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   MULTI-STEP REGISTRATION WIZARD
   ========================================================================== */
.wizard-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 2rem auto;
  overflow: hidden;
}

.wizard-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1e1b4b 100%);
  color: #ffffff;
  padding: 1.75rem 2rem;
  text-align: center;
  position: relative;
}

.wizard-step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  position: relative;
}

.wizard-progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%);
  z-index: 1;
}

.wizard-progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.wizard-step-pill {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-light);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.wizard-step-pill.active {
  background: var(--primary);
  border-color: #ffffff;
  box-shadow: 0 0 12px var(--primary);
}

.wizard-step-pill.done {
  background: var(--success);
  border-color: #ffffff;
}

.wizard-body {
  padding: 2rem;
}

.wizard-step-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}
.wizard-step-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chips-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.chip-btn {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border-color);
  background: var(--bg-page);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-muted);
  cursor: pointer;
  transition: var(--transition);
}
.chip-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}
.chip-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

.photo-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  background: var(--bg-page);
  cursor: pointer;
  transition: var(--transition);
}
.photo-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.photo-preview-grid {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.photo-preview-box {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--primary);
}

/* ==========================================================================
   MEMBER DASHBOARD
   ========================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 320px 1fr;
  }
}

.sidebar-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dash-user-profile {
  text-align: center;
}

.dash-user-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.dash-stat-box {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
  border: 1px solid var(--border-light);
}

.dash-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.dash-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-menu-item a, .dash-menu-item button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-muted);
  width: 100%;
  text-align: left;
  transition: var(--transition);
}
.dash-menu-item a:hover, .dash-menu-item button:hover, .dash-menu-item.active a {
  background: var(--primary-subtle);
  color: var(--primary);
}

/* ==========================================================================
   CHAT & MESSAGING
   ========================================================================== */
.chat-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  height: 620px;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

@media (min-width: 768px) {
  .chat-container {
    grid-template-columns: 300px 1fr;
  }
}

.chat-thread-list {
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-page);
}

.chat-thread-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  font-weight: 700;
}

.thread-items-wrap {
  flex: 1;
  overflow-y: auto;
}

.thread-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  background: #ffffff;
  transition: var(--transition);
}
.thread-item:hover, .thread-item.active {
  background: var(--primary-subtle);
}

.thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.thread-info {
  flex: 1;
  min-width: 0;
}

.thread-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}

.chat-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages-area {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fdfefe;
}

.chat-msg {
  max-width: 75%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.4;
  position: relative;
}

.msg-incoming {
  align-self: flex-start;
  background: var(--bg-page);
  color: var(--navy);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.msg-outgoing {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary) 0%, #be123c 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

.chat-input-bar {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
}

.chat-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  outline: none;
}
.chat-input:focus {
  border-color: var(--primary);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalScale 0.25s ease;
  position: relative;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  color: var(--navy);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

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

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0.75rem;
}
.mob-nav-item.active {
  color: var(--primary);
}
.mob-nav-icon {
  font-size: 1.25rem;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .toast-container { bottom: 1.5rem; }
}

.toast {
  pointer-events: auto;
  background: var(--navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 4px solid var(--primary);
  animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--navy-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--navy-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-light);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}
