/* ============================================================
   SweetAlliance — Matrimonial Platform
   Design tokens
   ============================================================ */
:root {
  --wine: #5C1A33;
  --wine-dark: #3E0F21;
  --wine-light: #7A2C48;
  --gold: #C98A2B;
  --gold-light: #E4B562;
  --teal: #3E7C6B;
  --ivory: #FBF5EA;
  --card: #FFFDF8;
  --sand: #EFE2C8;
  --ink: #2B2320;
  --ink-soft: #6B5F55;
  --line: #E4D6BC;
  --danger: #B4432E;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --shadow: 0 10px 30px rgba(60, 30, 20, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--wine-dark);
  margin: 0 0 0.4em;
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--sand); }

.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }

button, input, select, textarea { font-family: var(--font-body); font-size: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-dark); box-shadow: 0 8px 20px rgba(92, 26, 51, 0.28); }
.btn-gold { background: var(--gold); color: var(--wine-dark); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 8px 20px rgba(201, 138, 43, 0.35); }
.btn-outline { background: transparent; border-color: var(--wine); color: var(--wine); }
.btn-outline:hover { background: var(--wine); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-ghost { background: transparent; color: var(--wine); padding: 10px 14px; }
.btn-ghost:hover { background: rgba(92,26,51,0.06); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ============================== HEADER ============================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wine), var(--wine-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-family: var(--font-display); font-size: 1.3rem;
}
.brand-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--wine-dark); }
.brand-name span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  color: var(--ink); transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--sand); color: var(--wine-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--sand);
  font-weight: 700; font-size: 0.9rem; color: var(--wine-dark);
}
.header-actions .user-chip .avatar-sm {
  width: 30px; height: 30px; border-radius: 50%; background: var(--wine);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.9rem;
}

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--wine-dark); cursor: pointer; }

@media (max-width: 880px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: var(--ivory); flex-direction: column; align-items: stretch;
    padding: 18px; gap: 4px; transform: translateX(-100%); transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 16px; }
  .nav-toggle { display: block; }
}

