@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:root {
  --bg-main: #f7f1e8;
  --bg-soft: #f0e5d4;
  --surface: #fffcf6;
  --surface-muted: #f6efe3;
  --text-main: #1f1b17;
  --text-muted: #5f5142;
  --line: #c9b08b;

  --brand: #a17a2d;
  --brand-deep: #6d4f17;
  --accent: #184739;
  --accent-soft: #d6ece3;

  --shadow-soft: 0 8px 16px rgba(56, 43, 24, 0.08);
  --shadow-medium: 0 12px 32px rgba(56, 43, 24, 0.14);
  --shadow-strong: 0 20px 48px rgba(56, 43, 24, 0.18);
  --shadow-hover: 0 24px 56px rgba(56, 43, 24, 0.22);

  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 1140px;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;

  --h1: clamp(2.15rem, 2.9vw + 1.1rem, 4rem);
  --h2: clamp(1.45rem, 1.2vw + 1rem, 2.2rem);
  --h3: clamp(1.03rem, 0.35vw + 0.94rem, 1.22rem);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.35rem;
  --space-5: 1.8rem;
  --space-6: 2.4rem;
  --space-7: 3.2rem;
  --space-8: 4.2rem;

  --focus: 2px solid #174f84;
}

body {
  background:
    radial-gradient(
      920px 480px at 8% -6%,
      rgba(161, 122, 45, 0.22),
      transparent 66%
    ),
    radial-gradient(
      740px 420px at 95% 0%,
      rgba(24, 71, 57, 0.17),
      transparent 62%
    ),
    linear-gradient(180deg, #f8f1e8 0%, #f3eadf 42%, #f7f2e8 100%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: var(--space-8) 0;
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(161, 122, 45, 0.36),
    transparent
  );
  pointer-events: none;
}

.section-header {
  max-width: 72ch;
  margin: 0 0 var(--space-6);
  animation: headerSlideIn 0.6s ease both;
}

@keyframes headerSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.4vw + 1.1rem, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  background: linear-gradient(120deg, #6d4f17 0%, #184739 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  margin: var(--space-2) 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.small {
  color: var(--text-muted);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 999;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  left: 0.75rem;
  outline: var(--focus);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 241, 232, 0.83);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(147, 110, 46, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid rgba(161, 122, 45, 0.4);
  box-shadow: 0 7px 18px rgba(109, 79, 23, 0.22);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 0.2rem;
}

.nav-user-actions {
  margin-top: 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-username {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2f261c;
  background: rgba(255, 252, 246, 0.94);
  border: 1px solid rgba(161, 122, 45, 0.35);
  border-radius: 999px;
  display: inline-block;
  padding: 0.14rem 0.55rem;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-signout-btn {
  border: 1px solid rgba(192, 60, 60, 0.35);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.96);
  color: #7a2525;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.3rem 0.58rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.nav-signout-btn:hover {
  background: rgba(192, 60, 60, 0.1);
  border-color: rgba(192, 60, 60, 0.55);
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
}

.nav-list a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #4f4436;
  padding: 0.5rem 0.72rem;
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255, 252, 246, 0.96);
  color: #2f261c;
}

.nav-list a:focus-visible,
.btn:focus-visible,
.filter:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

.proposal-btn {
  margin-top: 0.45rem;
}

.proposal-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.proposal-modal[hidden] {
  display: none;
}

