/* =========================================================
   18 Gotra Matrimony — Grand / Premium theme
   Rich maroon + gold, elegant serif headings, decorative UI.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+Kannada:wght@400;500;600;700&family=Noto+Serif+Kannada:wght@500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --maroon: #6d1b2e;
  --maroon-dark: #4e1220;
  --maroon-deep: #3a0d18;
  --gold: #c9a227;
  --gold-light: #e8cf7e;
  --gold-soft: #f7efd6;
  --cream: #fbf7ef;
  --ink: #2a1a1f;
  --muted: #8a7a7f;
  --border: #ecdfca;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(77, 18, 32, 0.12);
  --shadow-lg: 0 20px 50px rgba(77, 18, 32, 0.22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --kannada: 'Noto Sans Kannada', 'Poppins', sans-serif;
  --kannada-serif: 'Noto Serif Kannada', 'Cormorant Garamond', serif;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(201,162,39,0.12), transparent),
    var(--cream);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: 0.3px; }

/* Kannada text: use a dedicated Kannada web font for clean, consistent
   rendering across devices. Applied via lang="kn" or the .kn class. */
:lang(kn), .kn { font-family: var(--kannada); }
h1:lang(kn), h2:lang(kn), h3:lang(kn), .kn-serif {
  font-family: var(--kannada-serif); letter-spacing: 0;
}
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

/* Gold divider used under section titles */
.gold-rule { height: 3px; width: 64px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 3px; margin-top: 6px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(58,13,24,0.35);
}
.header-inner { max-width: 1220px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; cursor: pointer; }
.brand-logo { font-size: 1.9rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.7rem;
  background: linear-gradient(90deg, #fff, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}
/* Make the "18" bold and gold so both digits stand out.
   Use a sans-serif with lining numerals so 1 and 8 are the same height
   (the serif font renders old-style figures where "1" looks short). */
.brand-18 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  font-weight: 900;
  font-size: 1.15em;
  color: var(--gold-light);
  -webkit-text-fill-color: var(--gold-light);
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  margin-right: 0.1em;
}
.nav { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; flex-wrap: wrap; }
.nav-btn {
  background: transparent; border: 1px solid transparent; padding: 0.55rem 0.95rem;
  border-radius: 999px; color: #f3e6d6; font-weight: 500; font-size: 0.92rem; transition: all 0.15s ease;
}
.nav-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(201,162,39,0.5); }
.btn-primary-nav {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--maroon-deep); font-weight: 700; border: none;
  box-shadow: 0 4px 14px rgba(201,162,39,0.4);
}
.btn-primary-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201,162,39,0.55); }
.badge { background: var(--gold); color: var(--maroon-deep); font-size: 0.72rem; font-weight: 800; min-width: 19px; height: 19px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* ---------- Layout ---------- */
.main { max-width: 1220px; margin: 0 auto; padding: 1.75rem 1.25rem 3.5rem; }
.view > h2 { font-size: 2rem; color: var(--maroon); margin-bottom: 0.25rem; }
.view > h2 + * { margin-top: 1.25rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 85% -60px, rgba(201,162,39,0.28), transparent),
    linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff; border-radius: 22px; padding: 3.25rem 2.5rem; margin-bottom: 2rem;
  border: 1px solid rgba(201,162,39,0.35); box-shadow: var(--shadow-lg);
  text-align: center;
}
.hero::before {
  content: "❈"; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 1.4rem; opacity: 0.9;
}
.hero::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,162,39,0.3); border-radius: 16px; pointer-events: none;
}
.hero h1 { font-size: 2.9rem; font-weight: 700; margin-bottom: 0.6rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { opacity: 0.94; font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.hero .hero-cta { margin-top: 1.5rem; }

/* ---------- Browse layout ---------- */
.browse-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.75rem; align-items: start; }
.filters {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 0.9rem;
  box-shadow: var(--shadow);
}
.filters h3 { font-size: 1.4rem; color: var(--maroon); }
.filters label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.filters input, .filters select { padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--cream); transition: all 0.15s ease; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(201,162,39,0.18); }
.age-row { display: flex; gap: 0.6rem; }
.age-row label { flex: 1; }

.results-header { display: flex; align-items: baseline; gap: 0.85rem; margin-bottom: 1.25rem; }
.results-header h2 { font-size: 1.9rem; color: var(--maroon); }
.result-count { color: var(--muted); font-size: 0.9rem; }

