/* ===== Matrimony Pro: complete stylesheet ===== */

:root {
  --mmp-plum: #2b0f24;
  --mmp-rose: #b0245a;
  --mmp-rose-2: #7d1a40;
  --mmp-gold: #d4a72c;
  --mmp-gold-soft: #fbf3dc;
  --mmp-cream: #fffaf6;
  --mmp-ink: #24161f;
  --mmp-muted: #7a6b74;
  --mmp-line: #f0e3ea;
  --mmp-radius: 20px;
  --mmp-shadow: 0 12px 32px rgba(43, 15, 36, 0.08);
  --mmp-shadow-lg: 0 22px 48px rgba(43, 15, 36, 0.16);
}

/* ---------- Base ---------- */
.mmp { max-width: 1120px; margin: 32px auto; padding: 0 18px; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--mmp-ink); line-height: 1.6; }
.mmp h2, .mmp h3, .mmp-admin h1, .mmp-admin h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--mmp-ink); letter-spacing: -0.01em; margin: 0.2em 0 0.4em; }
.mmp-title { font-size: 2rem; }
.mmp-h3 { font-size: 1.25rem; margin: 26px 0 12px; }
.mmp a { color: var(--mmp-rose); text-decoration: none; font-weight: 500; }
.mmp-muted { color: var(--mmp-muted); }
.mmp-small { font-size: 0.85rem; }
.mmp-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--mmp-gold); font-weight: 600; margin: 0; }
.mmp-sub { color: var(--mmp-muted); margin: 0.2em 0 0; }
.mmp-page-head { margin: 10px 0 22px; }
.mmp-back { display: inline-block; margin-bottom: 14px; font-weight: 600; }

