/* ==========================================================================
   Devang Matrimony — Portal Design System
   Ported from the approved static prototype (docs/prototype/assets/css).
   Keep in sync with that prototype until it is retired.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Brand palette — derived from the Devang DM monogram */
  --maroon-900: #300910;
  --maroon-800: #430d18;
  --maroon-700: #591322;
  --maroon-600: #7a1f33;
  --maroon-500: #91293f;
  --maroon-400: #a9364c;
  --maroon-100: #f6e7ea;

  --gold-700: #8f6e22;
  --gold-600: #ac8a2e;
  --gold-500: #c6a03c;
  --gold-400: #d8ba65;
  --gold-300: #e8d394;
  --gold-100: #f8efd9;

  --cream-50: #fefcf8;
  --cream-100: #fbf5ea;
  --cream-200: #f5ead6;

  --white: #ffffff;
  --ink: #2a1319;
  --ink-soft: #6b4c52;
  --border-soft: #e9dcc6;

  --success: #2f7a4f;
  --danger: #b3402f;

  /* Typography */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-accent: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii & shadows */
  --radius-sm: 0.5rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.4rem;
  --radius-xl: 2rem;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(48, 9, 16, 0.08);
  --shadow-md: 0 8px 24px rgba(48, 9, 16, 0.1);
  --shadow-lg: 0 20px 48px rgba(48, 9, 16, 0.16);
  --shadow-gold: 0 10px 30px rgba(198, 160, 60, 0.25);

  --container-width: 1200px;
}

/* -------------------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--maroon-700);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.font-accent {
  font-family: var(--font-accent);
  font-style: italic;
}

/* -------------------------------------------------------------------------
   3. Layout Helpers
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-cream {
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 100%);
}

.section-maroon {
  background: linear-gradient(160deg, var(--maroon-800) 0%, var(--maroon-600) 55%, var(--maroon-900) 100%);
  color: var(--cream-100);
}

.section-maroon h2,
.section-maroon h3 {
  color: var(--cream-50);
}

.section-maroon p {
  color: rgba(251, 245, 234, 0.78);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.split-2col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split-2col.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.hero-badge-card {
  position: absolute;
  left: -1.5rem;
  bottom: 1.75rem;
}

/* Generic content+sidebar split grid — ratio set inline per use, but always
   collapses to a single column on tablet/mobile regardless of that ratio. */
.split-sidebar {
  display: grid;
  align-items: start;
}

.flex {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-center {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-500);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head.align-left {
  margin: 0 0 3rem;
}

.divider-ornament {
  width: 1px;
  height: 2rem;
  background: linear-gradient(180deg, transparent, var(--gold-500), transparent);
}

/* -------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon-800));
  color: var(--cream-50);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--maroon-900);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  border-color: var(--maroon-600);
  color: var(--maroon-600);
}

.btn-outline:hover {
  background: var(--maroon-100);
}

.btn-outline-gold {
  background: transparent;
  border-color: var(--gold-400);
  color: var(--gold-300);
}

.btn-outline-gold:hover {
  background: rgba(198, 160, 60, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--maroon-600);
}

.btn-ghost:hover {
  background: var(--maroon-100);
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* -------------------------------------------------------------------------
   5. Header / Navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 252, 248, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

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

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--maroon-700);
}

.brand-word .sub {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--gold-600);
  margin-top: 0.15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--maroon-700);
}

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-dropdown-panel a:hover {
  background: var(--cream-100);
  color: var(--maroon-700);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--maroon-700);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream-50);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
  overflow-y: auto;
}

.mobile-nav.open {
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav .container {
  padding-top: 1.5rem;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--maroon-700);
}

.mobile-nav-links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
}

.mobile-nav-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* -------------------------------------------------------------------------
   6. Cards
   ------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-pad {
  padding: 2rem;
}

.icon-tile {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--maroon-100), var(--gold-100));
  color: var(--maroon-700);
  margin-bottom: 1.25rem;
}

/* Profile / member card */
.profile-card {
  overflow: hidden;
  position: relative;
}

.profile-card .photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

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

.profile-card:hover .photo-wrap img {
  transform: scale(1.06);
}

.profile-card .verified-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(42, 19, 25, 0.55);
  backdrop-filter: blur(4px);
  color: var(--gold-300);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.profile-card .body {
  padding: 1.25rem 1.35rem 1.5rem;
}

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

.profile-card .name-row h3 {
  margin: 0;
}

.profile-card .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.profile-card .actions {
  display: flex;
  gap: 0.6rem;
}

/* Event card */
.event-card {
  overflow: hidden;
}

.event-card .cover {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.event-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card .date-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--cream-50);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.8rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  line-height: 1.1;
}