/* ---------- Profile grid & cards ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.profile-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease; position: relative;
}
.profile-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.profile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pc-photo {
  background: radial-gradient(circle at 50% 40%, var(--gold-soft), var(--cream));
  font-size: 5.5rem; text-align: center; padding: 1.75rem 0 1.25rem; cursor: pointer;
}
.pc-body { padding: 0.5rem 1.15rem 0.4rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; cursor: pointer; }
.pc-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--maroon); }
.pc-meta { color: var(--muted); font-size: 0.86rem; }
.pc-prof { font-size: 0.9rem; margin-top: 0.2rem; color: var(--ink); font-weight: 500; }
.pc-actions { display: flex; gap: 0.5rem; padding: 0.85rem 1.15rem 1.2rem; }
.pc-actions .btn { flex: 1; padding: 0.5rem; font-size: 0.86rem; }
.no-results, .empty-state { color: var(--muted); padding: 3rem 0; text-align: center; font-size: 1.05rem; }
.empty-state .btn { margin-top: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  background: var(--white); border: 1.5px solid var(--gold); color: var(--maroon);
  padding: 0.55rem 1rem; border-radius: 999px; font-weight: 600; transition: all 0.15s ease;
}
.btn:hover { background: var(--gold-soft); }
.btn-primary {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border: 1.5px solid var(--maroon-dark); color: #fff; box-shadow: 0 4px 14px rgba(77,18,32,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(77,18,32,0.45); }
.btn-block { width: 100%; display: block; }
.btn.active-fav { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); border-color: var(--gold); color: var(--maroon-deep); }
.back-btn { margin-bottom: 1.25rem; }

/* ---------- Detail view ---------- */
.detail-content { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.detail-head {
  display: flex; gap: 1.75rem; align-items: center; padding: 2.25rem;
  background: radial-gradient(500px 220px at 80% -40px, rgba(201,162,39,0.25), transparent), linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff; flex-wrap: wrap; position: relative;
}
.detail-head::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.detail-avatar { font-size: 6.5rem; background: rgba(255,255,255,0.12); border-radius: 50%; width: 130px; height: 130px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.3); overflow: hidden; }
.detail-avatar .profile-photo-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Profile photos replacing the emoji on cards and detail */
.pc-photo .profile-photo-img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* Photo upload control in the registration/edit form */
.photo-upload-row { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.photo-preview {
  width: 110px; height: 110px; flex: 0 0 110px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--gold-soft), var(--cream));
  border: 3px solid var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; box-shadow: var(--shadow);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload-text { display: flex; flex-direction: column; gap: 0.4rem; }