/* ---------- Cards and banners ---------- */
.mmp-card { background: #fff; border: 1px solid var(--mmp-line); border-radius: var(--mmp-radius); box-shadow: var(--mmp-shadow); padding: 24px; margin-bottom: 20px; }
.mmp-narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.mmp-danger-card { border-color: #f3d3d3; }
.mmp-upsell { background: linear-gradient(135deg, #fffdf6, #fbf1f6); border-color: #ead9a0; }
.mmp-banner { padding: 14px 18px; border-radius: 14px; margin: 14px 0; font-size: 0.95rem; border-left: 4px solid; }
.mmp-banner-ok   { background: #ecfbf2; border-color: #1e7a4a; color: #135236; }
.mmp-banner-err  { background: #fef3f2; border-color: #b42318; color: #912018; }
.mmp-banner-warn { background: var(--mmp-gold-soft); border-color: var(--mmp-gold); color: #6b5312; }
.mmp-banner-info { background: #f7f1fa; border-color: var(--mmp-rose); color: #4a1a38; }

/* ---------- Buttons ---------- */
.mmp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(135deg, var(--mmp-rose), var(--mmp-rose-2)); color: #fff !important; border: 0; padding: 11px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; box-shadow: 0 8px 20px rgba(176, 36, 90, 0.25); transition: transform 0.2s, box-shadow 0.2s; margin: 4px 6px 4px 0; text-decoration: none !important; }
.mmp-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(176, 36, 90, 0.32); }
.mmp-btn-ghost { background: #fff !important; color: var(--mmp-rose) !important; border: 1.5px solid var(--mmp-rose); box-shadow: none; }
.mmp-btn-ghost:hover { background: #fdf2f7 !important; box-shadow: none; }
.mmp-btn-warn { background: linear-gradient(135deg, #d93025, #b42318) !important; }
.mmp-btn-block { display: flex; width: 100%; margin-top: 10px; }
.mmp-btn-sm { padding: 6px 12px; font-size: 0.78rem; margin: 0; }
.mmp-inline { display: inline-block; margin: 0; }
.mmp-form-block { margin: 8px 0; }

/* ---------- Forms ---------- */
.mmp-form { background: #fff; border: 1px solid var(--mmp-line); border-radius: var(--mmp-radius); box-shadow: var(--mmp-shadow); padding: 30px; max-width: 820px; }
.mmp-form label, .mmp-filter label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
.mmp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.mmp input[type="text"], .mmp input[type="email"], .mmp input[type="password"], .mmp input[type="number"], .mmp input[type="date"], .mmp input[type="url"], .mmp select, .mmp textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1.5px solid var(--mmp-line); border-radius: 12px; background: var(--mmp-cream); font: inherit; font-weight: 400; color: var(--mmp-ink); box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s; }
.mmp input:focus, .mmp select:focus, .mmp textarea:focus { outline: none; border-color: var(--mmp-rose); box-shadow: 0 0 0 4px rgba(176, 36, 90, 0.12); background: #fff; }
.mmp textarea { resize: vertical; }
.mmp .mmp-check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.mmp input[type="checkbox"], .mmp input[type="radio"] { accent-color: var(--mmp-rose); width: 18px; height: 18px; }
.mmp-radio { border: 1.5px dashed var(--mmp-line); border-radius: 14px; padding: 14px 18px; margin: 16px 0; }
.mmp-radio legend { font-weight: 600; color: var(--mmp-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.mmp-radio label { font-weight: 400; display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.mmp-current-photo { margin-bottom: 12px; }

/* ---------- Filters ---------- */
.mmp-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--mmp-line); border-radius: var(--mmp-radius); box-shadow: var(--mmp-shadow); padding: 16px; margin-bottom: 26px; }
.mmp-filter input, .mmp-filter select { flex: 1 1 140px; min-width: 0; width: auto; margin: 0; padding: 10px 14px; border-radius: 999px; }
.mmp-filter input[type="number"] { flex: 0 1 96px; }
.mmp-filter .mmp-btn { margin: 0; }

/* ---------- Stats ---------- */
.mmp-stats-grid, .mmp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 18px 0; }
.mmp-stat { background: #fff; border: 1px solid var(--mmp-line); border-radius: var(--mmp-radius); box-shadow: var(--mmp-shadow); padding: 20px; }
.mmp-stat b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.8rem; color: var(--mmp-rose); }
.mmp-stat span { color: var(--mmp-muted); font-size: 0.85rem; }
.mmp-hero { background: linear-gradient(135deg, var(--mmp-plum) 0%, #5a1842 60%, #8a2a5e 100%); color: #fff; border-radius: 24px; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: var(--mmp-shadow-lg); margin-bottom: 18px; }
.mmp-hero h2 { color: #fff; font-size: 2rem; margin: 4px 0; }
.mmp-hero .mmp-sub { color: rgba(255, 255, 255, 0.75); }
.mmp-hero .mmp-eyebrow { color: var(--mmp-gold); }
.mmp-plan { background: var(--mmp-gold); color: var(--mmp-plum); padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.mmp-bar { height: 10px; background: #f3e7ee; border-radius: 999px; overflow: hidden; margin: 10px 0; }
.mmp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--mmp-rose), var(--mmp-gold)); border-radius: 999px; }

/* ---------- Member grid ---------- */
.mmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.mmp-member { background: #fff; border: 1px solid var(--mmp-line); border-radius: var(--mmp-radius); box-shadow: var(--mmp-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.mmp-member:hover { transform: translateY(-5px); box-shadow: var(--mmp-shadow-lg); }
.mmp-member-photo { position: relative; height: 260px; background: linear-gradient(160deg, #fbe7f0, #f6d9e6 50%, #fbf1dc); }
.mmp-card-img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.mmp-avatar-init { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--mmp-rose), var(--mmp-gold)); color: #fff; font-family: 'Playfair Display', Georgia, serif; font-size: 3.2rem; font-weight: 700; }
.mmp-member-photo .mmp-avatar-init { width: 100%; height: 100%; }
.mmp-lock { position: absolute; bottom: 10px; left: 10px; background: rgba(255, 255, 255, 0.92); padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--mmp-plum); }
.mmp-verified { position: absolute; top: 12px; left: 12px; background: #fff; color: #1e7a4a; font-size: 0.72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: var(--mmp-shadow); }
.mmp-verified-inline { color: #1e7a4a; font-weight: 700; font-size: 0.85rem; }
.mmp-score { position: absolute; top: 12px; right: 12px; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--mmp-gold) calc(var(--p) * 1%), #f1e4ea 0); display: flex; align-items: center; justify-content: center; }
.mmp-score b { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--mmp-plum); }
.mmp-member-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.mmp-member-body h3 { font-size: 1.2rem; margin: 0; }
.mmp-meta { margin: 2px 0; color: var(--mmp-muted); font-size: 0.9rem; }
.mmp-tags { margin: 2px 0 10px; color: var(--mmp-muted); font-size: 0.85rem; }
.mmp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: auto; }
.mmp-count-badge { position: absolute; bottom: 10px; right: 10px; background: rgba(43, 15, 36, 0.85); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }

/* ---------- Profile detail ---------- */
.mmp-detail { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 30px; background: #fff; border: 1px solid var(--mmp-line); border-radius: 24px; box-shadow: var(--mmp-shadow); padding: 28px; }
.mmp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mmp-gal-item { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--mmp-cream); }
.mmp-gal-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.mmp-locked-box { min-height: 300px; background: linear-gradient(160deg, #fbe7f0, #f6d9e6 50%, #fbf1dc); border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: var(--mmp-muted); }
.mmp-big-init { width: 110px; height: 110px; font-size: 2.6rem; border-radius: 50%; }
.mmp-detail-info h2 { font-size: 2.1rem; margin: 6px 0; }
.mmp-score-lg { display: inline-flex; align-items: center; gap: 12px; background: var(--mmp-gold-soft); border-radius: 999px; padding: 8px 20px 8px 14px; margin: 10px 0 18px; }
.mmp-score-lg b { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; color: var(--mmp-rose); }
.mmp-score-lg span { color: var(--mmp-muted); font-size: 0.85rem; }
.mmp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; }
.mmp-facts div { background: var(--mmp-cream); border: 1px solid var(--mmp-line); border-radius: 12px; padding: 12px 14px; }
.mmp-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--mmp-muted); font-weight: 600; }
.mmp-facts dd { margin: 2px 0 0; font-weight: 500; }
.mmp-about h3 { font-size: 1.1rem; }
.mmp-report { margin: 18px 0 6px; background: var(--mmp-cream); border: 1px solid var(--mmp-line); border-radius: 14px; padding: 12px 16px; }
.mmp-report summary { cursor: pointer; font-weight: 600; color: #b42318; }

/* ---------- Rows ---------- */
.mmp-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--mmp-line); border-radius: 18px; box-shadow: 0 6px 18px rgba(43, 15, 36, 0.05); padding: 14px 18px; margin-bottom: 12px; }
.mmp-row-info { display: flex; align-items: center; gap: 14px; }
.mmp-row-info strong { font-family: 'Playfair Display', Georgia, serif; font-size: 1.08rem; }
.mmp-row-actions { display: flex; gap: 6px; align-items: center; }
.mmp-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 52px; }
.mmp-badge { background: var(--mmp-rose); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-left: 6px; }
.mmp-thumb { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; }
.mmp-thumb-lg { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; display: block; }

/* ---------- Chat ---------- */
.mmp-chat-wrap { background: #fff; border: 1px solid var(--mmp-line); border-radius: var(--mmp-radius); box-shadow: var(--mmp-shadow); padding: 22px; margin-top: 24px; }
.mmp-chat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mmp-chat-head h3 { margin: 0; }
#mmp-chat .mmp-chat-list { height: 360px; overflow-y: auto; background: var(--mmp-cream); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mmp-bubble { max-width: 72%; padding: 10px 14px; border-radius: 18px; font-size: 0.93rem; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.mmp-bubble span { display: block; font-size: 0.7rem; opacity: 0.7; margin-top: 4px; }
.mmp-bubble.mine { align-self: flex-end; background: linear-gradient(135deg, var(--mmp-rose), var(--mmp-rose-2)); color: #fff; border-bottom-right-radius: 6px; }
.mmp-bubble.theirs { align-self: flex-start; background: #fff; border: 1px solid var(--mmp-line); border-bottom-left-radius: 6px; }
.mmp-chat-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.mmp-chat-form textarea { flex: 1; margin: 0; min-height: 44px; max-height: 120px; }
.mmp-err-text { color: #b42318; font-size: 0.85rem; min-height: 1em; margin: 6px 0 0; }

/* ---------- Plans ---------- */
.mmp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 20px; }
.mmp-plan-card { position: relative; background: #fff; border: 1px solid var(--mmp-line); border-radius: 24px; box-shadow: var(--mmp-shadow); padding: 30px 26px; display: flex; flex-direction: column; }
.mmp-plan-card.featured { background: linear-gradient(160deg, var(--mmp-plum), #6a1d4b); color: #fff; border: 0; transform: translateY(-6px); box-shadow: var(--mmp-shadow-lg); }
.mmp-plan-card.featured h3 { color: #fff; }
.mmp-plan-card.featured .mmp-price { color: #fff; }
.mmp-plan-card.featured .mmp-price small { color: rgba(255, 255, 255, 0.7); }
.mmp-plan-card.featured .mmp-feat li { border-color: rgba(255, 255, 255, 0.2); }
.mmp-plan-card h3 { font-size: 1.5rem; margin: 0; }
.mmp-price { font-family: 'Playfair Display', Georgia, serif; font-size: 2.4rem; color: var(--mmp-rose); margin: 10px 0 2px; }
.mmp-price small { font-size: 0.95rem; color: var(--mmp-muted); font-family: 'Inter', sans-serif; }
.mmp-feat { list-style: none; padding: 0; margin: 16px 0 0; }
.mmp-feat li { padding: 7px 0; border-bottom: 1px dashed var(--mmp-line); }
.mmp-feat li::before { content: "\2713"; color: var(--mmp-gold); font-weight: 700; margin-right: 8px; }
.mmp-tag { position: absolute; top: 16px; right: 16px; background: var(--mmp-gold); color: var(--mmp-plum); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }

/* ---------- Pager ---------- */
.mmp-pager { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.mmp-pager a { background: #fff; border: 1.5px solid var(--mmp-rose); color: var(--mmp-rose); padding: 9px 22px; border-radius: 999px; font-weight: 600; }
.mmp-pager a:hover { background: var(--mmp-rose); color: #fff; text-decoration: none; }

/* ---------- Photo manager ---------- */
.mmp-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.mmp-section-head h3 { margin: 0; }
.mmp-count { background: var(--mmp-gold-soft); color: var(--mmp-plum); font-weight: 700; font-size: 0.8rem; padding: 5px 12px; border-radius: 999px; }
.mmp-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 16px 0; }
.mmp-photo-item { margin: 0; position: relative; background: #fff; border: 1px solid var(--mmp-line); border-radius: 16px; overflow: hidden; box-shadow: var(--mmp-shadow); }
.mmp-photo-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; display: block; }
.mmp-photo-item.is-main { box-shadow: 0 0 0 3px var(--mmp-gold), var(--mmp-shadow); }
.mmp-main-tag { position: absolute; top: 8px; left: 8px; background: var(--mmp-gold); color: var(--mmp-plum); font-size: 0.68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.mmp-photo-actions { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
.mmp-photo-actions form { margin: 0; }
.mmp-photo-slot { aspect-ratio: 3 / 4; border: 2px dashed var(--mmp-line); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--mmp-muted); font-size: 0.85rem; background: var(--mmp-cream); }
.mmp-photo-slot span { font-size: 1.8rem; color: var(--mmp-rose); line-height: 1; }

/* ---------- Admin ---------- */
.mmp-admin { font-family: 'Inter', system-ui, sans-serif; }
.mmp-admin h1 { color: var(--mmp-rose); font-size: 2rem; }
.mmp-admin .mmp-stat { padding: 16px; }
.mmp-admin .mmp-review { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; background: #fff; border: 1px solid var(--mmp-line); border-radius: 16px; box-shadow: var(--mmp-shadow); padding: 16px; margin: 12px 0; }
.mmp-admin .mmp-review-info { flex: 1; min-width: 240px; }
.mmp-admin .mmp-review form { display: inline-block; margin: 6px 6px 0 0; }
.mmp-admin .button-primary { background: var(--mmp-rose); border-color: var(--mmp-rose-2); }
.mmp-admin .widefat { border-radius: 12px; overflow: hidden; box-shadow: var(--mmp-shadow); }
.mmp-admin .widefat input, .mmp-admin .widefat select { width: auto; margin: 0; }
.mmp-admin .widefat td input[type="text"] { width: 120px; }
.mmp-thumb-sm { width: 64px; height: 80px; object-fit: cover; object-position: center 25%; border-radius: 10px; margin: 0 6px 6px 0; vertical-align: top; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .mmp-detail { grid-template-columns: 1fr; }
  .mmp-plan-card.featured { transform: none; }
}
@media (max-width: 640px) {
  .mmp { padding: 0 12px; }
  .mmp-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .mmp-member-photo { height: 190px; }
  .mmp-grid-2 { grid-template-columns: 1fr; }
  .mmp-form { padding: 22px; }
  .mmp-hero { padding: 24px; }
  .mmp-hero h2 { font-size: 1.6rem; }
  .mmp-bubble { max-width: 88%; }
  #mmp-chat .mmp-chat-list { height: 300px; }
  .mmp-filter input, .mmp-filter select { flex: 1 1 100%; }
  .mmp-filter input[type="number"] { flex: 1 1 45%; }
  .mmp-row-actions { width: 100%; }
  .mmp-detail { padding: 18px; }
  .mmp-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .mmp-locked-box { min-height: 220px; }
}