.login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
  z-index: 100;
}

.login-modal {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 400px;
  max-width: 90%;
  transform: translateY(-20px);
  transition: transform 200ms;
}

.login-modal-backdrop.login-modal--visible {
  opacity: 1;
  pointer-events: auto;
}

.login-modal-backdrop.login-modal--visible .login-modal {
  transform: translateY(0);
}

.login-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.login-modal__head {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.login-modal__badge {
  font-size: 2rem;
  margin-right: 15px;
}

.login-modal__tagline {
  color: #666;
  margin: 0;
}

.login-modal__form label {
  display: block;
  margin: 10px 0 5px;
}

.login-modal__form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.login-modal__helpers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  font-size: 0.9rem;
}

.login-modal__actions {
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
}

.login-modal__links {
  text-align: center;
}

.login-modal__errors {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  margin-top: 10px;
}

/* Registration Modal Styles */
.login-modal-revamped {
  padding: 20px;
}

.login-modal-revamped .login-modal__head {
  text-align: center;
  margin-bottom: 25px;
}

.login-modal-revamped .form-group {
  margin-bottom: 15px;
}

.login-modal-revamped .btn-block {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

.login-modal-revamped .login-modal__footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.login-modal-revamped .login-modal__footer a {
  color: var(--brand-primary);
  text-decoration: none;
}
.reg-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
  z-index: 100;
}

.reg-modal {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 500px;
  max-width: 90%;
  transform: translateY(-20px);
  transition: transform 200ms;
}

.reg-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.reg-modal-backdrop.active .reg-modal {
  transform: translateY(0);
}

.reg-modal {
  max-height: 90vh;
  overflow-y: auto;
}

.reg-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reg-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
  position: relative;
  padding-bottom: 8px;
}

.reg-stepper-track {
  position: absolute;
  inset: 10px 14px;
  width: calc(100% - 28px);
  height: 10px;
  overflow: visible;
  pointer-events: none;
}

.reg-stepper-track line {
  stroke: #cbd5f5;
  stroke-width: 2;
  stroke-linecap: round;
}

.reg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #64748b;
  position: relative;
  z-index: 1;
}

.reg-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #1d4ed8;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.15);
}

.reg-step.active .reg-step-icon,
.reg-step.completed .reg-step-icon {
  background: #2563eb;
  color: #fff;
}

.reg-step.completed {
  color: #1d4ed8;
}

.reg-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.reg-panel.active {
  display: block;
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reg-input,
.reg-select {
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
}

.reg-select:focus,
.reg-input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.4);
  outline-offset: 1px;
}

.reg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.reg-actions .btn {
  min-width: 120px;
}

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.otp-input {
  text-align: center;
  font-size: 1.25rem;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  padding: 10px;
  background: #f8fafc;
}

