.matrimony-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 800;
}
.text-button {
  padding: 10px 15px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  font-weight: 800;
}
.text-button-secondary {
  color: var(--primary);
  border: 1px solid var(--primary);
  background: #fffaf3;
}
.brand-with-logo {
  gap: 11px;
}
.brand-with-logo > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.matrimony-hero {
  position: relative;
  padding: clamp(58px, 7vw, 92px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(211, 155, 60, 0.2), transparent 25%),
    radial-gradient(circle at 92% 5%, rgba(113, 31, 35, 0.14), transparent 32%),
    linear-gradient(135deg, #fffaf3 0%, #f4e8d8 52%, #ead8bf 100%);
}
.signed-in .matrimony-hero {
  display: none;
}
.member-dashboard {
  padding: 38px 0;
  color: #fffaf3;
  background:
    radial-gradient(circle at 90% 0, rgba(217, 164, 65, 0.25), transparent 28%),
    linear-gradient(120deg, #4c1420, #792735);
}
.member-dashboard-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.dashboard-welcome {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 15px;
  align-items: center;
}
.dashboard-check {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #4d3110;
  border-radius: 17px;
  background: #e6ba63;
  font-size: 1.25rem;
  font-weight: 900;
}
.dashboard-welcome p,
.dashboard-welcome h1,
.dashboard-welcome span {
  margin: 0;
}
.dashboard-welcome p {
  color: #edc978;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.dashboard-welcome h1 {
  margin: 2px 0 3px;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}
.dashboard-welcome span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}
.dashboard-actions {
  display: flex;
  gap: 9px;
}
.member-dashboard .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: transparent;
}
.matrimony-hero:after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(121, 39, 53, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(211, 155, 60, 0.05),
    0 0 0 76px rgba(121, 39, 53, 0.035);
}
.matrimony-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.8fr);
  align-items: center;
  gap: clamp(36px, 5vw, 70px);
}
.matrimony-hero-copy {
  max-width: 690px;
}
.matrimony-hero h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  line-height: 1.08;
}
.matrimony-hero h1 em {
  color: var(--primary);
  font-style: normal;
}
.demo-notice {
  max-width: 720px;
  margin-top: 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.86rem;
}
.privacy-visual {
  position: relative;
  margin: 0;
  width: min(100%, 560px);
  justify-self: end;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.privacy-visual-frame {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(107, 33, 30, 0.16);
  border-radius: 42px 42px 18px 18px;
  background: rgba(255, 250, 243, 0.78);
  box-shadow: 0 30px 70px rgba(78, 37, 17, 0.18);
}
.privacy-visual-frame:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px 38px 45%;
  border: 2px solid rgba(194, 140, 47, 0.35);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.privacy-visual-frame > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 56% 42%;
  border-radius: 32px 32px 11px 11px;
  filter: saturate(0.92) contrast(1.02);
}
.visual-ornament {
  position: absolute;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 247, 230, 0.8);
  border-radius: 50%;
  background: rgba(109, 32, 34, 0.8);
  box-shadow: inset 0 0 0 8px rgba(211, 155, 60, 0.25);
}
.visual-ornament-one {
  top: -18px;
  right: 44px;
}
.visual-ornament-two {
  bottom: 56px;
  left: -21px;
  width: 42px;
  height: 42px;
  background: rgba(194, 140, 47, 0.9);
}
.privacy-visual figcaption {
  position: relative;
  z-index: 3;
  margin: -34px 7% 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: center;
  padding: 15px 18px;
  color: var(--ink);
  border: 1px solid rgba(107, 33, 30, 0.12);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.97);
  box-shadow: 0 18px 38px rgba(78, 37, 17, 0.14);
}
.privacy-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #5c1f11;
  background: var(--gold-soft);
  font-size: 0.82rem;
}
.privacy-visual h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: 1.15rem;
  line-height: 1.25;
}
.privacy-visual p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}
.matrimony-language {
  position: static !important;
  margin: 0;
  background: rgba(255, 250, 243, 0.92);
}
.matrimony-language .lang-option {
  min-width: 64px;
}
.status-banner {
  padding: 15px 0;
  color: #4b2b00;
  background: #ffe2a8;
  border-block: 1px solid #e5b352;
}
.status-banner .container {
  display: flex;
  gap: 16px;
  align-items: center;
}
.directory {
  background: #fffaf3;
}
.directory-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 38px;
  align-items: start;
}
.filters {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 12px 40px rgba(83, 39, 17, 0.07);
}
.filter-heading,
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.filter-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}
.filter-heading button,
.pagination button {
  padding: 4px;
  color: var(--primary);
  border: 0;
  background: none;
  font-weight: 800;
}
.filters label {
  display: grid;
  gap: 5px;
  color: #513d34;
  font-size: 0.8rem;
  font-weight: 800;
}
.filters input:not([type="radio"]),
.filters select,
dialog input:not([type="checkbox"]),
dialog select,
dialog textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
}
.filters fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.filters legend {
  width: 100%;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
}
.filters fieldset label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.compact-fields,
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.results-heading {
  margin-bottom: 22px;
}
.results-heading h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}
.results-heading .eyebrow {
  margin-bottom: 5px;
}
.access-pill {
  padding: 7px 12px;
  color: var(--primary);
  border: 1px solid rgba(154, 52, 18, 0.2);
  border-radius: 999px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.profile-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(83, 39, 17, 0.09);
  transition: 0.2s;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(83, 39, 17, 0.13);
}
.profile-card:focus-within {
  outline: 3px solid rgba(154, 52, 18, 0.2);
  outline-offset: 3px;
}
.profile-photo {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-warm);
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.profile-card:hover .profile-photo img {
  transform: scale(1.025);
}
.profile-photo .demo-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  color: #fff;
  border-radius: 99px;
  background: rgba(36, 16, 12, 0.78);
  font-size: 0.65rem;
  font-weight: 900;
}
.profile-photo .verified {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  color: #215b38;
  border-radius: 99px;
  background: #e5f6e9;
  font-size: 0.68rem;
  font-weight: 900;
}
.profile-copy {
  padding: 19px;
}
.profile-copy h3 {
  margin: 0;
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: 1.35rem;
}
.profile-id {
  margin: 2px 0 13px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}