/* ============================== FOOTER ============================== */
.site-footer { background: var(--wine-dark); color: #EEDFC7; padding: 64px 0 24px; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
}
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 16px; }
.footer-grid p, .footer-grid a { color: #D9C6A8; font-size: 0.92rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name span { color: var(--gold-light); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #6B4A5E;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--wine-dark); }
.footer-bottom {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid #6B4A5E;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: #B79A7C;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 600px) {
  .site-footer { padding: 36px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-brand { text-align: center; }
  .footer-brand .brand-logo { margin: 0 auto; }
  .footer-brand p { margin: 12px auto 0; max-width: 360px; }
  .footer-social { justify-content: center; }
  .footer-grid ul { align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; margin-top: 28px; }
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(201,138,43,0.35), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(62,124,107,0.3), transparent 45%),
    linear-gradient(160deg, var(--wine) 0%, var(--wine-dark) 65%);
  color: #fff;
  padding: 76px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 700px; }
.hero-eyebrow { color: var(--gold-light); font-weight: 700; margin-bottom: 14px; font-size: 0.95rem; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p.lead { color: #E8D9E0; font-size: 1.15rem; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-light); }
.hero-stats div span { font-size: 0.85rem; color: #D9C6D3; }

/* Search panel */
.search-panel {
  position: relative; z-index: 2;
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: 0 25px 60px rgba(30, 8, 18, 0.35);
  padding: 28px;
  margin-top: -58px;
}
.search-panel h3 { margin-bottom: 4px; }
.search-panel .hint { font-size: 0.88rem; margin-bottom: 18px; }
.search-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: end;
}
.field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--wine-dark); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 12px; border-radius: var(--radius-s);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
@media (max-width: 980px) { .search-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .search-grid { grid-template-columns: 1fr; } .search-panel { margin-top: 24px; } }

/* ============================== PROFILE CARDS ============================== */
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px) { .profile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .profile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-card {
  background: var(--card); border-radius: var(--radius-m); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.profile-photo {
  height: 190px; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 3rem; color: #fff;
}
.profile-photo .badge {
  position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.35);
  color: #fff; font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; font-weight: 700;
}
.profile-photo.blurred { filter: blur(7px) saturate(0.8); transform: scale(1.08); }
.profile-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.profile-body h4 { margin-bottom: 2px; font-size: 1.05rem; }
.profile-meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.profile-tags span {
  font-size: 0.72rem; background: var(--sand); color: var(--wine-dark);
  padding: 4px 10px; border-radius: 999px; font-weight: 700;
}
.profile-body .btn { margin-top: auto; }
.locked-text { filter: blur(4px); user-select: none; }
.lock-note { font-size: 0.78rem; color: var(--gold); font-weight: 700; margin-bottom: 10px; }

/* ============================== CARDS / FEATURES ============================== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px; box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--sand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.4rem;
}
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { font-size: 0.92rem; margin-bottom: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-size: 1.1rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.9rem; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--card); border-radius: var(--radius-m); padding: 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.testimonial .stars { color: var(--gold); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial .who { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.testimonial .who .avatar-sm {
  width: 38px; height: 38px; border-radius: 50%; background: var(--wine);
  color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
}
.testimonial .who strong { display: block; font-size: 0.92rem; color: var(--wine-dark); }
.testimonial .who span { font-size: 0.78rem; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--wine) 0%, var(--wine-light) 100%);
  border-radius: var(--radius-l); padding: 56px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #E8D9E0; margin: 0; }

/* ============================== FORMS (generic) ============================== */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 36px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }
.field-block { margin-bottom: 18px; }
.field-block label { display: block; font-weight: 700; font-size: 0.85rem; color: var(--wine-dark); margin-bottom: 6px; }
.field-block input, .field-block select, .field-block textarea {
  width: 100%; padding: 12px 13px; border-radius: var(--radius-s); border: 1.5px solid var(--line);
  background: #fff; color: var(--ink);
}
.field-block textarea { resize: vertical; min-height: 90px; }
.field-hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }
.form-msg { padding: 12px 14px; border-radius: var(--radius-s); font-size: 0.88rem; font-weight: 600; margin-bottom: 16px; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #E4EFE6; color: #2E6A46; }
.form-msg.error { background: #F7E4DF; color: var(--danger); }

/* Auth pages */
.auth-wrap { display: flex; min-height: calc(100vh - 76px); }
.auth-visual {
  flex: 1; background: linear-gradient(160deg, var(--wine), var(--wine-dark));
  color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 60px;
  position: relative; overflow: hidden;
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}
.auth-visual .content { position: relative; z-index: 1; max-width: 420px; }
.auth-visual blockquote { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; margin: 20px 0; }
.auth-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box .switch { text-align: center; margin-top: 18px; font-size: 0.92rem; }
.auth-box .switch a { color: var(--wine); font-weight: 700; }
@media (max-width: 880px) { .auth-visual { display: none; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.price-card.featured { border: 2px solid var(--gold); position: relative; transform: translateY(-10px); }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--wine-dark); font-size: 0.72rem; font-weight: 800;
  padding: 5px 14px; border-radius: 999px;
}
.price-card .plan-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--wine-dark); }
.price-card .plan-price { font-size: 2.4rem; font-family: var(--font-display); color: var(--ink); margin: 10px 0 2px; }
.price-card .plan-price span { font-size: 0.95rem; color: var(--ink-soft); font-family: var(--font-body); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.price-card li { font-size: 0.92rem; padding-left: 26px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.price-card li.off { color: var(--ink-soft); opacity: 0.55; }
.price-card li.off::before { content: "–"; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--wine); color: #fff; border-radius: var(--radius-l); padding: 34px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card .row { display: flex; gap: 14px; margin-top: 22px; align-items: flex-start; }
.contact-info-card .row .ic {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-card .row strong { display: block; font-size: 0.92rem; }
.contact-info-card .row span { font-size: 0.86rem; color: #E5D5DD; }
.map-box {
  margin-top: 26px; border-radius: var(--radius-m); overflow: hidden; height: 160px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 10px, transparent 10px 20px);
  border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #E5D5DD;
}

/* About */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .about-hero { grid-template-columns: 1fr; } }
.about-art {
  aspect-ratio: 4/3.2; border-radius: var(--radius-l);
  background: linear-gradient(150deg, var(--gold-light), var(--gold) 45%, var(--wine) 100%);
  position: relative; overflow: hidden;
}
.about-art::after {
  content: "❦"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 6rem; color: rgba(255,255,255,0.4);
}
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 780px) { .value-grid { grid-template-columns: 1fr; } }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; }
.team-card .avatar-lg {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2rem;
}
.team-card h4 { margin-bottom: 2px; font-size: 1rem; }
.team-card span { font-size: 0.82rem; color: var(--ink-soft); }