.event-card .date-chip .day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--maroon-700);
  font-weight: 700;
}

.event-card .date-chip .month {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold-600);
  font-weight: 700;
}

.event-card .body {
  padding: 1.5rem;
}

.event-card .meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

/* Community card */
.community-card {
  padding: 1.75rem;
  text-align: center;
}

.community-card .logo-circle {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon-800));
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

/* Pricing card */
.pricing-card {
  padding: 2.25rem;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.pricing-card .ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--maroon-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--maroon-700);
  margin: 0.5rem 0 0.25rem;
}

.pricing-card .price span {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-weight: 500;
}

.pricing-card ul {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pricing-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.pricing-card ul li svg {
  color: var(--gold-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Stat card */
.stat-card {
  padding: 1.75rem;
  text-align: center;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--maroon-700);
  display: block;
}

.stat-card .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Empty state */
.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--cream-100);
}

.empty-state .icon-tile {
  margin: 0 auto 1.25rem;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--cream-200) 25%, var(--cream-100) 37%, var(--cream-200) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* -------------------------------------------------------------------------
   7. Badges
   ------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-gold {
  background: var(--gold-100);
  color: var(--gold-700);
}

.badge-maroon {
  background: var(--maroon-100);
  color: var(--maroon-700);
}

.badge-success {
  background: #e6f4ea;
  color: var(--success);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   8. Forms
   ------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.4rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--maroon-700);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(198, 160, 60, 0.18);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.otp-inputs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.otp-inputs input {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  color: var(--maroon-700);
}

.otp-inputs input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(198, 160, 60, 0.18);
}

.checkbox-row,
.radio-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.auth-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 2.75rem;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  align-items: stretch;
}

.auth-visual {
  position: relative;
  overflow: hidden;
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-visual .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(48, 9, 16, 0.1), rgba(48, 9, 16, 0.75));
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

/* -------------------------------------------------------------------------
   9. Navigation Tabs / Pills
   ------------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
}

.tabs a,
.tabs button {
  background: none;
  border: none;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tabs a.active,
.tabs button.active {
  color: var(--maroon-700);
  border-bottom-color: var(--gold-500);
}

.pill-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pill {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-soft);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.pill.active {
  background: var(--maroon-700);
  border-color: var(--maroon-700);
  color: var(--cream-50);
}

/* -------------------------------------------------------------------------
   10. Sidebar / Dashboard Shell
   ------------------------------------------------------------------------- */
.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 84px);
}

.dashboard-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border-soft);
  padding: 1.75rem 1.25rem;
}

.dashboard-sidebar .side-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}

.dashboard-sidebar .side-link:hover {
  background: var(--cream-100);
  color: var(--maroon-700);
}

.dashboard-sidebar .side-link.active {
  background: var(--maroon-100);
  color: var(--maroon-700);
}

.dashboard-main {
  padding: 2.25rem 2.5rem;
  background: var(--cream-50);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* -------------------------------------------------------------------------
   11. Timeline
   ------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-soft);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--cream-50);
  box-shadow: 0 0 0 2px var(--gold-500);
}

/* -------------------------------------------------------------------------
   12. Avatars
   ------------------------------------------------------------------------- */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-serif, inherit);
  letter-spacing: 0.02em;
}

.avatar-stack {
  display: flex;
}