.photo-upload-btn {
  display: inline-block; background: var(--maroon); color: #fff; padding: 0.6rem 1.1rem;
  border-radius: 999px; font-weight: 600; cursor: pointer; border: 1px solid var(--gold);
  width: fit-content; transition: all 0.15s ease;
}
.photo-upload-btn:hover { background: var(--maroon-dark); }
.photo-hint { color: var(--muted); font-size: 0.85rem; margin: 0; }
.photo-remove-btn { background: none; border: none; color: #c0392b; font-size: 0.85rem; cursor: pointer; text-align: left; padding: 0; width: fit-content; }
.detail-head h2 { font-size: 2.1rem; margin-bottom: 0.2rem; color: #fff; }
.detail-head .sub { color: var(--gold-light); font-weight: 500; }
.detail-body { padding: 2.25rem; }
.detail-about { margin-bottom: 1.75rem; font-size: 1.1rem; font-style: italic; color: var(--ink); border-left: 3px solid var(--gold); padding-left: 1rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem 1.75rem; }
.detail-item .k { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.detail-item .v { font-weight: 600; font-size: 1.05rem; }
.detail-actions { display: flex; gap: 0.85rem; padding: 0 2.25rem 2.25rem; flex-wrap: wrap; }

/* ---------- Matches tabs ---------- */
.matches-tabs { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }
.tab { background: var(--white); border: 1.5px solid var(--border); padding: 0.6rem 1.35rem; border-radius: 999px; font-weight: 600; color: var(--muted); transition: all 0.15s ease; }
.tab.active { background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%); border-color: var(--maroon-dark); color: #fff; box-shadow: 0 4px 14px rgba(77,18,32,0.3); }

/* ---------- Forms ---------- */
.profile-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.25rem; display: flex; flex-direction: column; gap: 1.15rem; box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.15rem; }
.profile-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.profile-form input, .profile-form select, .profile-form textarea { padding: 0.65rem 0.8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--cream); text-transform: none; }
.profile-form input:focus, .profile-form select:focus, .profile-form textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(201,162,39,0.18); }
.field-error input, .field-error select { border-color: #c0392b; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%); color: #fff; padding: 0.8rem 1.5rem; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 50; font-weight: 500; border: 1px solid var(--gold); }

/* ---------- Footer ---------- */
.footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 2.5rem 1.25rem; border-top: 1px solid var(--border); margin-top: 1rem; }
.footer::before { content: "❈ ❈ ❈"; display: block; color: var(--gold); letter-spacing: 8px; margin-bottom: 0.75rem; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .browse-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .hero { padding: 2.25rem 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .brand-name { font-size: 1.35rem; }
  .detail-head { justify-content: center; text-align: center; }
}

/* ---------- Trial / subscription banner ---------- */
.access-banner {
  border-radius: var(--radius); padding: 0.9rem 1.25rem; margin-bottom: 1.25rem;
  font-weight: 500; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  border: 1px solid var(--border);
}
.access-banner.trial { background: var(--gold-soft); color: var(--maroon-dark); border-color: var(--gold); }
.access-banner.paid { background: #dcfce7; color: #166534; border-color: #86efac; }
.access-banner.expired { background: #fdecea; color: #a61e2e; border-color: #f5b5b5; }

/* ---------- Locked contact box on the detail page ---------- */
.contact-locked {
  margin-top: 1rem; padding: 1.25rem; border: 1.5px dashed var(--gold);
  background: var(--gold-soft); border-radius: var(--radius); text-align: center;
}
.contact-locked .lock-icon { font-size: 1.8rem; }
.contact-locked h4 { font-family: var(--serif); color: var(--maroon); font-size: 1.25rem; margin: 0.25rem 0; }
.contact-locked p { color: var(--maroon-dark); font-size: 0.92rem; margin: 0 auto; max-width: 460px; }
.contact-open { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: #dcfce7; border: 1px solid #86efac; }
.contact-open .k { color: #166534; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.contact-open .v { font-weight: 700; font-size: 1.2rem; color: #14532d; }

/* ---------- Admin member status pills + action buttons ---------- */
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.status-pill.paid { background: #dcfce7; color: #166534; }
.status-pill.trial { background: var(--gold-soft); color: var(--maroon-dark); }
.status-pill.expired { background: #fdecea; color: #a61e2e; }
.status-pill.admin { background: #ede9fe; color: #5b21b6; }
.member-actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.member-actions button { padding: 0.3rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; cursor: pointer; border: 1.5px solid; background: #fff; }
.act-grant { border-color: #166534; color: #166534; }
.act-grant:hover { background: #166534; color: #fff; }
.act-extend { border-color: var(--gold); color: var(--maroon-dark); }
.act-extend:hover { background: var(--gold); color: #fff; }
.act-revoke { border-color: #a61e2e; color: #a61e2e; }
.act-revoke:hover { background: #a61e2e; color: #fff; }

/* ---------- Terms / Privacy page (shown once before registration) ---------- */
.terms-page { max-width: 640px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.25rem; box-shadow: var(--shadow); }
.terms-page h2 { color: var(--maroon); margin-bottom: 0.3rem; }
.terms-intro { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
/* The policy text sits in a short scroll box so it never fills the screen. */
.terms-scroll { max-height: 240px; overflow-y: auto; padding: 0.75rem 1rem; background: var(--cream); border: 1px solid var(--border); border-radius: 12px; font-size: 0.82rem; line-height: 1.5; color: var(--ink); margin-bottom: 1.1rem; }
.terms-scroll h4 { color: var(--maroon); margin: 0.8rem 0 0.25rem; font-size: 0.9rem; }
.terms-scroll h4:first-child { margin-top: 0; }
.terms-scroll p { margin-bottom: 0.5rem; }
@media (max-width: 600px) {
  .terms-page { padding: 1.1rem; }
  .terms-scroll { max-height: 200px; font-size: 0.78rem; }
}

/* ---------- Create-profile highlight banner ---------- */
.create-highlight {
  background: linear-gradient(135deg, var(--gold-soft), #fff);
  border: 1px solid var(--gold); border-left: 5px solid var(--gold);
  border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 1.1rem;
  color: var(--maroon); font-size: 1rem; box-shadow: var(--shadow);
}

/* ---------- Cover photo upload ---------- */
.cover-upload { margin-bottom: 1.1rem; }
.cover-preview {
  width: 100%; height: 170px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.6rem;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { color: var(--gold-light); font-weight: 600; }
.cover-btn { margin-right: 0.6rem; }

/* Cover banner on the detail page */
.detail-cover { width: 100%; height: 200px; object-fit: cover; border-radius: 14px 14px 0 0; display: block; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-card {
  background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%;
  max-height: 80vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold);
}
.modal-card h3 { color: var(--maroon); padding: 1.1rem 1.25rem 0.5rem; font-size: 1.25rem; }
.modal-body { overflow-y: auto; padding: 0 1.25rem; font-size: 0.82rem; color: var(--ink); line-height: 1.5; }
/* On phones keep the modal compact so it never feels like a wall of text. */
@media (max-width: 600px) {
  .modal-card { max-height: 70vh; }
  .modal-card h3 { font-size: 1.1rem; }
  .modal-body { font-size: 0.78rem; }
}
.modal-body h4 { color: var(--maroon); margin: 0.9rem 0 0.3rem; font-size: 0.95rem; }
.modal-body p { margin-bottom: 0.5rem; }
.modal-actions { display: flex; gap: 0.6rem; justify-content: center; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.modal-actions .btn { min-width: 160px; }

/* ---------- Locked profile card (non-subscribers) ---------- */
.locked-card .pc-body { text-align: center; padding: 0.9rem 1rem 0.4rem; }
.pc-id { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--maroon); letter-spacing: 0.5px; }
.pc-locked-note { color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
.pc-id-inline { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.locked-card .pc-photo { cursor: pointer; }

/* ---------- Subscription page ---------- */
.subscribe-card { max-width: 520px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: var(--shadow-lg); text-align: center; }
.sub-badge { font-size: 3rem; }
.subscribe-card h2 { color: var(--maroon); margin: 0.3rem 0; }
.sub-lead { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.price-box { background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: #fff; border-radius: 16px; padding: 1.1rem; margin: 0 auto 1.4rem; max-width: 240px; border: 1px solid var(--gold); }
.price-amount { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.price-note { font-size: 0.85rem; opacity: 0.9; margin-top: 0.2rem; }
.pay-steps { text-align: left; background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.pay-steps h3 { color: var(--maroon); font-size: 1.1rem; margin-bottom: 0.6rem; }
.pay-steps ol { margin: 0; padding-left: 1.2rem; }
.pay-steps li { margin-bottom: 0.55rem; font-size: 0.92rem; line-height: 1.45; }
.pay-number { font-weight: 700; color: var(--maroon); background: var(--gold-soft); padding: 1px 8px; border-radius: 6px; letter-spacing: 0.5px; }
.sub-foot { color: var(--muted); font-size: 0.82rem; margin-top: 0.9rem; }

/* ---------- Connections & chat ---------- */
.conn-section { margin-bottom: 1.75rem; }
.conn-section h3 { color: var(--maroon); font-size: 1.3rem; margin-bottom: 0.75rem; }
.conn-list { display: flex; flex-direction: column; gap: 0.6rem; }
.conn-item { display: flex; align-items: center; gap: 0.9rem; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 0.7rem 0.9rem; box-shadow: var(--shadow); }
.conn-avatar { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; overflow: hidden; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; border: 2px solid var(--gold); }
.conn-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conn-info { flex: 1; min-width: 0; }
.conn-name { font-weight: 700; color: var(--ink); }
.conn-sub { color: var(--muted); font-size: 0.85rem; }
.conn-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.conn-actions .btn { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

/* Chat */
.chat-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; height: 70vh; }
.chat-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: #fff; border-bottom: 2px solid var(--gold); }
.chat-with { font-weight: 700; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; background: var(--cream); }
.msg { max-width: 75%; padding: 0.5rem 0.8rem; border-radius: 14px; font-size: 0.92rem; line-height: 1.4; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--maroon); color: #fff; border-bottom-right-radius: 4px; }
.msg.theirs { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-time { font-size: 0.68rem; opacity: 0.65; margin-top: 2px; }
.chat-form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--border); background: #fff; }
.chat-form input { flex: 1; padding: 0.6rem 0.9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--cream); }
.chat-form input:focus { outline: none; border-color: var(--gold); }

/* Section heading inside the profile form */
.form-section-title { color: var(--maroon); font-size: 1.2rem; margin: 1.5rem 0 0.75rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--gold-soft); }

/* ---------- Footer WhatsApp support button ---------- */
.support-btn {
  display: inline-block; margin: 0.9rem auto 0.3rem; padding: 0.6rem 1.3rem;
  background: #25D366; color: #fff; font-weight: 700; border-radius: 999px;
  text-decoration: none; font-size: 0.95rem; box-shadow: 0 4px 14px rgba(37,211,102,0.4);
  transition: all 0.15s ease;
}
.support-btn:hover { background: #1ebe5a; transform: translateY(-2px); }
.support-note { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; letter-spacing: 0.5px; }