.profile-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}
.profile-facts div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #f0e2d0;
  border-radius: 10px;
  background: #fdf8f1;
}
.profile-facts dt {
  color: var(--muted);
  font-size: 0.65rem;
}
.profile-facts dd {
  margin: 1px 0 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-summary {
  display: -webkit-box;
  min-height: 44px;
  margin: 13px 0;
  color: var(--muted);
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}
.card-actions .button {
  min-height: 36px;
  flex: 1;
  padding: 8px 10px;
  font-size: 0.75rem;
}
.api-message {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 10px;
  background: #fff0cc;
}
.empty-state {
  padding: 70px 25px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}
.pagination button:disabled {
  color: #aaa;
  cursor: not-allowed;
}
.safety-section {
  color: #fff8ed;
  background:
    radial-gradient(
      circle at 5% 10%,
      rgba(217, 164, 65, 0.14),
      transparent 25%
    ),
    linear-gradient(135deg, #2d130d, #491b1c);
}
.safety-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(35px, 6vw, 80px);
}
.safety-grid h2 {
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.15;
}
.safety-grid a {
  color: #f5d58d;
  text-decoration: underline;
}
.safety-intro > p:not(.eyebrow) {
  color: rgba(255, 248, 237, 0.76);
  font-size: 1rem;
  line-height: 1.7;
}
.safety-alert {
  display: grid;
  gap: 5px;
  margin-top: 26px;
  padding: 17px 18px;
  border: 1px solid rgba(245, 213, 141, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}
.safety-alert strong {
  color: #f5d58d;
}
.safety-alert span {
  color: rgba(255, 248, 237, 0.78);
  font-size: 0.85rem;
  line-height: 1.55;
}
.safety-content h3 {
  margin: 0 0 18px;
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: 1.45rem;
}
.safety-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.safety-checklist li {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 15px 15px 15px 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}
.safety-checklist li:before {
  content: "✓";
  position: absolute;
  top: 15px;
  left: 15px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #38200e;
  border-radius: 50%;
  background: #f5d58d;
  font-size: 0.7rem;
  font-weight: 900;
}
.safety-checklist span {
  color: rgba(255, 248, 237, 0.68);
  font-size: 0.78rem;
  line-height: 1.5;
}
.safety-footer {
  grid-column: 1 / -1;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.safety-footer p {
  max-width: 1050px;
  color: rgba(255, 248, 237, 0.74);
  line-height: 1.65;
}
.compact-footer {
  padding-top: 20px;
}
.compact-footer .footer-bottom {
  margin-top: 0;
}
dialog {
  width: min(94vw, 620px);
  max-height: 90vh;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--ink);
  background: #fffaf3;
  box-shadow: 0 35px 100px rgba(31, 11, 5, 0.4);
  overflow: auto;
}
dialog#profile-dialog {
  width: min(94vw, 820px);
}
dialog::backdrop {
  background: rgba(36, 16, 12, 0.7);
  backdrop-filter: blur(5px);
}
dialog.dialog-fallback[open] {
  position: fixed;
  z-index: 2000;
  inset: 5vh auto auto 50%;
  display: block;
  transform: translateX(-50%);
}
.dialog-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f0dfcf;
  font-size: 1.5rem;
}
.dialog-tabs {
  display: flex;
  gap: 5px;
  margin: 0 50px 24px 0;
  padding: 4px;
  border-radius: 999px;
  background: #f2e5d7;
}
.dialog-tabs button {
  flex: 1;
  padding: 9px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-weight: 800;
}
.dialog-tabs button.active {
  color: #fff;
  background: var(--primary);
}
dialog form {
  display: grid;
  gap: 15px;
}
.forgot-password-link,
.auth-back {
  margin-top: 14px;
  padding: 5px 0;
  color: var(--primary);
  border: 0;
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-back {
  margin: 0 0 12px;
  text-decoration: none;
}
.forgot-password-link:hover,
.auth-back:hover {
  color: #4c1420;
}
dialog form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}
dialog textarea {
  min-height: 90px;
  resize: vertical;
}
.consents {
  display: grid;
  gap: 9px;
  padding: 13px;
  border-radius: 10px;
  background: #f5eadc;
}
.consents label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
}
.form-message {
  margin: 0 0 18px;
  padding: 13px 15px;
  color: #5b240d;
  border: 1px solid #e5bd78;
  border-radius: 11px;
  background: #fff1cf;
  font-weight: 800;
  line-height: 1.45;
}
.form-message.is-error {
  color: #7d1c1c;
  border-color: #e2a3a3;
  background: #fff0f0;
}
.form-message.is-success {
  color: #185a32;
  border-color: #98cfaa;
  background: #eaf8ef;
}
.site-toast {
  position: fixed;
  z-index: 3000;
  top: 88px;
  left: 50%;
  width: min(calc(100% - 30px), 520px);
  padding: 15px 18px;
  color: #fff;
  border-radius: 12px;
  background: #205c36;
  box-shadow: 0 18px 50px rgba(30, 12, 8, 0.28);
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}
.site-toast.is-error {
  background: #8a2525;
}
.profile-detail-hero {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 25px;
  align-items: center;
}
.profile-detail-hero img {
  width: 230px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
}
.detail-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.detail-section {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.detail-section h3 {
  margin-top: 0;
}
.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  font-weight: 700;
}
.pending-lock {
  padding: 18px;
  border-radius: 12px;
  background: #fff0cc;
}
.hidden {
  display: none !important;
}
@media (max-width: 1050px) {
  .matrimony-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  }
  .matrimony-nav a {
    display: none;
  }
}
@media (max-width: 780px) {
  .matrimony-hero {
    padding: 55px 0;
  }
  .member-dashboard-inner,
  .dashboard-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .matrimony-hero-grid,
  .directory-layout,
  .safety-grid {
    grid-template-columns: 1fr;
  }
  .directory-layout {
    gap: 22px;
  }
  .filters {
    position: static;
  }
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .privacy-visual {
    width: min(100%, 540px);
    justify-self: center;
  }
  .safety-footer {
    grid-column: auto;
  }
  .status-banner .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .detail-sections {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .container {
    width: min(calc(100% - 26px), var(--container));
  }
  .brand {
    min-width: 0;
  }
  .brand strong {
    display: none;
  }
  .matrimony-nav {
    margin-left: auto;
    gap: 4px;
  }
  .matrimony-language .lang-option {
    min-width: 48px;
    min-height: 32px;
    padding: 5px 7px;
    font-size: 0.68rem;
  }
  .brand small,
  .matrimony-nav a {
    display: none;
  }
  .matrimony-nav {
    gap: 5px;
  }
  .text-button {
    padding: 8px 10px;
    font-size: 0.72rem;
  }
  .matrimony-hero h1 {
    font-size: 2.55rem;
  }
  .privacy-visual-frame {
    padding: 8px;
    border-radius: 26px 26px 14px 14px;
  }
  .privacy-visual-frame > img {
    border-radius: 20px 20px 9px 9px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .compact-fields,
  .form-grid,
  .profile-detail-hero {
    grid-template-columns: 1fr;
  }
  .profile-detail-hero img {
    width: 100%;
    max-height: 350px;
  }
  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  dialog {
    padding: 20px;
  }
  .safety-grid {
    gap: 15px;
  }
  .safety-checklist {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-card {
    transition: none;
  }
}
.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.privacy-actions button {
  padding: 8px 11px;
  color: #fff8ed;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
}
.privacy-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
}
#editor-dialog {
  width: min(96vw, 900px);
}
#editor-dialog fieldset {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
#editor-dialog hr {
  margin: 25px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.admin-table-wrap {
  overflow: auto;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table-wrap th,
.admin-table-wrap td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table-wrap small {
  display: block;
  color: var(--muted);
}
.admin-table-wrap button {
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}
.admin-list {
  display: grid;
  gap: 8px;
  margin-bottom: 40px;
}
.admin-list article {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.admin-list time {
  color: var(--muted);
}

/* Professional matrimony visual system */
body {
  background: #fcf9f3;
}
.container {
  width: min(calc(100% - 56px), 1400px);
}
.site-header {
  height: 86px;
  border-bottom: 1px solid rgba(88, 42, 36, 0.1);
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(20px);
}
.brand-with-logo > img {
  width: 54px;
  height: 54px;
}
.brand strong {
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: 1.08rem;
}
.matrimony-nav {
  gap: 27px;
  font-size: 0.9rem;
}
.matrimony-nav > a {
  position: relative;
}
.matrimony-nav > a:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.matrimony-nav > a:hover:after,
.matrimony-nav > a:focus-visible:after {
  transform: scaleX(1);
}
.text-button {
  min-width: 116px;
  padding: 11px 21px;
  border: 1px solid var(--primary);
  border-radius: 999px;
}
.text-button-secondary {
  background: transparent;
}
.matrimony-language {
  border-color: rgba(107, 31, 42, 0.2);
  box-shadow: none;
}
.matrimony-hero {
  min-height: 760px;
  padding: 64px 0 72px;
  background:
    radial-gradient(
      circle at 54% 29%,
      rgba(217, 164, 65, 0.1),
      transparent 23%
    ),
    radial-gradient(
      circle at 96% 82%,
      rgba(107, 31, 42, 0.055),
      transparent 25%
    ),
    linear-gradient(110deg, #fffdf9 0%, #fbf7ef 60%, #f7f0e4 100%);
}
.matrimony-hero:before {
  content: "";
  position: absolute;
  top: 110px;
  left: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(217, 164, 65, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(217, 164, 65, 0.035),
    0 0 0 64px rgba(107, 31, 42, 0.025);
}
.matrimony-hero:after {
  right: -120px;
  bottom: -210px;
  width: 520px;
  height: 520px;
}
.matrimony-hero-grid {
  grid-template-columns: minmax(470px, 0.9fr) minmax(620px, 1.1fr);
  gap: clamp(42px, 5vw, 88px);
}
.matrimony-hero-copy {
  max-width: 660px;
}
.hero-eyebrow {
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.matrimony-hero h1 {
  color: #281d1d;
  font-size: clamp(3.4rem, 5.2vw, 5.65rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.01;
}
.matrimony-hero h1 em {
  color: #792735;
}
.hero-divider {
  position: relative;
  width: 168px;
  height: 18px;
  margin: 25px 0 14px;
  color: var(--gold);
  text-align: center;
}
.hero-divider:before,
.hero-divider:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 71px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(217, 164, 65, 0.15));
}
.hero-divider:before {
  left: 0;
}
.hero-divider:after {
  right: 0;
  transform: rotate(180deg);
}
.hero-divider span {
  font-size: 0.52rem;
}
.matrimony-hero .hero-lead {
  max-width: 570px;
  margin: 0;
  color: #675d5b;
  font-size: 1.05rem;
  line-height: 1.65;
}
.matrimony-hero .hero-actions {
  margin-top: 27px;
  gap: 15px;
}
.matrimony-hero .hero-actions .button {
  min-width: 205px;
  min-height: 55px;
  justify-content: space-between;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 0.92rem;
}
.matrimony-hero .hero-actions .button span {
  font-size: 1.35rem;
  font-weight: 400;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: max-content;
  margin-top: 39px;
}
.hero-trust div {
  display: grid;
  grid-template-columns: 43px auto;
  gap: 11px;
  align-items: center;
  min-width: 160px;
  padding-right: 22px;
}
.hero-trust div + div {
  padding-left: 22px;
  border-left: 1px solid rgba(107, 31, 42, 0.13);
}
.hero-trust div > span {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #8a6425;
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 50%;
  background: #fffdf8;
}
.hero-trust strong {
  color: #665d5a;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}
.privacy-visual {
  width: min(100%, 720px);
  height: 610px;
}
.privacy-visual-frame {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.privacy-visual-frame:before {
  inset: 22px 21% auto;
  height: 180px;
  border-color: rgba(217, 164, 65, 0.2);
}
.portrait-card {
  position: absolute;
  overflow: hidden;
  padding: 8px;
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(70, 43, 31, 0.18);
}
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.portrait-card-bride {
  z-index: 2;
  top: 89px;
  left: 9px;
  width: 365px;
  height: 488px;
  transform: rotate(-4deg);
}
.portrait-card-bride img {
  object-position: 38% center;
}
.portrait-card-groom {
  z-index: 1;
  top: 24px;
  right: 12px;
  width: 350px;
  height: 465px;
  transform: rotate(4deg);
}
.portrait-card-groom img {
  object-position: 76% center;
}
.verified-profile {
  position: absolute;
  right: 22px;
  bottom: 25px;
  padding: 10px 14px;
  color: var(--primary);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 10px 26px rgba(54, 30, 24, 0.14);
  font-size: 0.71rem;
  font-weight: 900;
}
.portrait-sparkle {
  position: absolute;
  z-index: 5;
  top: 81px;
  left: -10px;
  color: var(--gold);
  font-size: 2.5rem;
}
.privacy-visual figcaption {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 7px;
  width: 335px;
  margin: 0;
  padding: 21px 23px;
  border-color: rgba(217, 164, 65, 0.35);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.98);
}
.privacy-visual h2 {
  color: var(--primary);
  font-size: 1rem;
}
.privacy-visual p {
  font-size: 0.78rem;
}
.directory {
  padding-block: 90px;
  background:
    linear-gradient(rgba(217, 164, 65, 0.025) 1px, transparent 1px), #fbf7f0;
  background-size: 100% 80px;
}
.directory-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 45px;
}
.filters {
  padding: 26px;
  border-color: rgba(107, 31, 42, 0.11);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(72, 31, 37, 0.08);
}
.filters input:not([type="radio"]),
.filters select,
dialog input:not([type="checkbox"]),
dialog select,
dialog textarea {
  border-color: rgba(107, 31, 42, 0.16);
  border-radius: 10px;
  background: #fffdfa;
}
.results-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(107, 31, 42, 0.1);
}
.results-heading h2 {
  color: #302020;
  font-weight: 600;
}
.access-pill {
  padding: 9px 14px;
  border-color: rgba(217, 164, 65, 0.42);
  background: #fffdf8;
}
.profile-grid {
  gap: 25px;
}
.profile-card {
  border-color: rgba(107, 31, 42, 0.1);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(72, 31, 37, 0.085);
}
.profile-copy {
  padding: 21px;
}
.profile-photo {
  aspect-ratio: 16 / 9;
}
.profile-photo .demo-tag {
  background: rgba(86, 24, 34, 0.9);
}
.profile-photo .verified {
  color: #6b1f2a;
  border: 1px solid rgba(217, 164, 65, 0.3);
  background: rgba(255, 252, 247, 0.95);
}
.profile-photo .demo-profile-image {
  transform: scale(1.72);
}
.profile-photo .demo-profile-image.demo-bride {
  transform-origin: 39% 52%;
}
.profile-photo .demo-profile-image.demo-groom {
  transform-origin: 76% 46%;
}
.profile-card:hover .profile-photo .demo-profile-image {
  transform: scale(1.78);
}
.profile-detail-photo {
  width: 230px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-warm);
}
.profile-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-detail-photo .demo-profile-image {
  transform: scale(1.55);
}
.profile-detail-photo .demo-bride {
  transform-origin: 39% 50%;
}
.profile-detail-photo .demo-groom {
  transform-origin: 76% 46%;
}
.profile-facts div {
  background: #fcf8f1;
}
.safety-section {
  padding-block: 88px;
  background:
    radial-gradient(circle at 9% 8%, rgba(217, 164, 65, 0.14), transparent 23%),
    linear-gradient(125deg, #361217, #591d28);
}
.safety-checklist li,
.safety-alert {
  border-color: rgba(241, 216, 157, 0.2);
  background: rgba(255, 255, 255, 0.055);
}
.compact-footer {
  border-top: 1px solid rgba(107, 31, 42, 0.1);
  background: #fffaf3;
}
dialog {
  border-color: rgba(217, 164, 65, 0.38);
  border-radius: 24px;
  background: #fffdf9;
  box-shadow: 0 35px 100px rgba(45, 20, 20, 0.3);
}

@media (max-width: 1220px) {
  .matrimony-hero-grid {
    grid-template-columns: minmax(400px, 0.9fr) minmax(500px, 1.1fr);
    gap: 30px;
  }
  .privacy-visual {
    height: 550px;
  }
  .portrait-card-bride {
    width: 310px;
    height: 430px;
  }
  .portrait-card-groom {
    width: 300px;
    height: 410px;
  }
  .hero-trust div {
    min-width: 140px;
  }
}

@media (max-width: 920px) {
  .container {
    width: min(calc(100% - 36px), 760px);
  }
  .matrimony-hero {
    min-height: auto;
  }
  .matrimony-hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .matrimony-hero-copy {
    max-width: 700px;
  }
  .privacy-visual {
    width: min(100%, 680px);
    justify-self: center;
  }
  .directory-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 26px), 540px);
  }
  .site-header {
    height: 72px;
  }
  .brand-with-logo > img {
    width: 44px;
    height: 44px;
  }
  .matrimony-hero {
    padding: 48px 0 56px;
  }
  .matrimony-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }
  .hero-eyebrow {
    letter-spacing: 0.12em;
  }
  .matrimony-hero .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .matrimony-hero .hero-actions .button {
    width: 100%;
  }
  .hero-trust {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
  }
  .hero-trust div {
    min-width: 0;
    padding: 0;
  }
  .hero-trust div + div {
    padding: 12px 0 0;
    border-top: 1px solid rgba(107, 31, 42, 0.1);
    border-left: 0;
  }
  .privacy-visual {
    height: 430px;
  }
  .portrait-card-bride {
    top: 70px;
    left: 2px;
    width: 58%;
    height: 330px;
  }
  .portrait-card-groom {
    right: 4px;
    width: 55%;
    height: 310px;
  }
  .verified-profile {
    right: 12px;
    bottom: 15px;
    padding: 7px 9px;
    font-size: 0.58rem;
  }
  .privacy-visual figcaption {
    right: 8px;
    bottom: -4px;
    width: min(78%, 300px);
    padding: 14px 16px;
  }
  .privacy-icon {
    width: 36px;
    height: 36px;
  }
  .directory,
  .safety-section {
    padding-block: 62px;
  }
  .profile-detail-photo {
    width: 100%;
    max-height: 360px;
  }
}