/* ============================== DASHBOARD ============================== */
.dash-shell { display: flex; min-height: calc(100vh - 76px); align-items: stretch; }
.dash-sidebar {
  width: 260px; background: var(--wine-dark); color: #EEDFC7; padding: 28px 18px; flex-shrink: 0;
}
.dash-sidebar .dash-user { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 18px; }
.dash-sidebar .dash-user .avatar-sm { width: 42px; height: 42px; font-size: 1.1rem; background: var(--gold); color: var(--wine-dark); }
.dash-sidebar .dash-user strong { display: block; font-size: 0.92rem; color: #fff; }
.dash-sidebar .dash-user span { font-size: 0.76rem; color: #C9AF93; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav button {
  display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: none;
  color: #EEDFC7; padding: 12px 14px; border-radius: var(--radius-s); font-weight: 700; font-size: 0.9rem;
  cursor: pointer;
}
.dash-nav button:hover { background: rgba(255,255,255,0.08); }
.dash-nav button.active { background: var(--gold); color: var(--wine-dark); }
.dash-nav .logout-btn { margin-top: 24px; color: #E2A78C; }

.dash-main { flex: 1; padding: 36px; background: var(--ivory); overflow-x: hidden; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.dash-head h2 { margin-bottom: 2px; }
.dash-head p { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
@media (max-width: 880px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; }
.stat-box strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--wine-dark); }
.stat-box span { font-size: 0.82rem; color: var(--ink-soft); }
.completion-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.completion-bar > div { height: 100%; background: var(--teal); }

/* Chat */
.chat-shell { display: flex; height: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.chat-list { width: 260px; border-right: 1px solid var(--line); overflow-y: auto; flex-shrink: 0; }
.chat-list-item {
  display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.chat-list-item:hover, .chat-list-item.active { background: var(--sand); }
.chat-list-item .avatar-sm { width: 38px; height: 38px; }
.chat-list-item strong { display: block; font-size: 0.9rem; }
.chat-list-item span { font-size: 0.76rem; color: var(--ink-soft); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.chat-window { flex: 1; display: flex; flex-direction: column; }
.chat-window-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 65%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; }
.msg.me { align-self: flex-end; background: var(--wine); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--sand); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input-row input { flex: 1; padding: 11px 14px; border-radius: 999px; border: 1.5px solid var(--line); }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 0.9rem; text-align: center; padding: 20px; }

/* Modal (payment gateway) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(43, 35, 32, 0.55); display: none;
  align-items: center; justify-content: center; z-index: 500; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-l); width: 100%; max-width: 440px; padding: 30px; position: relative; box-shadow: 0 30px 70px rgba(0,0,0,0.3); }
.modal-box .close-modal { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--ink-soft); }
.pay-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.pay-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.pay-summary { background: var(--sand); border-radius: var(--radius-s); padding: 14px 16px; display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 0.9rem; }
.pay-summary strong { color: var(--wine-dark); font-family: var(--font-display); font-size: 1.2rem; }
.pay-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.pay-tabs button { flex: 1; padding: 9px; border-radius: var(--radius-s); border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 0.82rem; cursor: pointer; }
.pay-tabs button.active { border-color: var(--wine); color: var(--wine); background: var(--sand); }
.pay-processing { text-align: center; padding: 30px 10px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--wine); margin: 0 auto 16px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-success { text-align: center; padding: 20px 10px; }
.pay-success .tick { width: 58px; height: 58px; border-radius: 50%; background: #DFF0E3; color: #2E6A46; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.6rem; }

/* Utility */
.badge-lock { display: inline-flex; align-items: center; gap: 6px; background: var(--sand); color: var(--wine-dark); font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.avatar-color-1 { background: linear-gradient(135deg, #C98A2B, #A85E17); }
.avatar-color-2 { background: linear-gradient(135deg, #5C1A33, #7A2C48); }
.avatar-color-3 { background: linear-gradient(135deg, #3E7C6B, #285347); }
.avatar-color-4 { background: linear-gradient(135deg, #B4432E, #7C2C1C); }
.avatar-color-5 { background: linear-gradient(135deg, #7A5C1A, #5C4413); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state .icon-big { font-size: 2.6rem; margin-bottom: 14px; }
.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--wine-dark); color: #fff;
  padding: 14px 20px; border-radius: var(--radius-s); font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); z-index: 600; opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .dash-shell { flex-direction: column; }
  .dash-sidebar { width: 100%; display: flex; align-items: center; gap: 18px; padding: 16px 18px; }
  .dash-sidebar .dash-user { border: none; margin: 0; padding: 0; }
  .dash-nav { flex-direction: row; overflow-x: auto; }
  .dash-nav .logout-btn { margin-top: 0; }
  .chat-shell { flex-direction: column; height: auto; }
  .chat-list { width: 100%; max-height: 180px; }
}


/* SANJOG — light premium matrimonial theme */
:root{
  --wine:#A80F2D;
  --wine-dark:#741022;
  --wine-light:#D52F50;
  --rose:#F9DDE4;
  --rose-2:#FFF0F3;
  --gold:#C99532;
  --gold-light:#E7C778;
  --ivory:#FFF9F7;
  --card:#FFFFFF;
  --sand:#F8E8DD;
  --ink:#321E24;
  --ink-soft:#745E64;
  --line:#F0D8DD;
  --green:#1C9B65;
  --danger:#C62D45;
  --shadow:0 14px 40px rgba(100,22,42,.10);
  --shadow-lg:0 24px 70px rgba(100,22,42,.14);
}
body{background:linear-gradient(180deg,#fffaf8 0%,#fff5f3 48%,#fffaf8 100%);color:var(--ink)}
h1,h2,h3,h4{color:var(--wine-dark)}
p{color:var(--ink-soft)}
.container{max-width:1240px}
.site-header{background:rgba(255,250,248,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);box-shadow:0 4px 18px rgba(100,22,42,.04)}
.site-header .container{height:82px}
.brand{gap:12px}
.brand-logo{width:185px;height:62px;object-fit:contain;object-position:left center}
.brand-mark,.brand-name{display:none!important}
.main-nav{gap:4px}.main-nav a{color:var(--ink);padding:10px 15px}.main-nav a:hover,.main-nav a.active{background:var(--rose-2);color:var(--wine)}
.header-actions .user-chip{background:var(--rose-2);color:var(--wine-dark);border:1px solid var(--line)}
.header-actions .user-chip .avatar-sm{background:var(--wine)}
.btn{border-radius:12px;padding:12px 22px;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:linear-gradient(135deg,#c7193f,#a80f2d);box-shadow:0 9px 22px rgba(168,15,45,.18)}
.btn-primary:hover{background:linear-gradient(135deg,#a80f2d,#8d0d27);box-shadow:0 12px 28px rgba(168,15,45,.26)}
.btn-outline{border-color:#d84a65;color:var(--wine);background:#fff}.btn-outline:hover{background:var(--wine);color:#fff}
.btn-gold{background:linear-gradient(135deg,#e3b75e,#c99532);color:#4a2b0b}
.btn-ghost{color:var(--wine)}
.section-alt{background:linear-gradient(180deg,#fff0f1,#fff8f5)}

/* Home hero */
.hero{padding:68px 0 96px;background:linear-gradient(90deg,rgba(255,247,245,.98) 0%,rgba(255,247,245,.88) 45%,rgba(255,235,238,.40) 100%),url('https://images.unsplash.com/photo-1606800052052-a08af7148866?auto=format&fit=crop&w=1800&q=85') center right/cover no-repeat;color:var(--ink);min-height:560px}
.hero::after{background:radial-gradient(circle at 12% 15%,rgba(211,48,79,.08) 0 2px,transparent 3px);background-size:28px 28px;opacity:.7}
.hero-inner{max-width:650px}.hero-eyebrow{color:var(--wine);letter-spacing:.04em}.hero h1{color:var(--wine-dark);font-size:clamp(2.8rem,5vw,4.8rem);line-height:1.02}.hero h1 em{color:var(--wine-light)}.hero p.lead{color:var(--ink-soft)}
.hero-cta{margin-top:30px}.hero-stats div strong{color:var(--wine)}.hero-stats div span{color:var(--ink-soft)}
.search-panel{border:1px solid var(--line);box-shadow:var(--shadow-lg);background:rgba(255,255,255,.96);border-radius:24px}
.search-panel .btn-primary{min-height:48px}

/* Cards / profiles */
.profile-card,.feature-card,.form-card,.mini-card,.price-card,.contact-card,.dash-panel{background:rgba(255,255,255,.94);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:20px}
.profile-card{overflow:hidden;transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;animation:profileFade .65s ease both}
.profile-card:hover{transform:translateY(-7px);box-shadow:var(--shadow-lg);border-color:#e9a9b7}
.profile-card .profile-photo{transition:transform .45s ease,filter .45s ease}.profile-card:hover .profile-photo{transform:scale(1.035)}
.profile-card .btn{border-radius:11px}
.match-badge,.match{background:var(--rose);color:var(--wine);border:1px solid #f0bcc8}
@keyframes profileFade{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}

/* Dashboard */
.dashboard-shell{background:transparent}.dash-sidebar{background:linear-gradient(180deg,#8f1230,#6f1023);box-shadow:8px 0 30px rgba(100,15,35,.12)}
.dash-user{border-bottom-color:rgba(255,255,255,.14)}
.dash-nav button{border-radius:12px;margin:3px 10px;width:calc(100% - 20px);transition:.2s}.dash-nav button:hover{background:rgba(255,255,255,.12);transform:translateX(3px)}.dash-nav button.active{background:linear-gradient(135deg,#ffd9e0,#fff0f2);color:var(--wine);box-shadow:0 8px 20px rgba(0,0,0,.10)}
.dash-main{padding:40px 42px}.dash-head{margin-bottom:24px}.dash-head h1,.dash-head h2{font-size:clamp(2rem,3vw,3rem)}
.dash-extra{gap:18px}.mini-card{padding:22px}.mini-card strong{color:var(--wine);font-size:28px}
.form-card{padding:26px}.field-block input,.field-block select,.field-block textarea,.filter-grid input,.filter-grid select{background:#fff;border:1px solid #ebcfd5;border-radius:12px;transition:border-color .2s,box-shadow .2s}.field-block input:focus,.field-block select:focus,.field-block textarea:focus{border-color:#d84a65;box-shadow:0 0 0 4px rgba(216,74,101,.10);outline:none}
.notification-item{border-bottom:1px solid var(--line);padding:18px;border-radius:14px;margin-bottom:10px}.notification-item.unread{background:#fff0f2;border:1px solid #f2c8d1}
.chat-shell{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}

/* Profile detail */
.profile-detail{animation:profileFade .55s ease both}.main-photo{box-shadow:var(--shadow-lg);border:5px solid #fff}.gallery img{border:2px solid #fff;box-shadow:0 4px 12px rgba(80,20,30,.10);transition:.2s}.gallery img:hover{transform:translateY(-3px);border-color:#e8a9b7}
.action-row .btn-primary{min-width:160px}.feature-grid>div{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 7px 22px rgba(100,22,42,.06)}

/* Footer */
.site-footer{background:linear-gradient(135deg,#7c1025,#a90f30);color:#ffecef}.footer-grid p,.footer-grid a{color:#f9d6dd}.footer-brand .brand-logo{filter:brightness(0) invert(1);opacity:.96}

/* Admin */
body.admin-page{background:linear-gradient(180deg,#fffaf8,#fff1f3)}
@media(max-width:880px){.brand-logo{width:155px;height:58px}.hero{background:linear-gradient(180deg,rgba(255,247,245,.97),rgba(255,238,241,.94)),url('https://images.unsplash.com/photo-1606800052052-a08af7148866?auto=format&fit=crop&w=1800&q=85') center/cover}.dash-main{padding:28px 18px}}
@media(max-width:600px){.brand-logo{width:135px;height:54px}.hero{padding:48px 0 80px}.hero h1{font-size:2.65rem}}

/* Admin-specific light UI */
.admin-page header{height:82px;background:rgba(255,250,248,.96);border-bottom:1px solid var(--line);box-shadow:0 4px 18px rgba(100,22,42,.05)}
.admin-page header .brand{display:flex;align-items:center;gap:10px;font-family:var(--font-display);color:var(--wine)}
.admin-page header .brand-logo{width:185px;height:62px;object-fit:contain}
.admin-page main{max-width:1450px;padding:42px 5% 70px}
.admin-page .stats{gap:18px}.admin-page .stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow);transition:.25s}.admin-page .stat:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}.admin-page .stat b{color:var(--wine)}
.admin-page .panel,.admin-page .card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.admin-page .tab.active,.admin-page .btn.wine{background:linear-gradient(135deg,#c7193f,#a80f2d);border-color:#a80f2d;color:#fff;box-shadow:0 8px 18px rgba(168,15,45,.18)}
.admin-page .table th{background:#fff0f3;color:var(--wine)}



/* ============================================================
   SANJOG LIGHT THEME — FINAL OVERRIDES
   This block intentionally comes LAST so it overrides the legacy
   SweetAlliance dark/wine styling.
   ============================================================ */

/* Brand/header */
.site-header {
  background: rgba(255,250,248,.96) !important;
  border-bottom: 1px solid #f0d8dd !important;
  box-shadow: 0 4px 18px rgba(100,22,42,.05) !important;
  backdrop-filter: blur(14px);
}
.site-header .container {
  min-height: 82px !important;
  height: 82px !important;
}
.brand-logo {
  width: 185px !important;
  height: 62px !important;
  max-width: 185px !important;
  max-height: 62px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}
.brand-mark,
.brand-name {
  display: none !important;
}
.main-nav a {
  color: #321e24 !important;
}
.main-nav a:hover,
.main-nav a.active {
  background: #fff0f3 !important;
  color: #a80f2d !important;
}
.header-actions .user-chip {
  background: #fff0f3 !important;
  color: #741022 !important;
  border: 1px solid #f0d8dd !important;
}

/* Global light palette */
body {
  background: linear-gradient(180deg,#fffaf8 0%,#fff5f3 48%,#fffaf8 100%) !important;
  color: #321e24 !important;
}
h1,h2,h3,h4 {
  color: #741022 !important;
}
p {
  color: #745e64;
}

/* Homepage hero */
.hero {
  position: relative;
  min-height: 560px !important;
  padding: 68px 0 96px !important;
  color: #321e24 !important;
  background:
    linear-gradient(90deg,rgba(255,247,245,.98) 0%,rgba(255,247,245,.88) 45%,rgba(255,235,238,.40) 100%),
    url('../assets/hero-wedding.jpg') center right / cover no-repeat !important;
}
.hero::after {
  background: radial-gradient(circle at 12% 15%,rgba(211,48,79,.08) 0 2px,transparent 3px) !important;
  background-size: 28px 28px !important;
  opacity: .7;
}
.hero h1 {
  color: #741022 !important;
  font-size: clamp(2.8rem,5vw,4.8rem) !important;
}
.hero h1 em {
  color: #d52f50 !important;
}
.hero p.lead {
  color: #745e64 !important;
}
.hero-eyebrow {
  color: #a80f2d !important;
}
.hero-stats div strong {
  color: #a80f2d !important;
}
.hero-stats div span {
  color: #745e64 !important;
}

/* Search panel */
.search-panel {
  background: rgba(255,255,255,.97) !important;
  border: 1px solid #f0d8dd !important;
  box-shadow: 0 24px 70px rgba(100,22,42,.14) !important;
  border-radius: 24px !important;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg,#c7193f,#a80f2d) !important;
  box-shadow: 0 9px 22px rgba(168,15,45,.18) !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg,#a80f2d,#8d0d27) !important;
}
.btn-outline {
  border-color: #d84a65 !important;
  color: #a80f2d !important;
  background: #fff !important;
}
.btn-outline:hover {
  background: #a80f2d !important;
  color: #fff !important;
}
.btn-gold {
  background: linear-gradient(135deg,#e3b75e,#c99532) !important;
  color: #4a2b0b !important;
}

/* Cards and profiles */
.profile-card,
.feature-card,
.form-card,
.mini-card,
.price-card,
.contact-card,
.dash-panel {
  background: rgba(255,255,255,.96) !important;
  border: 1px solid #f0d8dd !important;
  box-shadow: 0 14px 40px rgba(100,22,42,.10) !important;
  border-radius: 20px !important;
}
.profile-card {
  animation: sanjogProfileFade .65s ease both;
  transition: transform .28s ease, box-shadow .28s ease !important;
}
.profile-card:hover {
  transform: translateY(-7px) !important;
  box-shadow: 0 24px 70px rgba(100,22,42,.14) !important;
}
@keyframes sanjogProfileFade {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* User dashboard */
.dash-sidebar {
  background: linear-gradient(180deg,#8f1230,#6f1023) !important;
  box-shadow: 8px 0 30px rgba(100,15,35,.12) !important;
}
.dash-nav button.active {
  background: linear-gradient(135deg,#ffd9e0,#fff0f2) !important;
  color: #a80f2d !important;
}
.mini-card,
.stat-box {
  background: #fff !important;
  border: 1px solid #f0d8dd !important;
  box-shadow: 0 14px 40px rgba(100,22,42,.10) !important;
  border-radius: 18px !important;
}

/* Forms */
.field-block input,
.field-block select,
.field-block textarea,
.filter-grid input,
.filter-grid select {
  background: #fff !important;
  border: 1px solid #ebcfd5 !important;
  border-radius: 12px !important;
}
.field-block input:focus,
.field-block select:focus,
.field-block textarea:focus {
  border-color: #d84a65 !important;
  box-shadow: 0 0 0 4px rgba(216,74,101,.10) !important;
}

/* Profile detail */
.profile-detail {
  animation: sanjogProfileFade .55s ease both;
}
.main-photo {
  box-shadow: 0 24px 70px rgba(100,22,42,.14) !important;
  border: 5px solid #fff !important;
}
.gallery img {
  border: 2px solid #fff !important;
  box-shadow: 0 4px 12px rgba(80,20,30,.10) !important;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg,#7c1025,#a90f30) !important;
}

/* Responsive */
@media (max-width:880px) {
  .brand-logo {
    width: 155px !important;
    height: 58px !important;
    max-width: 155px !important;
  }
  .hero {
    background:
      linear-gradient(180deg,rgba(255,247,245,.97),rgba(255,238,241,.94)),
      url('../assets/hero-wedding.jpg') center / cover no-repeat !important;
  }
}
@media (max-width:600px) {
  .brand-logo {
    width: 135px !important;
    height: 54px !important;
    max-width: 135px !important;
  }
}
@media (max-width:420px) {
  .brand-logo {
    width: 118px !important;
    height: 40px !important;
    max-width: 118px !important;
  }
}

.password-rules{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px;font-size:12px;color:#a23b52}.password-rules span.ok{color:#177245;font-weight:800}.password-rules span{transition:.2s}