.proposal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 20, 13, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.proposal-modal-dialog {
  position: relative;
  width: min(640px, 94vw);
  max-height: 90vh;
  overflow: auto;
  margin: 0;
  z-index: 1;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(172, 139, 90, 0.2);
  animation: modalSlideIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.proposal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.proposal-modal-header h3 {
  margin: 0;
}

.proposal-close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(172, 139, 90, 0.38);
  border-radius: 10px;
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.proposal-close-btn:hover {
  background: #f5ebe0;
  border-color: rgba(161, 122, 45, 0.3);
  transform: rotate(90deg);
}

.proposal-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.proposal-form input,
.proposal-form select,
.proposal-form textarea {
  margin-top: 0.35rem;
  width: 100%;
  border: 1.5px solid rgba(172, 139, 90, 0.3);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  font: inherit;
  background: #fffdf9;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.proposal-form input:focus,
.proposal-form select:focus,
.proposal-form textarea:focus {
  outline: none;
  border-color: rgba(161, 122, 45, 0.6);
  background: #fffdf9;
  box-shadow: 0 0 0 3px rgba(161, 122, 45, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.proposal-form label {
  font-weight: 600;
  color: #3c3021;
  font-size: 0.95rem;
}

.proposal-attachment-status {
  margin-top: 0.3rem;
  color: #5f5142;
}

.proposal-inbox-card {
  border: 1px solid rgba(172, 139, 90, 0.32);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: linear-gradient(135deg, #fffdf9 0%, #faf8f2 100%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.proposal-inbox-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(161, 122, 45, 0.42);
}

.proposal-inbox-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.proposal-inbox-meta {
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.hero {
  padding: calc(var(--space-8) - 1rem) 0 var(--space-8);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(540px, 65vw);
  height: min(540px, 65vw);
  right: -130px;
  top: -160px;
  background: radial-gradient(circle, rgba(161, 122, 45, 0.2), transparent 68%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: var(--space-7);
  align-items: center;
}

.kicker {
  display: inline-flex;
  margin: 0 0 var(--space-3);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6d4f17;
  background: linear-gradient(135deg, rgba(242, 228, 202, 0.6), rgba(255, 248, 235, 0.4));
  border: 1px solid rgba(161, 122, 45, 0.48);
  box-shadow: 0 4px 12px rgba(161, 122, 45, 0.12);
  animation: kickerSlideIn 0.5s ease both;
}

@keyframes kickerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw + 1rem, 4.6rem);
  line-height: 1.08;
  color: #241d15;
  max-width: 20ch;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: var(--space-4) 0 0;
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 62ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(116, 90, 54, 0.3);
  background: #fffef9;
  color: #3c3021;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 0.78rem 1.05rem;
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    background 0.2s ease,
    color 0.2s ease;
}

[hidden] {
  display: none !important;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  background: #fafaf7;
  border-color: rgba(116, 90, 54, 0.48);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn.primary {
  background: linear-gradient(125deg, #c49850 0%, #a47423 45%, #8b5f1f 100%);
  color: #fff;
  border: 1px solid rgba(115, 79, 20, 0.5);
  box-shadow: 0 8px 20px rgba(161, 122, 45, 0.25);
}

.btn.primary:hover {
  background: linear-gradient(125deg, #d0a55d 0%, #b07e2a 45%, #996d2a 100%);
  box-shadow: 0 12px 32px rgba(161, 122, 45, 0.35);
}

.hero-bullets {
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4e4234;
  font-size: 0.95rem;
}

.hero-bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(140deg, #b28a3c, #d3ad5f);
  box-shadow: 0 0 0 4px rgba(178, 138, 60, 0.2);
}

.hero-figure {
  margin: 0;
  background: var(--surface);
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid rgba(161, 122, 45, 0.45);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transition: transform 0.3s ease;
  animation: heroImageSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.hero-figure:hover {
  transform: translateY(-8px);
}

@keyframes heroImageSlideIn {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-figure figcaption {
  background: #f9f1e4;
  border-top: 1px solid rgba(161, 122, 45, 0.24);
  color: #5f5243;
  font-size: 0.94rem;
  padding: 0.82rem 1rem;
}

.media-card {
  margin-top: 0.9rem;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: linear-gradient(150deg, #fff9ec, #f7ebd8);
  border: 1px solid rgba(161, 122, 45, 0.42);
  box-shadow: var(--shadow-soft);
}

.media-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #204839;
  background: #dbeee7;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
}

.media-title {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
}

.grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Main matrimony ads should display as list view */
#worksGrid.grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

#worksGrid .profile-ad {
  min-height: 290px;
  max-height: 290px;
  overflow: hidden;
}

#worksGrid .ad-photo {
  height: 150px;
}

#worksGrid .profile-ad h3 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#worksGrid .profile-ad .small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(172, 139, 90, 0.42);
  padding: 1.2rem 1.15rem;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(161, 122, 45, 0.52);
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.58vw + 1rem, 1.6rem);
}

.card p {
  margin: 0.62rem 0 0;
}

.profile-ad {
  border: 2px solid rgba(161, 122, 45, 0.48);
  background: linear-gradient(135deg, #fffdf8 0%, #faf5ea 100%);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.profile-ad:hover {
  transform: translateY(-8px);
  border-color: rgba(161, 122, 45, 0.68);
}

.profile-ad:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.ad-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.55rem;
  box-shadow: 0 6px 14px rgba(56, 43, 24, 0.18);
}

.ad-thumb.female {
  background: linear-gradient(135deg, #cf6f86, #b54561);
}

.ad-thumb.male {
  background: linear-gradient(135deg, #3e7cc8, #245ea4);
}

.ad-thumb.neutral {
  background: linear-gradient(135deg, #8b7f6d, #6d614f);
}

.profile-ad.just-posted {
  border-color: #0c6f43;
  background: linear-gradient(135deg, rgba(220, 248, 236, 0.4), rgba(214, 236, 227, 0.2));
  box-shadow:
    0 0 0 4px rgba(12, 111, 67, 0.18),
    var(--shadow-strong);
  animation: just-posted-pulse 1.15s ease 0s 2;
}

@keyframes just-posted-pulse {
  0% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.ad-photo {
  display: block;
  width: calc(100% + 2.3rem);
  margin: -1.2rem -1.15rem 0.9rem;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.ad-details-modal-dialog {
  width: min(760px, 95vw);
}

.ad-details-photo {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  margin: 0.25rem 0 0.95rem;
}

.ad-details-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 0.7vw + 1rem, 1.9rem);
}

.ad-details-meta {
  margin-top: 0.5rem;
  color: #6f5c3d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ad-details-description {
  margin-top: 0.75rem;
  line-height: 1.6;
  color: #2f261c;
  white-space: pre-wrap;
}

.ad-details-modal-dialog .ad-form-actions {
  margin-top: 1rem;
}

.meta {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  color: #7b6542;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: metaSlideIn 0.5s ease 0.2s both;
}

@keyframes metaSlideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  margin: 0 0 var(--space-4);
}

.filter {
  border: 1.5px solid rgba(114, 85, 45, 0.3);
  background: #fffaf2;
  border-radius: 999px;
  color: #5d4b33;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(161, 122, 45, 0.15);
  background: #fef5e6;
  border-color: rgba(161, 122, 45, 0.4);
}

.filter.active {
  background: linear-gradient(135deg, #9d7b35, #c9a250);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(161, 122, 45, 0.28);
}

.note {
  margin-top: var(--space-4);
  color: #6b5d4c;
  font-size: 0.95rem;
}

.price {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.price-tag {
  margin: 0.3rem 0 0;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2vw + 1rem, 2.25rem);
}

.list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.38rem;
  color: #4f4336;
}

.price.featured {
  background: linear-gradient(145deg, #f8ecd8, #fffcf5 60%);
  border-color: rgba(161, 122, 45, 0.45);
  position: relative;
}

.price.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -11px;
  right: 16px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #7b5a1d, #b18a41);
  padding: 0.32rem 0.64rem;
}

.checkout-msg {
  margin: var(--space-3) 0 0;
  color: #5b4a33;
  min-height: 1.5rem;
}

.post-ad-section[hidden] {
  display: none;
}

.post-ad-section {
  background: linear-gradient(180deg, #f3e8d6, #f8f1e6 60%, transparent);
}

.post-ad-proposal-notice {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid rgba(24, 71, 57, 0.7);
  background: rgba(24, 71, 57, 0.08);
  border-radius: 8px;
}

.auth-section {
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(161, 122, 45, 0.18),
    transparent 68%
  );
}

.auth-panel {
  max-width: 440px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid rgba(161, 122, 45, 0.38);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem 2rem;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75) inset,
    var(--shadow-strong);
  animation: panelSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes panelSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-panel-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(161, 122, 45, 0.4);
  box-shadow: 0 6px 20px rgba(109, 79, 23, 0.22);
  margin-inline: auto;
  margin-bottom: 1rem;
}

.auth-panel-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.75rem);
  color: #241d15;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-oauth {
  display: grid;
  gap: 0.7rem;
}

.auth-oauth-btn {
  width: 100%;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.96rem;
  font-weight: 600;
  padding: 0.82rem 1rem;
  border-radius: var(--radius-md);
}

.auth-google {
  background: #fff;
  border-color: #dadce0;
  color: #3c4043;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

.auth-google:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.22);
  transform: translateY(-1px);
}

.auth-facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.auth-facebook:hover {
  background: #1462cc;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.4rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(161, 122, 45, 0.3);
}

.auth-fields {
  display: grid;
  gap: 0.9rem;
}

.auth-field-label {
  display: grid;
  gap: 0.42rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #4d3c27;
}

.auth-input {
  border: 1.5px solid rgba(161, 122, 45, 0.35);
  border-radius: var(--radius-sm);
  background: #fffdf8;
  padding: 0.85rem 0.9rem;
  color: #2d2216;
  font: inherit;
  font-size: 0.97rem;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fffbf5;
  box-shadow: 0 0 0 3px rgba(161, 122, 45, 0.15);
}

.auth-captcha {
  background: rgba(161, 122, 45, 0.07);
  border: 1.5px solid rgba(161, 122, 45, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

.auth-email-btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
  margin-top: 0.2rem;
}

.auth-signup-btn {
  width: 100%;
  justify-content: center;
  padding: 0.78rem;
  font-size: 0.93rem;
  border-radius: var(--radius-md);
  border-color: rgba(161, 122, 45, 0.5);
  color: var(--brand-deep);
}

.auth-signup-btn:hover {
  background: rgba(161, 122, 45, 0.1);
}

.auth-state-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.2rem auto 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #d6ece3;
  border: 1px solid rgba(24, 71, 57, 0.25);
  color: #184739;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-state-chip::before {
  content: "✓";
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-msg {
  margin: 0.7rem 0 0;
  min-height: 1.2rem;
  font-size: 0.88rem;
  text-align: center;
}

.auth-state-text {
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-signout-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  border-color: rgba(192, 60, 60, 0.4);
  color: #7a2525;
}

.auth-signout-btn:hover {
  background: rgba(192, 60, 60, 0.08);
}

.ad-pay-options {
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #fff9ef, #f6ead7);
  border-color: rgba(161, 122, 45, 0.42);
}

.ad-pay-options .checkout-msg {
  margin: 0.4rem 0 0;
}

.ad-form {
  padding: 1.2rem;
}

.ad-form.locked {
  opacity: 0.72;
}

.ad-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.ad-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #4d3c27;
}

.ad-form input,
.ad-form select,
.ad-form textarea {
  border: 1.5px solid rgba(161, 122, 45, 0.32);
  border-radius: 10px;
  background: #fffdf8;
  padding: 0.8rem 0.85rem;
  color: #2d2216;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.ad-form input:focus,
.ad-form select:focus,
.ad-form textarea:focus {
  outline: none;
  border-color: rgba(161, 122, 45, 0.6);
  background: #fffbf5;
  box-shadow: 0 0 0 3px rgba(161, 122, 45, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ad-form .span-all {
  grid-column: 1 / -1;
}

.optional-label {
  font-weight: 400;
  color: #7a6447;
  font-size: 0.82rem;
}

.ad-form-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.ad-form-actions #adFormMsg {
  margin: 0;
  color: #36543f;
}

/* ── Admin dashboard ──────────────────────────────────────────── */

.admin-login-wrap {
  max-width: 500px;
  margin: 0 auto;
}

.admin-login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #b79242 0%, #7d5918 100%);
  font-size: 1.7rem;
  margin: 0 auto 1.1rem;
  box-shadow: 0 10px 28px rgba(161, 122, 45, 0.38);
}

/* Stats bar */
.admin-stats-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.admin-stat-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid rgba(161, 122, 45, 0.32);
  border-radius: 16px;
  padding: 0.95rem 1.2rem;
  box-shadow: var(--shadow-soft);
  flex: 1 1 180px;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.admin-stat-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(161, 122, 45, 0.48);
}

.admin-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.admin-stat-icon.users {
  background: linear-gradient(135deg, #d3ece4, #b3ddd0);
}

.admin-stat-icon.ads {
  background: linear-gradient(135deg, #f2e4ca, #e6ce9c);
}

.admin-stat-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.admin-stat-value {
  font-size: 1.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
}

/* Toolbar */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #fffdf8 0%, #f5ecd8 100%);
  border: 1px solid rgba(161, 122, 45, 0.36);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Panel headers */
.admin-grid {
  align-items: start;
}

.admin-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  margin: -1.2rem -1.15rem 1.2rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid rgba(161, 122, 45, 0.18);
  transition: all 0.2s ease;
}

.admin-panel-header:hover {
  border-bottom-color: rgba(161, 122, 45, 0.28);
}

.admin-panel-header.green {
  background: linear-gradient(135deg, #eaf5f0, #d3ece4);
}

.admin-panel-header.gold {
  background: linear-gradient(135deg, #fdf5e4, #f2e4ca);
}

.admin-panel-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-panel-icon.green {
  background: linear-gradient(135deg, #184739, #2a6b55);
}

.admin-panel-icon.gold {
  background: linear-gradient(135deg, #b79242, #7d5918);
}

.admin-panel-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.admin-panel-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* User cards */
.admin-user-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem;
  background: linear-gradient(135deg, #fffdf9 0%, #faf7f1 100%);
  border-radius: 14px;
  border: 1px solid rgba(161, 122, 45, 0.24);
  margin-bottom: 0.6rem;
  transition:
    box-shadow 0.2s ease,
    transform 0.18s ease,
    border-color 0.2s ease;
}

.admin-user-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
  border-color: rgba(161, 122, 45, 0.38);
}

.admin-user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #184739, #2a6b55);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  box-shadow: 0 4px 10px rgba(24, 71, 57, 0.3);
}

.admin-user-info {
  min-width: 0;
}

.admin-user-email {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 0 0.2rem;
}

.admin-user-meta {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Badges */
.admin-badge {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  transition: transform 0.15s ease;
}

.admin-badge:hover {
  transform: scale(1.06);
}

.admin-badge.confirmed {
  background: #d6f0e4;
  color: #0b5e2f;
  border: 1px solid rgba(11, 94, 47, 0.22);
}

.admin-badge.unconfirmed {
  background: #fde8d8;
  color: #8c3209;
  border: 1px solid rgba(140, 50, 9, 0.22);
}

.admin-badge.verified {
  background: #d6f0e4;
  color: #0b5e2f;
  border: 1px solid rgba(11, 94, 47, 0.22);
}

.admin-badge.pending {
  background: #fef4d8;
  color: #7c5300;
  border: 1px solid rgba(124, 83, 0, 0.22);
}

/* Ad cards */
#adminAdsGrid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.admin-ad-card {
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 320px;
  background: linear-gradient(180deg, #fffdf8 0%, #f9f2e4 100%);
  border-radius: 16px;
  border: 1px solid rgba(161, 122, 45, 0.32);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow 0.22s ease,
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s ease;
}

.admin-ad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(161, 122, 45, 0.48);
}

.admin-ad-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.admin-ad-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  margin: 0;
  line-height: 1.35;
  flex: 1;
}

.admin-ad-desc {
  font-size: 0.79rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.admin-category-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  background: rgba(161, 122, 45, 0.14);
  color: var(--brand-deep);
  border: 1px solid rgba(161, 122, 45, 0.32);
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.admin-category-pill:hover {
  background: rgba(161, 122, 45, 0.22);
  border-color: rgba(161, 122, 45, 0.48);
}

#adminUsersGrid h4,
#adminAdsGrid h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.prose {
  background: var(--surface-muted);
}

#contact .card,
#privacy .card,
#trust .card {
  background: linear-gradient(180deg, #fffdf8, #f8f1e5);
}

.divorce-section {
  background: linear-gradient(180deg, #f0e8da, #fdf7ef 60%, transparent);
}

.divorce-section .section-header h2 {
  color: #6b3e20;
}

.divorce-section .profile-ad {
  border-color: rgba(139, 80, 30, 0.5);
  background: linear-gradient(180deg, #fff8f2, #fdf0e3);
}

.site-footer {
  margin-top: var(--space-6);
  border-top: 2px solid rgba(161, 122, 45, 0.26);
  background: linear-gradient(180deg, #f4ead9 0%, #efe1c9 100%);
  box-shadow: inset 0 4px 12px rgba(161, 122, 45, 0.08);
}

.footer-inner {
  min-height: 92px;
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  text-decoration: none;
  color: #534429;
  font-weight: 700;
}

.footer-inner a:hover {
  color: #2f2618;
}

/* Simple entrance animation */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-media,
  .section-header,
  .card {
    animation: rise-in 0.6s ease both;
  }

  .hero-media {
    animation-delay: 0.1s;
  }

  .section .card:nth-child(2) {
    animation-delay: 0.08s;
  }

  .section .card:nth-child(3) {
    animation-delay: 0.14s;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-copy h1 {
    max-width: 24ch;
  }

  .grid,
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 3.2rem 0;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    position: absolute;
    right: 1rem;
    top: 64px;
    min-width: 220px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.65rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 251, 244, 0.98);
    box-shadow: var(--shadow-strong);
  }

  .nav-list.open {
    display: flex;
  }

  .grid,
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .ad-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 1.8rem 1.2rem 1.6rem;
  }

  .price.featured::before {
    right: 12px;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