.reg-alert {
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.reg-success {
  text-align: center;
}

.reg-summary {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.reg-summary span {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.reg-summary strong {
  color: #0f172a;
}

.reg-modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 18px;
  color: #475569;
}

@media (max-width: 640px) {
  .reg-modal {
    padding: 20px;
  }

  .reg-modal {
    width: min(92vw, 500px);
  }

  .reg-actions {
    justify-content: center;
  }

  .reg-summary {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background:var(--bg-primary);
  border:1px solid var(--border-light);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:18px;
}

/* Form controls */
.form-input, .form-select, input[type="text"], input[type="email"], input[type="password"], textarea {
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #e6eef6;
  font-family:inherit;
  font-size:0.98rem;
}

/* Utilities */
.container { width:1200px; max-width:95%; margin:0 auto; }

/* Ensure logo img in header is constrained */
.topbar .logo { height:40px; width:auto; display:block; }

/* Minor responsive adjustments */
@media (max-width:900px){
  h1{font-size:1.6rem;}
  .btn, .btn-primary, .btn-cta { padding:10px 12px; font-size:0.95rem; }
}
/* Improved stylesheet for the Tamil Matrimony clone - polished UI */

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #0f172a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout container */
.container { width: 1200px; max-width: 95%; margin: 0 auto; }

/* Topbar */
.topbar {
  background: #ffffff;
  border-bottom: 3px solid #2563eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.topbar .container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
}
.logo { height: 48px; }

/* Navigation */
.main-nav { display: flex; gap: 20px; align-items: center; margin-left: 12px; }
.main-nav a {
  color: #475569;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
}
.main-nav a:hover {
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
  transform: translateY(-1px);
}

/* Auth buttons */
.auth { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.btn:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btn.primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}
.btn.secondary {
  background: transparent;
  border-color: transparent;
  color: #2563eb;
}
.btn.secondary:hover {
  background: rgba(37, 99, 235, 0.1);
}

/* Hero */
.hero {
  padding: 48px 0 40px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}
.hero-left h1 {
  color: #2563eb;
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.hero-left p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
}

/* Card */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Forms */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
label {
  display: block;
  margin: 12px 0 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Matches & profile cards */
.matches-grid { display: grid; grid-template-columns: 320px 1fr; gap: 28px; margin-top: 28px; }

/* Enhanced left filter panel styling to match provided design */
.left-panel {
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e6f0ee;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

/* Filter sections grouped like cards */
.left-panel .filter-group {
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfffe);
  border: 1px solid #f0f6f5;
}

/* Sidebar nav items styled like the example */
.left-panel .sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  transition: all 0.15s ease;
}
.left-panel .sidebar-item:hover {
  background: #f1faf8;
  color: #0f172a;
  transform: translateX(4px);
}
.left-panel .sidebar-item .icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg,#eefaf6,#e6f7f1);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#10b981;
  font-size:16px;
  flex-shrink:0;
}

/* Active sidebar item */
.left-panel .sidebar-item.active {
  background: linear-gradient(90deg, #ecfdf5, #e6fffa);
  border-left: 4px solid #10b981;
  color: #065f46;
  box-shadow: 0 3px 10px rgba(16,185,129,0.08);
}

/* Compact counts on the right of sidebar items */
.left-panel .sidebar-item .count {
  margin-left: auto;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* Profile card tweaks to match the example layout (bolder visuals) */
.profile-card {
  background: linear-gradient(180deg,#ffffff,#fcfdfe);
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #edf2f7;
  margin-bottom: 18px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 10px 36px rgba(2,6,23,0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: visible;
  min-height: 160px;
}
.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 56px rgba(2,6,23,0.12);
}

/* Ribbon / corner tag */
.profile-card .ribbon {
  position: absolute;
  left: 12px;
  top: 8px;
  background: #ec4899;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  font-weight:700;
  box-shadow: 0 6px 18px rgba(236,72,153,0.12);
}

/* Photo - framed & prominent */
.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: 0 20px 48px rgba(2,6,23,0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
  background: linear-gradient(180deg,#f9fafb,#ffffff);
}
.profile-photo:hover {
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 28px 72px rgba(2,6,23,0.18);
}

/* Meta area - bolder headings */
.profile-meta h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.2px;
}
.profile-meta .meta-row {
  color: #4b5563;
  font-size: 13px;
  margin-top:8px;
  line-height:1.4;
}
.profile-meta .badge-list { margin-top:10px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* Small status badges */
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:16px;
  font-size:12px;
  background:#eef2ff;
  color:#2563eb;
  border:1px solid rgba(37,99,235,0.08);
  font-weight:700;
}

/* Pill CTA / secondary small */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  color: #475569;
  margin-left: 8px;
  font-weight: 700;
  border: 1px solid #edf2f7;
}
.pill.green {
  background: linear-gradient(90deg,#ecfdf5,#e6fffa);
  color: #065f46;
  border: 1px solid #bbf7d0;
  font-weight:700;
}

/* Ensure meta content vertically aligns with the top of the photo and remove stray gaps */
.profile-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* align to the top so name sits aligned with top of image */
  gap: 8px;
  padding-left: 4px; /* small separation from image */
  min-width: 0; /* prevent overflow */
}

/* Remove accidental extra vertical spacing that made cards look sparse */
.match-card, .profile-card {
  align-items: flex-start; /* ensure content starts at top */
}

/* Tighter action placement so buttons sit closer to the profile meta (matches reference) */
.actions {
  margin-top: 10px;
  gap: 12px;
  align-items: center;
}

/* Actions - use rounded primary Send Interest button and smaller ghost don't show */
.actions { display: flex; gap: 10px; margin-top: 12px; align-items:center; }
.btn-outline {
  background: transparent;
  border: 1px solid #e6eef2;
  color: #475569;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight:600;
}
.btn-cta, .btn.primary {
  background: linear-gradient(90deg,#6d28d9,#a21caf);
  color: #fff;
  border-radius: 22px;
  padding: 8px 16px;
  font-weight:700;
  border: none;
  box-shadow: 0 6px 18px rgba(109,40,217,0.12);
}
.btn-cta:hover, .btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(109,40,217,0.16); }

/* Small meta / kicker on right */
.kicker { font-size: 12px; color: #6b7280; font-weight:600; }
.hint { color: #6b7280; }

/* Responsive tweaks keep left design compact on mobile */
@media (max-width: 1024px) {
  .matches-grid { grid-template-columns: 1fr; }
  .left-panel { order: 2; }
  .profile-card { flex-direction: row; }
}

/* Action buttons */
.actions { display: flex; gap: 12px; margin-top: 12px; }
.btn.ghost {
  background: transparent;
  border: 2px solid #e2e8f0;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn.ghost:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.05);
}

/* Dashboard */
.dashboard { display: grid; grid-template-columns: 280px 1fr; gap: 24px; margin-top: 24px; }
.small-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Messages layout */
.messages-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; margin-top: 24px; }
.conv-item {
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}
.conv-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #2563eb;
}

/* Dashboard specific card styles */
.dashboard-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-card-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.dashboard-card-item:hover {
  background: #eef2ff;
  border-color: var(--primary);
  transform: translateX(2px);
}

.dashboard-card-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.dashboard-card-item .placeholder-photo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
  flex-shrink: 0;
}

.dashboard-card-item-content {
  flex: 1;
  min-width: 0;
}

.dashboard-card-item-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-card-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dashboard-card-item .status-badge {
  margin-left: auto;
  flex-shrink: 0;
}

.dashboard-card-footer-link {
  display: block;
  text-align: right;
  margin-top: 12px;
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.dashboard-card-footer-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 24px 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Utilities */
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .matches-grid, .dashboard { grid-template-columns: 1fr; }
  .messages-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .topbar .container { padding: 12px 16px; }
}

@media (max-width: 768px) {
  .hero { padding: 32px 0 24px; }
  .hero-left h1 { font-size: 28px; }
  .profile-card { flex-direction: column; text-align: center; }
  .actions { justify-content: center; }
  .site-footer .container { flex-direction: column; gap: 12px; text-align: center; }
  
  /* Small empty state for dashboard cards */
  .empty-state-small {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px dashed var(--border-light);
    margin-top: 10px;
  }
}
/* ==== Register page shared styles moved from register.php ==== */
/* Layout helpers for the register grid */
.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 768px) {
  .register-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Form groups and width helpers */
.form-group.full-width { grid-column: 1 / -1; }
.form-group.full {
  display: flex;
  gap: 12px;
  align-items: center;
}
.form-group.full .btn, .form-group.full .register-btn {
  flex: 1;
}

/* Reusable button styles */
.btn-primary, .register-btn, .btn-primary:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms;
  box-shadow: 0 6px 18px rgba(102,126,234,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Secondary/ghost button */
.btn-secondary, .btn.ghost {
  background: transparent;
  color: #374151;
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms;
}
.btn-secondary:hover, .btn.ghost:hover { background: rgba(102,126,234,0.06); border-color: #dbeafe; transform: translateY(-2px); }

/* Disabled state */
.btn-primary:disabled, .register-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Input micro-animations and polished focus state */
.form-input, .form-select {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  will-change: border-color, box-shadow;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.form-input:focus, .form-select:focus {
  transform: translateY(-1px);
  border-color: #667eea;
  box-shadow: 0 6px 18px rgba(102,126,234,0.08);
}

/* Error state visuals moved from inline */
.form-input.error, .form-select.error {
  border-color: #dc3545 !important;
  box-shadow: 0 6px 18px rgba(220,53,69,0.06) !important;
}

/* Inline error block (lightweight) */
.inline-error {
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 0.92em;
  border-radius: 8px;
  background: #fff5f5;
  color: #922;
  border: 1px solid #f5c2c7;
}

/* Password strength visual classes */
.password-strength {
  margin-top: 8px;
  font-size: 0.9em;
  transition: color 160ms ease, transform 160ms ease;
}
.password-strength.strength-weak { color: #dc3545; transform: translateY(0); }
.password-strength.strength-medium { color: #d97706; transform: translateY(0); }
.password-strength.strength-strong { color: #16a34a; transform: translateY(0); }

/* Terms area polish */
.terms-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
}
.terms-text { font-size: 0.92em; color: #6b7280; line-height: 1.45; }
.terms-text a { color: #667eea; text-decoration: none; font-weight:600; }
.terms-text a:hover { text-decoration: underline; }

/* Small responsive helpers */
@media (max-width: 480px) {
  .btn-primary, .register-btn, .btn-secondary { padding: 12px 10px; font-size: 0.95rem; }
  .form-input, .form-select { padding: 12px 14px; }
}

/* subtle floating micro-animation for cards/buttons */
.revamp-float {
  transition: transform 250ms cubic-bezier(.2,.8,.2,1), box-shadow 250ms;
}
.revamp-float:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

/* Accessibility: ensure focus outlines are visible but subtle */
:focus {
  outline: none;
}
.form-input:focus-visible, .form-select:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible {
  box-shadow: 0 0 0 4px rgba(102,126,234,0.12);
  border-color: #5b7de6;
  border-width: 2px;
}

/* Small helper to center inline action links inside .form-group.full */
.form-group.full a { display:inline-flex; align-items:center; justify-content:center; }

/* Migration note: Classes added — update register.php to remove inline styles and use:
   - replace inline register-grid wrapper with class .register-grid
   - replace inline .form-group full-width/full with .form-group.full-width / .form-group.full
   - replace inline CTA buttons to use .btn-primary (or .register-btn) and .btn-secondary (or .btn.ghost)
*/ 
*/
/* ===== Homepage UI polish (hero, cards, CTAs) ===== */
/* Hero layout refinements to match register.php visual language */
.hero {
  padding: 72px 0;
  background: linear-gradient(135deg,#eef2ff 0%, #f8fafc 100%);
  color: #0f172a;
}
.hero .hero-grid { gap: 36px; align-items: center; }
.hero-left h1 { color: #0b5ed7; font-size: 42px; line-height:1.08; }
.hero-left p { color: #475569; font-size: 1.05rem; }

/* Right signup card uses existing .card styles with stronger elevation */
.hero-right {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #eef2f6;
  box-shadow: 0 12px 30px rgba(2,6,23,0.06);
}
.hero-right h2 { color: #0f172a; font-size: 1.4rem; margin-bottom: 20px; text-align:center; }

/* Form controls normalized to site inputs */
.signup-form input,
.signup-form select {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e6eef6;
  font-size: 0.98rem;
  background: #fff;
}
.signup-form button {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight:700;
  border:none;
  background: linear-gradient(135deg,#6d28d9,#a21caf);
  color:#fff;
  cursor:pointer;
  box-shadow: 0 8px 24px rgba(109,40,217,0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.signup-form button:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(109,40,217,0.16); }

/* Tighten stats / feature cards spacing */
.stat-card, .feature-card, .testimonial-card {
  border-radius: 12px;
  padding: 26px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.stat-card .stat-number { color: #0f172a; font-size: 2rem; }

/* CTA buttons unified */
.cta-btn-primary {
  background: #fff;
  color: #6d28d9;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight:700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.cta-btn-secondary {
  border: 2px solid rgba(255,255,255,0.9);
  color: #fff;
  padding: 12px 26px;
  border-radius: 12px;
}

/* Subtle entrance animation for hero card */
@keyframes liftIn {
  from { opacity:0; transform: translateY(6px) scale(0.995); }
  to { opacity:1; transform: translateY(0) scale(1); }
}
.hero-right { animation: liftIn 420ms cubic-bezier(.2,.9,.3,1) both; }

/* Make testimonial avatar consistent */
.testimonial-avatar { width:56px; height:56px; font-size:18px; }

/* Accessibility: larger focus ring for keyboard users */
:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(109,40,217,0.12) !important; }

/* Responsive tweaks */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap:28px; text-align:center; }
  .hero-right { margin: 0 auto; max-width: 460px; }
}
/* === Global header / footer / hero normalization (UI consistency) ===
   Applied across pages: topbar, hero sections, footers and spacing utilities.
   This complements existing tokens in [`assets/css/style.css`](assets/css/style.css:1).
*/

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 0 12px;
  z-index: 1000;
}

/* Logo sizing consistent across header */
.topbar .logo {
  height: 44px;
  width: auto;
  display: block;
}

/* Make auth buttons visually consistent */
.auth .btn-cta, .auth .btn-primary {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.auth .btn-outline {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* Hero normalization - consistent hero spacing & layout across pages */
.hero, .hero-accent {
  padding: 88px 0;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #f8fff6 0%, #f1fff2 100%);
}

/* Ensure hero grid uses consistent gap and max widths */
.hero-grid {
  gap: 36px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left column headline */
.hero-left h1 {
  font-size: 2.4rem;
  line-height: 1.12;
  margin-bottom: 12px;
  max-width: 700px;
}

/* Right column card (signup) consistent */
.hero-right.card,
.mod-card {
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-md);
}

/* Footer */
.site-footer {
  padding: 28px 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-light);
}

/* Section spacing helper */
.section {
  padding: 48px 0;
}

/* Utility: consistent inner container spacing */
.container { padding-left: 16px; padding-right: 16px; }

/* Buttons - subtle visual refinement for a professional look */
.btn-primary, .btn-cta {
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 24px rgba(16,185,129,0.08);
}

/* Smaller screens adjustments to maintain rhythm */
@media (max-width: 900px) {
  .hero, .hero-accent { padding: 56px 0; min-height: 360px; }
  .topbar { height: 56px; }
  .hero-left h1 { font-size: 1.6rem; }
  .container { padding-left: 12px; padding-right: 12px; }
}

/* Accessibility: focus state for interactive elements */
a:focus, button:focus, .form-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.12);
}

/* End of global normalization rules */
/* Hero tightening and visual polish overrides (reduce excessive vertical spacing,
   ensure consistent rounded feel and better rhythm between hero and following sections) */

.hero {
  padding-top: 28px !important;   /* reduced top space */
  padding-bottom: 28px !important; /* reduced bottom space */
  min-height: 260px;              /* keep a comfortable visual height */
  box-shadow: none;
}

.hero-grid {
  gap: 24px !important;           /* smaller horizontal gap between hero columns */
  align-items: center;
}

.hero-left { gap: 10px !important; } /* tighten headline -> subhead -> features spacing */

.hero-right.card {
  margin-top: 6px;
  border-radius: 14px;
  padding: 18px;
}

/* Reduce the big blank band between hero and next section */
.section, .stats-section {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

/* Make montage slightly smaller so it doesn't force extra vertical breathing room */
.hero-montage {
  max-width: 360px;
  margin-top: 6px;
}

/* Slightly reduce the default margin between major sections */
.container + .section, .hero + .section {
  margin-top: 12px;
}

/* Ensure cards have uniform rounded corners and consistent elevation */
.card, .mod-card, .hero-right.card {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.05);
}

/* Make hero feature chips compact */
.hero-left .feature-chip, .hero-left .feature-box {
  padding: 8px 12px;
  border-radius: 12px;
  gap: 8px;
  font-size: 0.95rem;
}

/* Responsive - keep tighter spacing on small screens */
@media (max-width: 900px) {
  .hero {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    min-height: auto;
  }
  .hero-grid { gap: 18px !important; }
  .hero-left h1 { font-size: 1.6rem; }
}

/* Accessibility: maintain comfortable focus ring but subtle */
:focus { outline: none; }
a:focus, button:focus, .form-input:focus { box-shadow: 0 0 0 4px rgba(16,185,129,0.12) !important; }

/* End hero tightening overrides */
/* ===== Page-specific hero + card fixes (small, targeted overrides) ===== */
/* Fix hero-accent spacing for pages such as interests.php and views.php */
.hero-accent {
  padding-top: 28px !important;
  padding-bottom: 16px !important;
  min-height: auto !important;
  margin-bottom: 12px !important;
}

/* Make view-card and interest-card match profile-card visuals used on matches page */
.view-card, .interest-card {
  background: linear-gradient(180deg,#ffffff,#fcfdfe);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #edf2f7;
  box-shadow: 0 10px 36px rgba(2,6,23,0.07);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 140px;
  margin-bottom: 18px;
}
.view-card:hover, .interest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 56px rgba(2,6,23,0.12);
}

/* Make view-photo use the same framed, prominent style as profile photos */
.view-photo {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: 0 20px 48px rgba(2,6,23,0.14);
  flex-shrink: 0;
  background: linear-gradient(180deg,#f9fafb,#ffffff);
}

/* Ensure the content column aligns to the top and mirrors profile-meta behavior */
.view-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

/* Tighten hero-grid spacing specifically for these pages (in case inline styles persist) */
.views-container .hero-grid,
.interests-container .hero-grid {
  gap: 16px !important;
  align-items: center;
  margin-bottom: 6px !important;
}

/* Reduce any large inline margin bands that some pages add */
.views-container .hero-accent,
.interests-container .hero-accent {
  padding-top: 18px !important;
  padding-bottom: 12px !important;
  min-height: auto !important;
}/* === Unified UI tokens & global header/button styles === */
:root {
  --brand-primary: #2563eb;
  --brand-primary-dark: #1d4ed8;
  --brand-accent: #f472b6;
  --brand-surface: #ffffff;
  --brand-muted: #64748b;
  --brand-border: rgba(148, 163, 184, 0.3);
  --brand-radius: 18px;
  --brand-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
  --brand-shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --font-base: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-base);
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
  line-height: 1.6;
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.topbar .container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand-primary);
  text-decoration: none;
}

.topbar .logo {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--brand-muted);
  transition: all 0.18s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.auth {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary,
.btn-cta {
  background: linear-gradient(135deg, var(--brand-primary), #9333ea);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 35px rgba(79, 70, 229, 0.22);
}

.btn-primary:hover,
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 45px rgba(79, 70, 229, 0.28);
}

.btn-outline,
.btn-secondary {
  background: transparent;
  color: var(--brand-primary);
  border-color: rgba(37, 99, 235, 0.3);
}

.btn-outline:hover,
.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--brand-primary);
}

.btn-ghost {
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--brand-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.08);
}

.card,
.sidebar-card,
.stat-card,
.mod-card {
  background: var(--brand-surface);
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow-soft);
}

.stat-card {
  padding: 18px;
  text-align: center;
}

.stat-card .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.stat-card .label {
  font-size: 0.95rem;
  color: var(--brand-muted);
  margin-top: 6px;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.1);
  color: var(--brand-muted);
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
}

.page-subtitle,
.hint {
  color: var(--brand-muted);
  font-size: 0.95rem;
}

/* === Responsive navigation + login modal overhaul === */
.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

.topbar {
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

.topbar .container {
  padding: 12px clamp(16px, 4vw, 32px);
  gap: 18px;
}

.topbar__menus {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 14px;
  background: #ffffff;
  padding: 8px;
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

.nav-toggle:focus-visible {
  box-shadow: 0 0 0 4px rgba(37,99,235,0.18);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .topbar__menus {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: rgba(15,23,42,0.96);
    padding: 96px 28px 40px;
    gap: 30px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 240ms ease, opacity 240ms ease;
    z-index: 1200;
  }
  .topbar__menus.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .topbar .main-nav {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-left: 0;
  }
  .topbar .main-nav a {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #f8fafc;
    font-size: 1.05rem;
  }
  .topbar .auth {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  .topbar .auth .btn-cta,
  .topbar .auth .btn-outline {
    width: 100%;
    justify-content: center;
  }
  body.nav-open { overflow: hidden; }
}

body.modal-open { overflow: hidden; }

.login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.78);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.login-modal-backdrop.login-modal--visible {
  opacity: 1;
  pointer-events: auto;
}

.login-modal {
  width: min(960px, 100%);
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 50px 120px rgba(15,23,42,0.28);
  overflow: hidden;
  transform: translateY(32px);
  transition: transform 320ms cubic-bezier(0.2,0.8,0.25,1);
  position: relative;
}

.login-modal-backdrop.login-modal--visible .login-modal {
  transform: translateY(0);
}

.login-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59,130,246,0.2), transparent 40%),
              radial-gradient(circle at bottom left, rgba(236,72,153,0.15), transparent 35%);
  z-index: 0;
  pointer-events: none;
}

.login-modal__panel { position: relative; }

.login-modal__close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #475569;
  cursor: pointer;
}

.login-modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px;
  z-index: 1;
}

.login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-modal__form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.login-modal__form input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 14px;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-modal__form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.login-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.login-modal__actions .btn-primary,
.login-modal__actions .btn-outline {
  flex: 1;
  border-radius: 14px;
}

.login-modal__links {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.login-modal__links a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
}

.login-modal__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-modal__badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ec4899, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 20px 40px rgba(236,72,153,0.28);
}

.login-modal__tagline {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

.login-modal__helpers {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.remember-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #475569;
}

.remember-checkbox input {
  width: 16px;
  height: 16px;
}

.login-modal__errors {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
  color: #b91c1c;
  padding: 14px 16px;
  font-size: 0.92rem;
}

.login-modal__errors ul { margin: 0; padding-left: 18px; }

@media (max-width: 960px) {
  .login-modal { width: min(560px, 100%); }
}

@media (max-width: 540px) {
  .login-modal { border-radius: 20px; }
  .login-modal__content { padding: 32px 20px; }
  .login-modal__actions { flex-direction: column; }
  .login-modal__links { flex-direction: column; gap: 6px; }
}

.login-modal__close:focus-visible {
  box-shadow: 0 0 0 4px rgba(248,250,252,0.6);
  border-radius: 50%;
}

/* ==== Additional responsive polish ==== */
.home-hero .container { gap: clamp(24px, 4vw, 48px); }
.hero-badges { flex-wrap: wrap; }
.hero-card ul { padding-left: 18px; }

.stats-row, .vibe-grid, .stories-grid, .journey-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 900px) {
  .home-hero .container { grid-template-columns: 1fr; }
  .hero-heading { font-size: clamp(2rem, 6vw, 2.8rem); }
  .hero-text { font-size: 1rem; }
  .hero-card { width: 100%; }
  .preview-chip { flex-direction: column; align-items: flex-start; }
  .section { padding: clamp(48px, 10vw, 64px) 0; }
  .section-heading h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
  .stats-row, .vibe-grid, .journey-steps, .stories-grid { gap: 24px; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 12px; }
  .topbar .container { gap: 12px; }
  .nav-toggle { display: flex; }
  .topbar__menus { padding: 84px 22px 32px; }
  .hero-badges { flex-direction: column; align-items: flex-start; }
  .login-modal__content { padding: 32px 20px; }
  .login-modal__actions .btn { font-size: 0.9rem; }
}
