/* ---------------------------------------------------------------------------
   Pitampura Rishte Naate - platform design layer (dashboard, cards, wizard,
   plans, profile page). Tokens: warm ivory / deep maroon / muted gold / charcoal.
   --------------------------------------------------------------------------- */
:root {
    --ivory: #fffaf3;
    --ivory-2: #fff3e6;
    --maroon: #7a1225;
    --maroon-2: #9b1b30;
    --gold: #c8942a;
    --gold-2: #e8b84a;
    --charcoal: #2f2a2c;
    --muted: #7a6f72;
    --line: #efdcc8;
    --ok: #1f7a4d;
    --warn: #b7791f;
    --bad: #b3261e;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(74, 21, 34, .08);
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--maroon); color: #fff; padding: 8px 12px; z-index: 2000; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn-maroon { background: var(--maroon-2); color: #fff; border: 1px solid var(--maroon-2); }
.btn-maroon:hover, .btn-maroon:focus { background: var(--maroon); color: #fff; }
.btn-outline-maroon { color: var(--maroon-2); border: 1px solid var(--maroon-2); background: #fff; }
.btn-outline-maroon:hover { background: var(--maroon-2); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; border: 1px solid var(--gold); }
.btn-gold:hover { background: #a97a1f; color: #fff; }
.btn-wa { background: #25d366; color: #fff; border: 1px solid #25d366; }
.btn-wa:hover { background: #1fb257; color: #fff; }
.lab-btn.disabled, .btn.disabled { opacity: .6; pointer-events: none; }

/* header extras */
.nav-dot { display: inline-block; width: 8px; height: 8px; background: var(--bad); border-radius: 50%; margin-left: 4px; vertical-align: middle; }
.nav-bell { position: relative; }
.nav-count { position: absolute; top: -6px; right: -6px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; min-width: 18px; text-align: center; border-radius: 9px; padding: 0 4px; }
.lang-toggle { font-weight: 700; font-size: 13px; background: rgba(255,255,255,.14) !important; color: #fff !important; padding: 0 8px !important; width: auto !important; }
.menu li.active > a { color: var(--maroon-2) !important; }

/* WhatsApp menu */
.wa-float-wrap { position: fixed; right: 20px; bottom: 90px; z-index: 999; }
.wa-float { position: static !important; border: 0; }
.wa-menu { position: absolute; right: 0; bottom: 62px; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; }
.wa-menu[hidden] { display: none; }
.wa-menu-title { font-weight: 600; color: var(--maroon); margin: 4px 6px 8px; font-size: 14px; }
.wa-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--charcoal); font-size: 14px; }
.wa-menu a:hover { background: var(--ivory-2); color: var(--maroon); }
.wa-menu a i { color: #25d366; margin-right: 6px; }

/* section helpers */
.section-lead { max-width: 760px; margin: -10px auto 30px; text-align: center; color: var(--muted); }
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-soft .card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--maroon); }
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step-list li { position: relative; padding: 14px 0 14px 56px; border-bottom: 1px dashed var(--line); }
.step-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--maroon-2); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-list h5 { margin: 0 0 4px; color: var(--charcoal); font-size: 17px; }
.step-list p { margin: 0; color: var(--muted); font-size: 15px; }

/* profile cards (search, matches, home) */
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; position: relative; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard-img { position: relative; aspect-ratio: 4 / 5; background: var(--ivory-2); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-img .placeholder { width: 60%; height: 60%; margin: 20%; object-fit: contain; }
.pcard-badges { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; }
.pcard-badges span { background: rgba(255,255,255,.95); color: var(--maroon); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 12px; border: 1px solid var(--line); }
.pcard-badges span.featured { background: var(--gold); color: #fff; border-color: var(--gold); }
.pcard-shortlist { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95); border: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pcard-shortlist.on, .pcard-shortlist:hover { color: var(--maroon-2); }
.pcard-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.pcard-body h6 { margin: 0 0 2px; font-size: 16px; }
.pcard-body h6 a { color: var(--charcoal); }
.pcard-code { font-size: 12px; color: var(--muted); }
.pcard-meta { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.pcard-match { margin-top: 8px; font-size: 12px; color: var(--ok); font-weight: 600; }
.pcard-match .bar { height: 5px; background: var(--ivory-2); border-radius: 3px; overflow: hidden; margin-top: 3px; }
.pcard-match .bar i { display: block; height: 100%; background: var(--ok); }
.pcard-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 6px; }
.pcard-foot .btn { flex: 1; font-size: 13px; padding: 6px 4px; }
.pcard.locked .pcard-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(74,21,34,.55)); }

/* search page */
.search-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
@media (max-width: 991px) { .search-layout { grid-template-columns: 1fr; } }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: calc(var(--header-h, 90px) + 10px); }
@media (max-width: 991px) { .filter-panel { position: static; } }
.filter-panel h5 { font-size: 16px; color: var(--maroon); margin-bottom: 12px; }
.filter-panel details { border-top: 1px dashed var(--line); padding: 8px 0; }
.filter-panel summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--charcoal); }
.filter-panel .form-label { font-size: 13px; margin-bottom: 2px; color: var(--muted); }
.filter-panel .form-select, .filter-panel .form-control { font-size: 14px; padding: 6px 10px; }
.filter-panel .chips label { display: inline-block; font-size: 13px; margin: 3px 4px 0 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.results-head h2 { font-size: 22px; margin: 0; color: var(--charcoal); }
.results-head .form-select { width: auto; display: inline-block; font-size: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip-row a { font-size: 12px; background: var(--ivory-2); color: var(--maroon); padding: 4px 10px; border-radius: 14px; border: 1px solid var(--line); }
.empty-state { text-align: center; padding: 50px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state img { width: 90px; margin-bottom: 12px; }
.pagination .page-link { color: var(--maroon-2); }
.pagination .page-item.active .page-link { background: var(--maroon-2); border-color: var(--maroon-2); }

/* dashboard shell */
.dash-section { padding: 36px 0 60px; background: var(--ivory); }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-user { display: flex; align-items: center; gap: 14px; }
.dash-avatar { width: 64px; height: 76px; object-fit: cover; border-radius: 10px; border: 2px solid var(--gold-2); background: #fff; }
.dash-name { font-size: 22px; margin: 0; color: var(--charcoal); }
.dash-name small { font-size: 13px; font-weight: 500; }
.dash-status { margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-actions { gap: 8px; }
.dash-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.dash-nav ul { list-style: none; margin: 0; padding: 0; }
.dash-nav a, .dash-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--charcoal); font-size: 14px; width: 100%; background: transparent; border: 0; text-align: left; }
.dash-nav a i, .dash-nav button i { width: 18px; text-align: center; color: var(--gold); }
.dash-nav a:hover, .dash-nav a.active { background: var(--ivory-2); color: var(--maroon); }
.dash-nav a.active i { color: var(--maroon-2); }
.dash-nav-toggle { font-weight: 600; color: var(--maroon) !important; }
.dash-content { min-height: 400px; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.dash-card h3, .dash-card h4 { font-size: 18px; color: var(--maroon); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dash-card h3 .hi, .dash-card h4 .hi { color: var(--gold); font-size: 14px; font-weight: 500; }
.dash-card h3 a.small, .dash-card h4 a.small { font-weight: 500; font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-tile { background: var(--ivory-2); border-radius: 10px; padding: 14px; text-align: center; color: var(--charcoal); display: block; }
.stat-tile:hover { background: #ffe9d2; color: var(--maroon); }
.stat-tile b { display: block; font-size: 26px; line-height: 1.1; color: var(--maroon-2); }
.stat-tile span { font-size: 13px; color: var(--muted); }
.progress-ring { display: flex; align-items: center; gap: 16px; }
.progress-ring .bar { flex: 1; height: 10px; background: var(--ivory-2); border-radius: 5px; overflow: hidden; }
.progress-ring .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--maroon-2)); }
.todo-list { list-style: none; padding: 0; margin: 0; }
.todo-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.todo-list li:last-child { border-bottom: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.notif-list li.unread { background: var(--ivory-2); margin: 0 -10px; padding: 10px; border-radius: 8px; }
.notif-list .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--ivory-2); color: var(--maroon-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-list .t { font-weight: 600; color: var(--charcoal); font-size: 14px; }
.notif-list .b { font-size: 13px; color: var(--muted); }
.notif-list time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.match-list li img { width: 60px; height: 72px; }
.status-pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 12px; background: var(--ivory-2); color: var(--maroon); font-weight: 600; }
.status-pill.ok { background: #e3f4ea; color: var(--ok); }
.status-pill.warn { background: #fff0d6; color: var(--warn); }
.status-pill.bad { background: #fde5e3; color: var(--bad); }
.badge-soft { background: #eef0f4; color: #444; }
.verified-row { display: flex; flex-wrap: wrap; gap: 6px; }
.verified-row span { font-size: 12px; padding: 3px 9px; border-radius: 12px; background: #e3f4ea; color: var(--ok); }
.verified-row span.no { background: #f3f3f3; color: var(--muted); }

/* wizard / steps */
.wizard-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.wizard-steps a, .wizard-steps span { font-size: 12px; padding: 5px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.wizard-steps a.done { background: #e3f4ea; color: var(--ok); border-color: #cfe9d9; }
.wizard-steps a.current, .wizard-steps span.current { background: var(--maroon-2); color: #fff; border-color: var(--maroon-2); }
.wizard-steps a.missing { border-color: var(--warn); color: var(--warn); }
.bio-form .form-label { font-weight: 500; color: var(--charcoal); }
.bio-form .form-control, .bio-form .form-select { padding: 10px 12px; }
.bio-form .title { color: var(--charcoal); border-bottom: 2px solid var(--line); padding-bottom: 8px; font-size: 20px; }
.bio-form .title .hi { color: var(--gold); font-size: 15px; font-weight: 500; }
.bio-form .is-invalid { border-color: var(--bad); }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.reg-steps { display: flex; gap: 8px; margin-bottom: 22px; }
.reg-steps span { flex: 1; text-align: center; font-size: 13px; padding: 8px 4px; border-radius: 8px; background: var(--ivory-2); color: var(--muted); }
.reg-steps span.current { background: var(--maroon-2); color: #fff; font-weight: 600; }
.reg-steps span.done { background: #e3f4ea; color: var(--ok); }
.reg-panel[hidden] { display: none; }
.account-wrapper.wide { max-width: 760px; }
.account-form .form-select { width: 100%; padding: 12px 14px; border: 1px solid #ecf0f3; margin-bottom: 16px; background: #fff; }
.account-form .form-control { margin-bottom: 16px; }
.account-form .form-check { text-align: left; margin-bottom: 14px; }
.login-tabs { display: flex; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.login-tabs button { flex: 1; border: 0; background: #fff; padding: 10px; font-weight: 600; color: var(--muted); }
.login-tabs button.active { background: var(--maroon-2); color: #fff; }

/* photo manager */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.photo-tile { position: relative; background: var(--ivory-2); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.photo-tile .ptools { display: flex; gap: 4px; padding: 6px; background: #fff; }
.photo-tile .ptools form, .photo-tile .ptools button { flex: 1; }
.photo-tile .pstatus { position: absolute; top: 6px; left: 6px; font-size: 11px; padding: 2px 7px; border-radius: 10px; background: rgba(255,255,255,.95); }
.photo-tile.main { border: 2px solid var(--gold); }
.photo-tile.main::after { content: 'Main photo'; position: absolute; bottom: 44px; left: 0; right: 0; background: var(--gold); color: #fff; font-size: 11px; text-align: center; padding: 2px; }
.crop-stage { max-height: 60vh; }
.crop-stage img { max-width: 100%; display: block; }
#profilepic, .main-preview { max-width: 160px; border-radius: 10px; }

/* profile page */
.profile-hero { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.profile-cover { height: 140px; background: url(../images/hindu/mandap.svg) center / cover; position: relative; }
.profile-cover::after { content: ''; position: absolute; inset: 0; background: rgba(74,21,34,.35); }
.profile-head { display: flex; gap: 20px; padding: 0 24px 20px; margin-top: -60px; position: relative; align-items: flex-end; flex-wrap: wrap; }
.profile-head img.pp { width: 150px; height: 180px; object-fit: cover; border-radius: 12px; border: 4px solid #fff; background: var(--ivory-2); box-shadow: var(--shadow); }
.profile-head .who { flex: 1; min-width: 200px; padding-top: 70px; }
.profile-head .who h1 { font-size: 26px; margin: 0; color: var(--charcoal); }
.profile-head .who p { margin: 4px 0 0; color: var(--muted); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 20px; }
.profile-actions .btn { font-size: 14px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 767px) { .profile-grid { grid-template-columns: 1fr; } .profile-head { padding: 0 14px 14px; } .profile-actions { padding: 0 14px 14px; } .profile-head img.pp { width: 120px; height: 144px; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.info-card-title h6 { color: var(--maroon); font-size: 16px; margin-bottom: 10px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.info-list li:last-child { border-bottom: 0; }
.info-list .info-name { width: 42%; color: var(--muted); margin: 0; }
.info-list .info-details { flex: 1; margin: 0; color: var(--charcoal); }
.locked-box { background: var(--ivory-2); border: 1px dashed var(--gold); border-radius: 10px; padding: 16px; text-align: center; }
.match-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.match-box .pct { font-size: 28px; font-weight: 700; color: var(--ok); }
.match-box ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.match-box li { font-size: 12px; padding: 3px 9px; border-radius: 12px; background: #e3f4ea; color: var(--ok); }
.match-box li.miss { background: #f3f3f3; color: var(--muted); text-decoration: line-through; }
.interest-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.interest-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }

/* plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; position: relative; }
.plan-card.highlight { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan-card .tag { position: absolute; top: -12px; left: 20px; background: var(--gold); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 10px; font-weight: 600; }
.plan-card h3 { font-size: 20px; color: var(--maroon); margin: 0 0 4px; }
.plan-card .price { font-size: 30px; font-weight: 700; color: var(--charcoal); }
.plan-card .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan-card ul { list-style: none; padding: 0; margin: 14px 0 18px; flex: 1; }
.plan-card li { font-size: 14px; padding: 5px 0 5px 24px; position: relative; color: var(--charcoal); }
.plan-card li::before { content: '\2713'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan-card .current { font-size: 13px; color: var(--ok); font-weight: 600; }
.pay-box { background: #fff; border: 1px dashed var(--gold); border-radius: 12px; padding: 16px; }
.pay-box b { color: var(--maroon); }

/* home additions */
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.community-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.community-grid a { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px 16px; color: var(--maroon); font-weight: 500; }
.community-grid a:hover { background: var(--maroon-2); color: #fff; }
.story-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.story-card img { width: 100%; height: 220px; object-fit: cover; }
.story-card .body { padding: 16px 18px; }
.story-card h5 { color: var(--maroon); font-size: 17px; }
.story-card p { color: var(--muted); font-size: 14px; }
.story-card .meta { font-size: 12px; color: var(--gold); font-weight: 600; }
.faq-acc .accordion-button { font-weight: 600; color: var(--charcoal); }
.faq-acc .accordion-button:not(.collapsed) { background: var(--ivory-2); color: var(--maroon); }
.assisted-band { background: linear-gradient(120deg, var(--maroon), var(--maroon-2)); color: #fff; border-radius: var(--radius); padding: 34px; }
.assisted-band h3 { color: #fff; }
.assisted-band p { color: #ffe9d2; }
.safety-list li { margin-bottom: 10px; }
.legal-page h2, .legal-page h3 { font-size: 20px; color: var(--maroon); margin-top: 20px; }

/* timeline (admin) */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 6px 0 10px 16px; position: relative; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-2); }

/* print */
@media print { .dash-nav, .dash-actions, .profile-actions, .wa-float-wrap, .scrollToTop, header, footer, .flash-wrap { display: none !important; } .dash-section { padding: 0; background: #fff; } }

@media (max-width: 575px) {
    .dash-section { padding: 20px 0 40px; }
    .dash-card { padding: 14px; }
    .stat-tile b { font-size: 22px; }
    .results-head h2 { font-size: 18px; }
    .plan-card { padding: 18px; }
    .info-list li { flex-direction: column; gap: 0; }
    .info-list .info-name { width: 100%; font-size: 12px; }
}