.avatar-stack .avatar {
  margin-left: -0.9rem;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

/* -------------------------------------------------------------------------
   13. Testimonials
   ------------------------------------------------------------------------- */
.testimonial-card {
  padding: 2.25rem;
}

.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--gold-400);
  line-height: 1;
}

.testimonial-card .stars {
  color: var(--gold-500);
  margin-bottom: 0.75rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.testimonial-author .who .name {
  font-weight: 700;
  color: var(--maroon-700);
}

.testimonial-author .who .loc {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   14. Notifications / Toasts
   ------------------------------------------------------------------------- */
.notification-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--white);
  margin-bottom: 0.75rem;
}

.notification-item.unread {
  border-left: 3px solid var(--gold-500);
  background: var(--gold-100);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 400;
  background: var(--maroon-800);
  color: var(--cream-50);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* -------------------------------------------------------------------------
   15. Dialogs / Modals
   ------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 19, 25, 0.55);
  backdrop-filter: blur(2px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(160deg, var(--maroon-800) 0%, var(--maroon-600) 55%, var(--maroon-900) 100%);
  color: var(--cream-100);
  padding: 5rem 0 2rem;
}

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

.footer-col h4 {
  color: var(--gold-300);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(251, 245, 234, 0.75);
}

.footer-col a:hover {
  color: var(--gold-300);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-socials a {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(198, 160, 60, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
}

.footer-socials a:hover {
  background: var(--gold-500);
  color: var(--maroon-900);
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(198, 160, 60, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(251, 245, 234, 0.55);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(198, 160, 60, 0.2);
  font-size: 0.88rem;
  color: rgba(251, 245, 234, 0.75);
}

.footer-contact div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* -------------------------------------------------------------------------
   17. Page Header (interior pages)
   ------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(160deg, var(--maroon-800) 0%, var(--maroon-600) 55%, var(--maroon-900) 100%);
  color: var(--cream-50);
  padding: 4.5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: var(--gold-300);
  margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
  color: rgba(251, 245, 234, 0.7);
}

.page-hero h1 {
  color: var(--cream-50);
}

.page-hero p {
  color: rgba(251, 245, 234, 0.8);
  max-width: 560px;
  margin: 0 auto;
}

/* Coming soon placeholder block used on Phase 1 stub pages */
.coming-soon {
  max-width: 680px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  text-align: center;
}

.coming-soon .icon-tile {
  margin: 0 auto 1.5rem;
  width: 4rem;
  height: 4rem;
}

.coming-soon .phase-tag {
  margin-top: 1.75rem;
}

.related-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* -------------------------------------------------------------------------
   18. Animations
   ------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
}

.reveal.in-view {
  animation: fadeInUp 0.7s ease forwards;
}

.reveal-delay-1.in-view { animation-delay: 0.08s; }
.reveal-delay-2.in-view { animation-delay: 0.16s; }
.reveal-delay-3.in-view { animation-delay: 0.24s; }
.reveal-delay-4.in-view { animation-delay: 0.32s; }

/* -------------------------------------------------------------------------
   19. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-shell {
    grid-template-columns: 220px 1fr;
  }

  .auth-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-visual {
    min-height: 260px;
  }
}

@media (max-width: 860px) {
  .split-2col,
  .split-2col.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-sidebar {
    grid-template-columns: 1fr !important;
  }

  .hero-badge-card {
    left: 1rem;
    right: 1rem;
    max-width: none !important;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-main {
    padding: 1.5rem;
  }

  .input-group {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .otp-inputs input {
    width: 2.5rem;
    height: 3rem;
    font-size: 1.15rem;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   20. Sprint 2 additions — Alerts, Stepper, Spinner
   (Sprint 1 rules above are frozen; this section only appends new,
   additive component styles introduced for the Authentication &
   Registration experience.)
   ------------------------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  border: 1px solid transparent;
  margin-bottom: 1.5rem;
}

.alert-info {
  background: var(--cream-100);
  border-color: var(--border-soft);
  color: var(--ink);
}

.alert-success {
  background: #e6f4ea;
  border-color: rgba(47, 122, 79, 0.25);
  color: var(--success);
}

.alert-error {
  background: #fbe9e6;
  border-color: rgba(179, 64, 47, 0.25);
  color: var(--danger);
}

.stepper {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.stepper-step {
  flex: 1;
  text-align: center;
  min-width: 80px;
}

.stepper-circle {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--cream-200);
  color: var(--ink-soft);
}

.stepper-step.done .stepper-circle {
  background: var(--maroon-700);
  color: var(--cream-50);
}

.stepper-step.current .stepper-circle {
  background: var(--gold-100);
  color: var(--gold-700);
  border: 2px solid var(--gold-500);
}

.stepper-label {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.stepper-step.current .stepper-label {
  color: var(--maroon-700);
  font-weight: 700;
}

.spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.progress-track {
  height: 8px;
  border-radius: 99px;
  background: var(--cream-200);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
}

@media (max-width: 860px) {
  .stepper {
    flex-wrap: wrap;
  }

  .stepper-step {
    min-width: 30%;
  }
}

/* -------------------------------------------------------------------------
   21. Sprint 3 additions — Profile Management (read-only fields, tabs
   panels, photo manager tiles)
   (Sprint 1/2 rules above are frozen; this section only appends new,
   additive component styles introduced for the Profile Management
   experience.)
   ------------------------------------------------------------------------- */
.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.field-row:last-child {
  border-bottom: none;
}

.field-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field-value {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 640px) {
  .grid-4[data-photo-gallery] {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------------------
   22. Sprint 4 additions — Search & Discovery (member card list view,
   advanced filters disclosure, disabled pagination links)
   (Sprint 1-3 rules above are frozen; this section only appends new,
   additive component styles introduced for Search & Discovery.)
   ------------------------------------------------------------------------- */
.member-card-list {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.member-card-list .photo-wrap {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.member-card-list .body {
  flex: 1;
  min-width: 0;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.filter-disclosure {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.filter-disclosure summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--maroon-700);
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-disclosure summary::-webkit-details-marker {
  display: none;
}

.filter-disclosure[open] summary {
  margin-bottom: 1.25rem;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-toggle a {
  padding: 0.5rem 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
}

.view-toggle a.active {
  background: var(--maroon-700);
  color: var(--cream-50);
}

.recommend-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.recommend-row .profile-card {
  min-width: 280px;
  flex: 0 0 280px;
}

@media (max-width: 720px) {
  .member-card-list {
    flex-direction: column;
  }

  .member-card-list .photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}

/* -------------------------------------------------------------------------
   23. Sprint 5 additions — Communication & Engagement (messages,
   interests, notifications)
   (Sprint 1-4 rules above are frozen; this section only appends new,
   additive component styles introduced for Communication & Engagement.)
   ------------------------------------------------------------------------- */
.unread-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-full);
  background: var(--maroon-700);
  color: var(--cream-50);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Messages — two-panel shell */
.messages-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 32rem;
  height: 70vh;
  overflow: hidden;
}

.messages-panel-left {
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messages-panel-left .conversation-search {
  padding: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
}

.conversation-row:hover {
  background: var(--cream-100);
}

.conversation-row.active {
  background: var(--maroon-100);
}

.messages-panel-right {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messages-panel-right .chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--cream-100);
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.chat-message-row {
  display: flex;
  margin-bottom: 0.85rem;
}

.chat-message-row.received {
  justify-content: flex-start;
}

.chat-message-row.sent {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  background: var(--cream-100);
  color: var(--ink);
}

.chat-message-row.sent .chat-bubble {
  background: var(--maroon-700);
  color: var(--cream-50);
}

.chat-bubble-time {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  opacity: 0.7;
}

.chat-input-row {
  border-top: 1px solid var(--border-soft);
  padding: 1rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* Notifications */
.notification-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  margin-bottom: 0.6rem;
  background: var(--white);
}

.notification-row.unread {
  background: var(--maroon-50);
  border-color: var(--maroon-100);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--border-soft);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.75rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--maroon-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .messages-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .messages-panel-left {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    max-height: 16rem;
  }

  .messages-panel-right {
    min-height: 28rem;
  }
}