/* Administrator dashboard */
.admin-page {
  min-width: 0;
  background: #f7f2ea;
}
.admin-page main {
  display: block;
  width: 100%;
}
.admin-hero {
  padding: 54px 0;
  color: #fffaf3;
  background:
    radial-gradient(circle at 92% 0, rgba(217, 164, 65, 0.2), transparent 27%),
    linear-gradient(120deg, #3c1219, #712633);
}
.admin-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 55px;
}
.admin-hero h1 {
  max-width: 720px;
  margin: 5px 0 10px;
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.08;
}
.admin-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 250, 243, 0.72);
}
.admin-hero-note {
  display: grid;
  flex: 0 1 430px;
  gap: 6px;
  padding: 19px 21px;
  border: 1px solid rgba(241, 216, 157, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.admin-hero-note strong {
  color: #f1d89d;
}
.admin-hero-note span {
  color: rgba(255, 250, 243, 0.7);
  font-size: 0.8rem;
  line-height: 1.55;
}
.admin-main {
  display: grid;
  gap: 28px;
  padding-block: 38px 80px;
}
.admin-access-message {
  margin: 0;
  border: 1px solid rgba(217, 164, 65, 0.4);
  background: #fff9e9;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.admin-stats article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 22px;
  border: 1px solid rgba(107, 31, 42, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(72, 31, 37, 0.06);
}
.admin-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-stats strong {
  color: var(--primary);
  font-family: Georgia, serif;
  font-size: 1.8rem;
}
.admin-panel {
  min-width: 0;
  padding: 25px;
  border: 1px solid rgba(107, 31, 42, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(72, 31, 37, 0.065);
}
.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.admin-panel-heading .eyebrow {
  margin: 0 0 3px;
  color: var(--primary);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}
.admin-panel-heading h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: 1.55rem;
  font-weight: 600;
}
.admin-count {
  padding: 7px 11px;
  color: var(--primary);
  border: 1px solid rgba(217, 164, 65, 0.38);
  border-radius: 999px;
  background: #fffaf0;
  font-size: 0.68rem;
  font-weight: 900;
}
.admin-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.admin-page .admin-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-color: rgba(107, 31, 42, 0.1);
  border-radius: 13px;
  box-shadow: none;
  overflow-x: auto;
}
.admin-page .admin-table-wrap table {
  min-width: 850px;
  table-layout: auto;
}
.admin-page .admin-table-wrap th {
  padding: 12px 14px;
  color: #6e5b59;
  background: #fbf7f0;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.admin-page .admin-table-wrap td {
  padding: 14px;
  vertical-align: middle;
  white-space: normal;
}
.admin-page .admin-table-wrap tbody tr:hover {
  background: #fffcf7;
}
.admin-page .admin-table-wrap small {
  margin-top: 3px;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-page .admin-table-wrap button {
  padding: 7px 9px;
  color: var(--primary);
  border-color: rgba(107, 31, 42, 0.16);
  font-size: 0.67rem;
  font-weight: 850;
}
.admin-page .admin-table-wrap button:hover:not(:disabled) {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}
.admin-page .admin-table-wrap button[data-action="REJECT"],
.admin-page .admin-table-wrap button[data-action="SUSPEND"],
.admin-page .admin-table-wrap button[data-action="ARCHIVE"] {
  color: #8a3030;
}
.admin-page .admin-table-wrap input[type="date"] {
  max-width: 155px;
  padding: 8px;
  border: 1px solid rgba(107, 31, 42, 0.16);
  border-radius: 8px;
  background: #fffdfa;
}
.status-chip {
  display: inline-flex;
  padding: 5px 8px;
  color: #6b1f2a;
  border: 1px solid rgba(107, 31, 42, 0.15);
  border-radius: 999px;
  background: #f9eeee;
  font-size: 0.65rem;
  font-weight: 900;
  white-space: nowrap;
}
.status-chip.is-approved,
.status-chip.is-visible,
.status-chip.is-active {
  color: #22603a;
  border-color: rgba(34, 96, 58, 0.18);
  background: #eaf6ee;
}
.admin-page .admin-list {
  max-height: 360px;
  margin: 0;
  overflow: auto;
}
.admin-page .admin-list article,
.admin-empty {
  margin: 0;
  padding: 14px 15px;
  border-color: rgba(107, 31, 42, 0.1);
  background: #fcf9f4;
}
.admin-page .admin-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.admin-page .admin-list time {
  display: block;
  margin-top: 5px;
  font-size: 0.7rem;
}
.admin-photo-link {
  color: var(--primary);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .admin-hero-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }
  .admin-hero-note {
    flex-basis: auto;
  }
  .admin-stats,
  .admin-grid-two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .admin-hero {
    padding: 38px 0;
  }
  .admin-main {
    padding-block: 24px 55px;
  }
  .admin-stats,
  .admin-grid-two {
    grid-template-columns: 1fr;
  }
  .admin-panel {
    padding: 17px;
    border-radius: 16px;
  }
  .admin-panel-heading {
    align-items: flex-start;
  }
}

/* Full-page member profile */
.profile-page {
  min-height: 100vh;
  color: #302324;
  background:
    radial-gradient(
      circle at 93% 13%,
      rgba(210, 165, 83, 0.13),
      transparent 23rem
    ),
    #faf7f2;
}
.profile-page .site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 1px 0 rgba(88, 44, 36, 0.1);
}
.profile-page-bar {
  color: #fff;
  background: linear-gradient(115deg, #4b1720, #752832 67%, #9b5748);
}
.profile-page-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.profile-page-bar p {
  margin: 0;
  color: #e8c775;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.profile-back {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.profile-back:hover {
  color: #f2d58d;
}
.profile-page-shell {
  padding-top: 46px;
  padding-bottom: 80px;
}
.profile-loading,
.profile-error {
  max-width: 720px;
  margin: 50px auto;
  padding: 38px;
  border: 1px solid #eadfd7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(64, 32, 26, 0.08);
  text-align: center;
}
.profile-overview {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  overflow: hidden;
  border: 1px solid #eaded3;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(61, 28, 23, 0.1);
}
.profile-page-photo {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #eee5da;
}
.profile-page-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, rgba(50, 21, 19, 0.24));
  content: "";
  pointer-events: none;
}
.profile-page-photo img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}
.profile-page-photo .demo-profile-image {
  width: 168%;
  max-width: none;
  transform: translateX(-17%);
}
.profile-page-photo .demo-groom {
  transform: translateX(-42%);
}
.profile-page-intro {
  align-self: center;
  padding: clamp(34px, 6vw, 76px);
}
.profile-identity-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.profile-page-intro .eyebrow {
  margin: 0 0 13px;
  color: #7b2933;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.profile-page-intro h1 {
  margin: 0;
  color: #271b1c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4.3rem);
  line-height: 1.05;
}
.profile-lead {
  margin: 18px 0 0;
  color: #67595a;
  font-size: 1.06rem;
  line-height: 1.65;
}
.profile-about-lead {
  max-width: 720px;
  margin: 27px 0 0;
  padding-top: 25px;
  border-top: 1px solid #eee3db;
  color: #493d3e;
  font-size: 1.04rem;
  line-height: 1.75;
}
.profile-active-badge {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #245a38;
  border: 1px solid #b9d8c2;
  border-radius: 999px;
  background: #eff8f1;
  font-size: 0.75rem;
  font-weight: 800;
}
.profile-primary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.profile-report-link {
  padding: 10px 5px;
  color: #7b2933;
  border: 0;
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.profile-info-card,
.profile-safety-note {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #e9ddd4;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 35px rgba(62, 31, 26, 0.05);
}
.profile-info-card h2 {
  margin: 0 0 24px;
  color: #351f21;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}
.profile-info-card h2::after {
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 11px;
  background: #d2a653;
  content: "";
}
.profile-info-card h3 {
  margin: 22px 0 10px;
  color: #69595a;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-info-card > p {
  color: #544748;
  line-height: 1.7;
}
.profile-info-card dl {
  margin: 0;
}
.profile-fact {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1.2fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #f0e7e1;
}
.profile-fact:last-child {
  border-bottom: 0;
}
.profile-fact dt {
  color: #827374;
}
.profile-fact dd {
  margin: 0;
  color: #312526;
  font-weight: 750;
}
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-chips span {
  padding: 7px 11px;
  color: #682a31;
  border: 1px solid #ead6d4;
  border-radius: 999px;
  background: #fcf5f3;
  font-size: 0.83rem;
  font-weight: 700;
}
.profile-empty {
  color: #837576;
}
.profile-preferences {
  grid-column: span 2;
}
.profile-preferences dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.profile-safety-note {
  grid-column: span 2;
  color: #fdf7ed;
  border: 0;
  background: linear-gradient(120deg, #522029, #792e37);
}
.profile-safety-note strong {
  color: #f0cf7b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}
.profile-safety-note p {
  max-width: 920px;
  margin: 10px 0;
  line-height: 1.65;
}
.profile-safety-note a {
  color: #fff;
  font-weight: 800;
}
.profile-access-card {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #ead5aa;
  border-radius: 16px;
  background: #fff9e9;
}
.profile-access-card strong {
  color: #59222a;
  font-size: 1.08rem;
}
.profile-access-card p {
  color: #6a5e54;
  line-height: 1.6;
}
.profile-overview-private .profile-page-photo img {
  object-fit: contain;
  padding: 45px;
}
@media (max-width: 850px) {
  .profile-overview {
    grid-template-columns: 1fr;
  }
  .profile-page-photo,
  .profile-page-photo img {
    min-height: 0;
    height: min(88vw, 520px);
  }
  .profile-detail-grid,
  .profile-preferences dl {
    grid-template-columns: 1fr;
  }
  .profile-preferences,
  .profile-safety-note {
    grid-column: auto;
  }
}
@media (max-width: 540px) {
  .profile-page .matrimony-nav a:not(.text-button) {
    display: none;
  }
  .profile-page-bar .container {
    min-height: 58px;
  }
  .profile-page-bar p {
    display: none;
  }
  .profile-page-shell {
    padding-top: 20px;
    padding-bottom: 45px;
  }
  .profile-overview {
    border-radius: 18px;
  }
  .profile-page-intro {
    padding: 27px 22px 30px;
  }
  .profile-page-intro h1 {
    font-size: 2.35rem;
  }
  .profile-identity-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .profile-primary-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .profile-primary-actions .button {
    width: 100%;
  }
  .profile-fact {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Refined member directory */
.directory.section-pad {
  display: block;
}
.signed-in .member-dashboard {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  background:
    radial-gradient(
      circle at 96% 15%,
      rgba(224, 176, 77, 0.24),
      transparent 21rem
    ),
    linear-gradient(112deg, #531721, #7f1f2d 70%, #9c463d);
}
.signed-in .member-dashboard::after {
  position: absolute;
  top: -125px;
  right: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(239, 204, 119, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(239, 204, 119, 0.045),
    0 0 0 52px rgba(239, 204, 119, 0.035);
  content: "";
}
.signed-in .member-dashboard-inner {
  position: relative;
  z-index: 1;
}
.signed-in .dashboard-check {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #d5a840, #bc7e1e);
  box-shadow: 0 7px 18px rgba(49, 16, 18, 0.22);
}
.signed-in .dashboard-welcome {
  grid-template-columns: 46px 1fr;
}
.signed-in .dashboard-welcome h1 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}
.signed-in .directory {
  padding-block: 25px 72px;
  overflow-x: clip;
}
.signed-in .directory > .container,
.signed-in .directory-layout {
  width: min(calc(100% - 48px), 1420px);
  max-width: 1420px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}
.directory-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #746667;
  font-size: 0.78rem;
  font-weight: 700;
}
.directory-breadcrumb a {
  color: #6b1f2a;
  text-decoration: none;
}
.directory-layout {
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 30px;
}
.directory-layout > *,
.results,
.profile-grid,
.profile-card,
.profile-copy {
  min-width: 0;
}
.filters {
  top: 86px;
  gap: 14px;
  padding: 23px;
  border-color: rgba(92, 33, 39, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(70, 35, 31, 0.075);
}
.filter-heading {
  padding-bottom: 5px;
}
.filter-heading h2 {
  color: #302224;
  font-size: 1.18rem;
}
.filter-heading button {
  font-size: 0.76rem;
}
.filters fieldset {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 3px;
  border: 1px solid rgba(107, 31, 42, 0.16);
  border-radius: 999px;
  background: #fffdfa;
}
.filters fieldset legend {
  grid-column: 1 / -1;
  margin: 0 0 7px -3px;
}
.filters fieldset label {
  display: grid;
  min-height: 32px;
  padding: 7px 5px;
  border-radius: 999px;
  cursor: pointer;
  place-items: center;
  font-size: 0.72rem;
  text-align: center;
}
.filters fieldset input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.filters fieldset label:has(input:checked) {
  color: #fff;
  background: linear-gradient(110deg, #721e2a, #982232);
  box-shadow: 0 5px 12px rgba(104, 26, 36, 0.18);
}
.filters input:not([type="radio"]),
.filters select {
  min-height: 41px;
  padding: 9px 11px;
  border-color: rgba(81, 44, 42, 0.18);
  background: #fff;
  font-size: 0.79rem;
}
.filters .button-primary {
  min-height: 45px;
  margin-top: 3px;
  border-radius: 10px;
  background: linear-gradient(110deg, #751f2b, #9b2131);
  box-shadow: 0 8px 18px rgba(101, 25, 34, 0.16);
}
.results-heading {
  align-items: flex-end;
  margin-bottom: 18px;
  padding: 2px 0 18px;
}
.results-heading .eyebrow {
  color: #7f3039;
  font-size: 0.69rem;
}
.results-heading h2 {
  color: #5b1822;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}
.results-subtitle {
  margin: 5px 0 0;
  color: #827576;
  font-size: 0.8rem;
}
.access-pill {
  position: relative;
  padding: 9px 15px 9px 32px;
  color: #683039;
  border-color: #ead39c;
  background: #fffaf0;
}
.access-pill::before {
  position: absolute;
  left: 12px;
  color: #b78424;
  content: "✓";
  font-weight: 900;
}
.profile-grid {
  gap: 16px;
}
.profile-card {
  display: grid;
  grid-template-columns: minmax(175px, 41%) minmax(0, 1fr);
  min-height: 310px;
  border-color: rgba(88, 42, 40, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(72, 36, 33, 0.07);
}
.profile-card:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 30, 41, 0.2);
  box-shadow: 0 15px 34px rgba(72, 36, 33, 0.11);
}
.profile-photo {
  min-height: 310px;
  aspect-ratio: auto;
  border-radius: 10px 0 0 10px;
}
.profile-photo .demo-tag {
  top: 9px;
  left: 9px;
  padding: 4px 7px;
  font-size: 0.55rem;
}
.profile-photo .verified {
  right: auto;
  bottom: 11px;
  left: 11px;
  padding: 7px 10px;
  color: #24633a;
  border-color: #cde3d2;
  background: rgba(249, 255, 250, 0.94);
  font-size: 0.65rem;
}
.profile-photo .demo-profile-image {
  transform: scale(2);
}
.profile-photo .demo-profile-image.demo-bride {
  transform-origin: 37% 50%;
}
.profile-photo .demo-profile-image.demo-groom {
  transform-origin: 77% 48%;
}
.profile-card:hover .profile-photo .demo-profile-image {
  transform: scale(2.04);
}
.profile-copy {
  display: flex;
  min-width: 0;
  padding: 22px 18px 14px;
  flex-direction: column;
}
.profile-copy h3 {
  color: #701e2a;
  font-size: 1.3rem;
  line-height: 1.15;
}
.profile-id {
  margin: 4px 0 11px;
  color: #413536;
  font-size: 0.65rem;
  letter-spacing: 0.035em;
}
.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 13px;
}
.profile-facts div {
  position: relative;
  min-width: 0;
  padding: 6px 0 6px 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.profile-facts div:nth-child(n + 3) {
  grid-column: span 2;
}
.profile-facts div::before {
  position: absolute;
  top: 7px;
  left: 1px;
  color: #b57b18;
  content: "•";
  font-size: 1rem;
  line-height: 1;
}
.profile-facts div:nth-child(1)::before {
  content: "♙";
}
.profile-facts div:nth-child(2)::before {
  content: "↕";
}
.profile-facts div:nth-child(3)::before {
  content: "⌖";
}
.profile-facts div:nth-child(4)::before {
  content: "◇";
}
.profile-facts div:nth-child(5)::before {
  content: "▣";
}
.profile-facts dt {
  display: inline;
  color: #8b7f80;
  font-size: 0.61rem;
}
.profile-facts dt::after {
  content: ": ";
}
.profile-facts dd {
  display: inline;
  color: #403334;
  font-size: 0.73rem;
  font-weight: 750;
}
.profile-facts div:nth-child(6) {
  display: none;
}
.profile-summary {
  min-height: 40px;
  margin: 8px 0 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(89, 48, 45, 0.12);
  font-size: 0.71rem;
  line-height: 1.45;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8px;
  margin-top: auto;
}
.card-actions .button {
  min-height: 35px;
  padding: 8px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
}
.card-actions > :only-child {
  grid-column: 1 / -1;
}
.directory-privacy-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 13px 18px;
  color: #675653;
  border: 1px solid #ecd8ab;
  border-radius: 11px;
  background: #fffaf0;
}
.directory-privacy-note span {
  color: #ba8428;
}
.directory-privacy-note p {
  margin: 0;
  font-size: 0.74rem;
}
@media (max-width: 1180px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    grid-template-columns: minmax(210px, 34%) minmax(0, 1fr);
  }
}
@media (max-width: 920px) {
  .signed-in .directory > .container,
  .signed-in .directory-layout {
    width: min(calc(100% - 36px), 760px);
  }
  .directory-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }
}
@media (max-width: 600px) {
  .signed-in .member-dashboard {
    padding: 24px 0;
  }
  .signed-in .directory > .container,
  .signed-in .directory-layout {
    width: min(calc(100% - 26px), 540px);
  }
  .directory-breadcrumb {
    margin-bottom: 14px;
  }
  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-card {
    grid-template-columns: 1fr;
  }
  .profile-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 10px 10px 0 0;
  }
  .profile-copy {
    padding: 19px 17px 15px;
  }
}
