/*!
 * JHAPA MATRIMONIAL — UI theme
 * (c) JHAPATECHNICAL / Jhapa Technical Pvt. Ltd.
 * Brand colours are injected as --jm-primary / --jm-secondary / --jm-accent from Settings > Branding.
 */
:root {
  --jm-primary: #0F27D9;
  --jm-secondary: #04A2E0;
  --jm-accent: #EB0000;
  --jm-ink: #0f1733;
  --jm-muted: #5b6478;
  --jm-bg: #f5f8fd;
  --jm-surface: #ffffff;
  --jm-line: #dfe7f3;
  --jm-soft: #eaf2fc;
  --jm-dark: #0a1240;
  --jm-success: #2f7d57;
  --jm-radius: 14px;
  --jm-radius-sm: 10px;
  --jm-shadow: 0 1px 2px rgba(15, 23, 51, .05), 0 6px 20px rgba(15, 39, 217, .07);
  --jm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --jm-serif: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-family: var(--jm-font);
  --bs-body-color: var(--jm-ink);
  --bs-link-color-rgb: 15, 39, 217;
  --bs-primary: var(--jm-primary);
  --bs-primary-rgb: 15, 39, 217;
  --bs-info: var(--jm-secondary);
  --bs-info-rgb: 4, 162, 224;
  --bs-danger: var(--jm-accent);
  --bs-danger-rgb: 235, 0, 0;
  --bs-border-color: var(--jm-line);
}

body { background: var(--jm-bg); color: var(--jm-ink); font-size: .95rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display-font { font-family: var(--jm-serif); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
a { color: var(--jm-primary); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--jm-primary) 80%, #000); }
.text-muted { color: var(--jm-muted) !important; }
.text-primary-brand { color: var(--jm-primary) !important; }
.text-gold { color: var(--jm-secondary) !important; }
.bg-soft { background: var(--jm-soft) !important; }
.fw-600 { font-weight: 600; }
.small-caps { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--jm-muted); }

/* Buttons */
.btn { border-radius: 999px; font-weight: 500; padding: .5rem 1.15rem; }
.btn-sm { padding: .3rem .8rem; }
.btn-brand { background: var(--jm-primary); border-color: var(--jm-primary); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: color-mix(in srgb, var(--jm-primary) 85%, #000); border-color: color-mix(in srgb, var(--jm-primary) 85%, #000); color: #fff; }
.btn-outline-brand { border-color: var(--jm-primary); color: var(--jm-primary); background: transparent; }
.btn-outline-brand:hover { background: var(--jm-primary); color: #fff; }
.btn-gold { background: var(--jm-secondary); border-color: var(--jm-secondary); color: #fff; }
.btn-gold:hover { background: color-mix(in srgb, var(--jm-secondary) 85%, #000); color: #fff; }
.btn-light-soft { background: var(--jm-soft); border-color: var(--jm-soft); color: var(--jm-ink); }
.btn-light-soft:hover { background: var(--jm-line); }
.btn:disabled, .btn.disabled { opacity: .55; }

/* Forms */
.form-control, .form-select { border-radius: var(--jm-radius-sm); border-color: var(--jm-line); padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--jm-secondary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--jm-secondary) 20%, transparent); }
.form-label { font-weight: 500; font-size: .87rem; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--jm-primary); border-color: var(--jm-primary); }
.required::after { content: " *"; color: var(--jm-accent); }

/* Navbar */
.jm-navbar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--jm-line); }
.jm-navbar .navbar-brand img { max-height: 42px; }
.jm-navbar .brand-text { font-family: var(--jm-serif); font-size: 1.35rem; font-weight: 700; color: var(--jm-primary); letter-spacing: -.02em; }
@media (max-width: 575.98px) { .jm-navbar .brand-text { font-size: 1.05rem; } .jm-navbar .navbar-brand img { width: 28px; height: 28px; } .jm-navbar > .container { flex-wrap: nowrap; } .jm-navbar .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: .5rem 1rem 1rem; border-bottom: 1px solid var(--jm-line); box-shadow: 0 12px 24px rgba(15,23,51,.08); } }
.jm-navbar .nav-link { color: var(--jm-ink); font-weight: 500; padding: .5rem .8rem !important; }
.jm-navbar .nav-link:hover, .jm-navbar .nav-link.active { color: var(--jm-primary); }
.nav-badge { position: absolute; top: 2px; right: 0; font-size: .6rem; }

/* Cards */
.card, .jm-card { border: 1px solid var(--jm-line); border-radius: var(--jm-radius); background: var(--jm-surface); box-shadow: var(--jm-shadow); }
.card-header { background: transparent; border-bottom: 1px solid var(--jm-line); font-weight: 600; }
.jm-section { padding: 4.5rem 0; }
.jm-section-sm { padding: 2.5rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .eyebrow { color: var(--jm-secondary); font-weight: 600; letter-spacing: .14em; font-size: .75rem; text-transform: uppercase; }
.divider-ornament { width: 60px; height: 2px; background: var(--jm-secondary); margin: .8rem auto 0; border-radius: 2px; }

/* Hero */
.jm-hero { position: relative; padding: 5rem 0 4.5rem; overflow: hidden; color: #fff; background: linear-gradient(125deg, #0a1240 0%, var(--jm-primary) 55%, var(--jm-secondary) 100%); }
.jm-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 10% 110%, rgba(235,0,0,.25), transparent 70%), radial-gradient(700px 400px at 95% -10%, rgba(255,255,255,.18), transparent 70%); pointer-events: none; }
.jm-hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.06); pointer-events: none; }
.jm-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.12; }
.jm-hero h1 span { background: linear-gradient(90deg, #9fe3ff, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jm-hero .lead { color: rgba(255,255,255,.85); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .3rem .85rem; font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.hero-stats span { font-size: .8rem; color: rgba(255,255,255,.75); }
.jm-hero .hero-search { color: var(--jm-ink); box-shadow: 0 30px 60px rgba(10,18,64,.35); border: 0; border-radius: 22px; padding: 1.6rem; }
.hero-search { background: #fff; border-radius: 18px; border: 1px solid var(--jm-line); box-shadow: var(--jm-shadow); padding: 1.25rem; }
.trust-point { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.trust-point i { color: var(--jm-secondary); font-size: 1.15rem; }

/* Profile card */
.profile-card { border: 1px solid var(--jm-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,51,.04); overflow: hidden; height: 100%; transition: box-shadow .2s ease, transform .2s ease; }
.profile-card:hover { box-shadow: 0 10px 28px rgba(15, 39, 217, .12); transform: translateY(-2px); }
.profile-card .photo { position: relative; aspect-ratio: 1 / 1; background: var(--jm-soft); overflow: hidden; }
.profile-card:hover .photo img { transform: scale(1.04); }
.profile-card .photo img { transition: transform .35s ease; }
.profile-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .photo .badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.profile-card .photo .match { position: absolute; bottom: .6rem; right: .6rem; z-index: 1; }
.profile-card .body { padding: .9rem 1rem 1rem; }
.profile-card .name { font-weight: 700; font-size: 1rem; margin: 0; font-family: var(--jm-font); }
.profile-card .meta { color: var(--jm-muted); font-size: .83rem; line-height: 1.5; }
.profile-card .actions { display: flex; gap: .4rem; margin-top: .75rem; }

.badge-verified { background: #e7f4ee; color: var(--jm-success); border: 1px solid #cfe9dc; font-weight: 600; }
.badge-premium { background: color-mix(in srgb, var(--jm-accent) 10%, #fff); color: var(--jm-accent); border: 1px solid color-mix(in srgb, var(--jm-accent) 30%, #fff); font-weight: 600; }
.badge-online { background: #e7f4ee; color: var(--jm-success); font-weight: 600; }
.badge-soft { background: var(--jm-soft); color: var(--jm-ink); font-weight: 500; border: 1px solid var(--jm-line); }
.match-pill { background: rgba(255, 255, 255, .95); color: var(--jm-primary); font-weight: 700; border-radius: 999px; padding: .25rem .65rem; font-size: .8rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

/* Match ring */
.match-ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--jm-primary) calc(var(--p) * 1%), var(--jm-line) 0); }
.match-ring span { width: 68px; height: 68px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; color: var(--jm-primary); font-size: 1.1rem; }

/* Profile page */
.profile-hero { background: #fff; border: 1px solid var(--jm-line); border-radius: var(--jm-radius); box-shadow: var(--jm-shadow); overflow: hidden; }
.profile-hero .main-photo { aspect-ratio: 1 / 1.1; object-fit: cover; width: 100%; border-radius: var(--jm-radius-sm); background: var(--jm-soft); }
.gallery-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumb.active { border-color: var(--jm-secondary); }
.detail-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem 1.5rem; margin: 0; }
.detail-list dt { font-size: .75rem; color: var(--jm-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.detail-list dd { margin: 0 0 .6rem; font-weight: 500; }
.locked-box { background: var(--jm-soft); border: 1px dashed color-mix(in srgb, var(--jm-secondary) 50%, var(--jm-line)); border-radius: var(--jm-radius-sm); padding: 1rem; }
.sticky-actions { position: sticky; top: 84px; }

/* Member area */
.member-sidebar .list-group-item { border: 0; border-radius: var(--jm-radius-sm) !important; padding: .6rem .9rem; color: var(--jm-ink); font-weight: 500; display: flex; align-items: center; gap: .65rem; }
.member-sidebar .list-group-item i { color: var(--jm-muted); font-size: 1.05rem; }
.member-sidebar .list-group-item.active { background: color-mix(in srgb, var(--jm-primary) 9%, #fff); color: var(--jm-primary); }
.member-sidebar .list-group-item.active i { color: var(--jm-primary); }
.member-sidebar .list-group-item:hover { background: var(--jm-soft); }
.stat-card { border: 1px solid var(--jm-line); border-radius: var(--jm-radius); background: #fff; padding: 1.1rem; height: 100%; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; font-family: var(--jm-font); }
.stat-card .label { color: var(--jm-muted); font-size: .82rem; }
.stat-card .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--jm-soft); color: var(--jm-primary); font-size: 1.2rem; }
.progress { height: .55rem; border-radius: 999px; background: var(--jm-soft); }
.progress-bar { background: var(--jm-primary); }
.nav-tabs-soft { border: 0; gap: .35rem; flex-wrap: nowrap; overflow-x: auto; }
.nav-tabs-soft .nav-link { border: 1px solid var(--jm-line); border-radius: 999px; color: var(--jm-ink); padding: .35rem .95rem; white-space: nowrap; background: #fff; }
.nav-tabs-soft .nav-link.active { background: var(--jm-primary); border-color: var(--jm-primary); color: #fff; }

/* Wallet */
.wallet-hero { background: var(--jm-ink); color: #fff; border-radius: var(--jm-radius); padding: 1.6rem; position: relative; overflow: hidden; }
.wallet-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid color-mix(in srgb, var(--jm-secondary) 35%, transparent); }
.wallet-hero .balance { font-size: 2.2rem; font-weight: 700; }
.package-option input { display: none; }
.package-option label { display: block; border: 1.5px solid var(--jm-line); border-radius: var(--jm-radius-sm); padding: 1rem; cursor: pointer; background: #fff; text-align: center; transition: border-color .15s; height: 100%; }
.package-option input:checked + label { border-color: var(--jm-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jm-primary) 12%, transparent); }
.amount-in { color: var(--jm-success); font-weight: 600; }
.amount-out { color: var(--jm-accent); font-weight: 600; }

/* Plans */
.plan-card { border: 1px solid var(--jm-line); border-radius: var(--jm-radius); background: #fff; padding: 1.6rem; height: 100%; display: flex; flex-direction: column; position: relative; }
.plan-card.popular { border: 2px solid var(--jm-secondary); box-shadow: 0 14px 36px rgba(15, 39, 217, .12); }
.plan-card .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--jm-accent); color: #fff; font-size: .72rem; padding: .2rem .8rem; border-radius: 999px; font-weight: 600; letter-spacing: .06em; }
.plan-card .price { font-size: 2rem; font-weight: 700; }
.plan-card ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; flex: 1; }
.plan-card li { padding: .3rem 0; display: flex; gap: .5rem; font-size: .9rem; }
.plan-card li i { color: var(--jm-success); }

/* Chat */
.chat-shell { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 200px); min-height: 520px; border: 1px solid var(--jm-line); border-radius: var(--jm-radius); overflow: hidden; background: #fff; }
.chat-list { border-right: 1px solid var(--jm-line); overflow-y: auto; }
.chat-list a { display: flex; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--jm-line); color: var(--jm-ink); align-items: center; }
.chat-list a.active, .chat-list a:hover { background: var(--jm-soft); }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: .75rem 1rem; border-bottom: 1px solid var(--jm-line); display: flex; align-items: center; gap: .75rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: var(--jm-bg); }
.chat-foot { border-top: 1px solid var(--jm-line); padding: .75rem; }
.bubble { max-width: 75%; padding: .55rem .85rem; border-radius: 16px; margin-bottom: .45rem; word-wrap: break-word; white-space: pre-wrap; }
.bubble.theirs { background: #fff; border: 1px solid var(--jm-line); border-bottom-left-radius: 4px; }
.bubble.mine { background: var(--jm-primary); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble .meta { font-size: .68rem; opacity: .75; margin-top: .2rem; text-align: right; }
.bubble img { max-width: 220px; border-radius: 10px; display: block; margin-bottom: .25rem; }
.typing { font-size: .78rem; color: var(--jm-muted); min-height: 1.1rem; }
@media (max-width: 767.98px) {
  .chat-shell { grid-template-columns: 1fr; height: calc(100vh - 150px); }
  .chat-shell.has-active .chat-list { display: none; }
  .chat-shell:not(.has-active) .chat-main { display: none; }
}

/* Avatars */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--jm-soft); flex-shrink: 0; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-sm { width: 34px; height: 34px; }

/* Steps / how it works */
.step-card { text-align: center; padding: 1.75rem 1.25rem; background: #fff; border: 1px solid var(--jm-line); border-radius: 18px; transition: transform .2s, box-shadow .2s; }
.step-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,39,217,.1); }
.step-card .num { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary)); color: #fff; display: grid; place-items: center; margin: 0 auto 1rem; font-family: var(--jm-serif); font-size: 1.35rem; font-weight: 700; box-shadow: 0 8px 20px rgba(15,39,217,.25); }

/* Footer */
.jm-footer { background: var(--jm-dark); color: #c9d2ea; padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.jm-footer a { color: #c9d2ea; }
.jm-footer a:hover { color: #fff; }
.jm-footer a:hover { color: #fff; }
.jm-footer h6 { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.jm-footer .brand-text { font-family: var(--jm-serif); color: #fff; font-size: 1.4rem; }
.jm-footer .legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .82rem; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .06); margin-right: .35rem; }

/* Alerts & misc */
.alert { border-radius: var(--jm-radius-sm); border: 0; }
.impersonation-bar { background: #fff4d6; border-bottom: 1px solid #f1d98a; font-size: .88rem; }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .7rem .75rem; border-color: var(--jm-line); }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--jm-muted); font-weight: 600; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--jm-muted); }
.empty-state i { font-size: 2.6rem; color: var(--jm-secondary); display: block; margin-bottom: .75rem; }
.filter-panel .form-label { font-size: .8rem; }
.photo-tile { position: relative; border-radius: var(--jm-radius-sm); overflow: hidden; border: 1px solid var(--jm-line); background: #fff; }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-tile .status { position: absolute; top: .5rem; left: .5rem; }
.story-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--jm-radius) var(--jm-radius) 0 0; }
.prose { line-height: 1.75; font-size: 1rem; }
.prose h2, .prose h3 { margin-top: 1.5rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--jm-radius-sm); }
.breadcrumb { font-size: .82rem; margin-bottom: 0; }
.cookie-note { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 520px; z-index: 1080; }
.offcanvas-filters { max-width: 360px; }
@media (max-width: 575.98px) {
  .jm-section { padding: 3rem 0; }
  .jm-hero { padding: 3.5rem 0 2.5rem; }
  .profile-card .actions .btn { padding: .3rem .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Bootstrap components follow the brand palette */
.btn-primary { --bs-btn-bg: var(--jm-primary); --bs-btn-border-color: var(--jm-primary); --bs-btn-hover-bg: color-mix(in srgb, var(--jm-primary) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--jm-primary) 85%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--jm-primary) 75%, #000); }
.btn-danger { --bs-btn-bg: var(--jm-accent); --bs-btn-border-color: var(--jm-accent); --bs-btn-hover-bg: color-mix(in srgb, var(--jm-accent) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--jm-accent) 85%, #000); }
.btn-info { --bs-btn-bg: var(--jm-secondary); --bs-btn-border-color: var(--jm-secondary); --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: color-mix(in srgb, var(--jm-secondary) 85%, #000); }
.btn-outline-danger { --bs-btn-color: var(--jm-accent); --bs-btn-border-color: var(--jm-accent); --bs-btn-hover-bg: var(--jm-accent); --bs-btn-hover-border-color: var(--jm-accent); }
.text-danger { color: var(--jm-accent) !important; }
.bg-danger { background-color: var(--jm-accent) !important; }
.text-accent { color: var(--jm-accent) !important; }
.progress-bar { background-color: var(--jm-primary); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--jm-primary); }
.page-link { color: var(--jm-primary); }
.active > .page-link, .page-link.active { background-color: var(--jm-primary); border-color: var(--jm-primary); }
.form-check-input:focus { border-color: var(--jm-secondary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--jm-secondary) 25%, transparent); }
.alert-danger { --bs-alert-color: #8a0000; --bs-alert-bg: #fdeaea; --bs-alert-border-color: #f7c4c4; }
.alert-info { --bs-alert-color: #03587a; --bs-alert-bg: #e6f6fd; --bs-alert-border-color: #bfe7f8; }

/* ================= Shared UI kit ================= */
.min-w-0 { min-width: 0; }
.icon-tile { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.tile-blue { background: rgba(15,39,217,.1); color: var(--jm-primary); }
.tile-sky { background: rgba(4,162,224,.13); color: #0386b9; }
.tile-red { background: rgba(235,0,0,.09); color: var(--jm-accent); }
.tile-green { background: rgba(15,157,88,.1); color: #0f9d58; }
.tile-navy { background: rgba(10,18,64,.08); color: #0a1240; }
.jm-card { border: 1px solid var(--jm-line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.section-head h2 { font-family: var(--jm-font); font-weight: 700; letter-spacing: -.01em; }
.panel-title { font-weight: 700; padding: 1rem 1.1rem .5rem; display: flex; align-items: center; gap: .5rem; }

/* ================= Member area ================= */
.member-area { background: var(--jm-bg); }
.member-sidebar { display: flex; flex-direction: column; gap: 1rem; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.member-card { background: #fff; border: 1px solid var(--jm-line); border-radius: 18px; overflow: hidden; box-shadow: var(--jm-shadow); flex-shrink: 0; }
.member-card .cover { height: 58px; background: linear-gradient(120deg, #0a1240, var(--jm-primary) 55%, var(--jm-secondary)); }
.member-card .avatar-ring { margin-top: -38px; }
.avatar-ring { --p: 0; display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; padding: 4px; flex-shrink: 0;
  background: conic-gradient(var(--jm-secondary) calc(var(--p) * 1%), #e3eaf6 0); }
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; }
.avatar-ring.on-dark { background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.25) 0); }
.avatar-ring.on-dark img { border-color: transparent; }
.plan-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: .2rem .7rem; background: #eef2fb; color: #3b4a73; }
.plan-chip.premium { background: linear-gradient(90deg, var(--jm-accent), #ff5a5a); color: #fff; }
.member-nav { background: #fff; border: 1px solid var(--jm-line); border-radius: 18px; padding: .5rem; box-shadow: var(--jm-shadow); }
.member-nav .group { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: #8a96b3; font-weight: 700; padding: .8rem .75rem .35rem; }
.member-nav a { display: flex; align-items: center; gap: .65rem; padding: .5rem .75rem; border-radius: 10px; color: var(--jm-ink); font-size: .9rem; font-weight: 500; }
.member-nav a i { color: #6b7aa6; font-size: 1rem; width: 18px; text-align: center; }
.member-nav a:hover { background: var(--jm-soft); color: var(--jm-primary); }
.member-nav a:hover i { color: var(--jm-primary); }
.member-nav a.active { background: linear-gradient(90deg, var(--jm-primary), var(--jm-secondary)); color: #fff; box-shadow: 0 6px 16px rgba(15,39,217,.25); }
.member-nav a.active i { color: #fff; }
.member-nav .count, .member-mobile-nav .count { margin-left: auto; background: var(--jm-accent); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; padding: .08rem .45rem; }
.member-nav a.active .count { background: #fff; color: var(--jm-accent); }
.member-mobile-nav { position: sticky; top: 0; z-index: 1010; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--jm-line); }
.member-mobile-nav .scroller { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem .75rem; scrollbar-width: none; }
.member-mobile-nav .scroller::-webkit-scrollbar { display: none; }
.member-mobile-nav a { flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; background: var(--jm-soft); color: var(--jm-ink); font-size: .82rem; font-weight: 500; white-space: nowrap; }
.member-mobile-nav a.active { background: var(--jm-primary); color: #fff; }
.member-mobile-nav a .count { margin-left: .15rem; }

.member-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 1.4rem 1.5rem; color: #fff; background: linear-gradient(120deg, #0a1240 0%, var(--jm-primary) 55%, var(--jm-secondary) 100%); box-shadow: 0 14px 36px rgba(15,39,217,.22); }
.member-hero::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.member-hero h1 { font-family: var(--jm-font); font-weight: 700; }
.member-hero .small-caps { color: rgba(255,255,255,.7); }
.hero-chip { display: inline-flex; align-items: center; gap: .3rem; background: rgba(255,255,255,.15); border-radius: 999px; padding: .2rem .65rem; }
.hero-progress { background: rgba(255,255,255,.12); border-radius: 14px; padding: .9rem 1rem; }
.hero-progress .progress { height: 8px; background: rgba(255,255,255,.2); border-radius: 999px; }
.hero-progress .progress-bar { background: #fff; border-radius: 999px; }
.hero-progress a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.stat-tile { display: flex; align-items: center; gap: .85rem; background: #fff; border: 1px solid var(--jm-line); border-radius: 16px; padding: 1rem; height: 100%; color: inherit; box-shadow: 0 1px 2px rgba(15,23,51,.04); transition: transform .15s, box-shadow .15s; }
.stat-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,39,217,.1); color: inherit; }
.stat-tile .value { font-size: 1.45rem; font-weight: 800; line-height: 1.1; color: var(--jm-ink); }
.stat-tile .label { font-size: .82rem; font-weight: 600; color: var(--jm-ink); }
.stat-tile .sub { font-size: .74rem; color: var(--jm-muted); }
.wallet-mini { border-radius: 16px; padding: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--jm-primary), #0a1240); box-shadow: 0 10px 26px rgba(15,39,217,.25); }
.verify-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.verify-list span { font-size: .76rem; font-weight: 600; border-radius: 999px; padding: .2rem .6rem; background: #eef1f6; color: #5b6478; }
.verify-list span.approved { background: #e6f6ee; color: #0f7a45; }
.verify-list span.pending { background: #fff5e0; color: #a56300; }
.activity-row { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.1rem; color: inherit; border-top: 1px solid #f0f3f9; }
.activity-row:hover { background: #f7f9fe; color: inherit; }

@media (max-width: 575.98px) {
  .member-hero { padding: 1.1rem; border-radius: 16px; }
  .avatar-ring { width: 64px; height: 64px; }
  .stat-tile { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .stat-tile .value { font-size: 1.25rem; }
}

/* ================= Homepage slider ================= */
.hero-slider { position: relative; background: #0a1240; }
.hero-slider .carousel-item { height: 660px; }
.hero-slider .slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero-slider .carousel-item.active .slide-bg { animation: jmKenBurns 12s ease-out forwards; }
@keyframes jmKenBurns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-slider .slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,14,52,.88) 0%, rgba(10,24,120,.62) 45%, rgba(10,18,64,.25) 100%), linear-gradient(0deg, rgba(8,14,52,.55), transparent 40%); }
.hero-slider .slide-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; padding-bottom: 2rem; }
.hero-slider .slide-title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.1; margin: 0 0 1rem; text-shadow: 0 4px 24px rgba(0,0,0,.25); }
.hero-slider .slide-text { color: rgba(255,255,255,.88); max-width: 34rem; margin-bottom: 1.6rem; }
.hero-slider .carousel-item.active .hero-eyebrow, .hero-slider .carousel-item.active .slide-title, .hero-slider .carousel-item.active .slide-text, .hero-slider .carousel-item.active .slide-actions { animation: jmFadeUp .8s ease both; }
.hero-slider .carousel-item.active .slide-title { animation-delay: .12s; }
.hero-slider .carousel-item.active .slide-text { animation-delay: .24s; }
.hero-slider .carousel-item.active .slide-actions { animation-delay: .36s; }
@keyframes jmFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-slider .hero-eyebrow { color: #fff; }
.hero-slider .carousel-indicators { z-index: 4; margin-bottom: 2.2rem; justify-content: flex-start; margin-left: max(1rem, calc((100% - 1296px) / 2 + .75rem)); margin-right: 0; }
.hero-slider .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 999px; border: 0; background: #fff; opacity: .45; transition: width .3s, opacity .3s; }
.hero-slider .carousel-indicators .active { width: 48px; opacity: 1; background: var(--jm-secondary); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { z-index: 4; width: 48px; height: 48px; top: auto; bottom: 1.6rem; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); opacity: 1; }
.hero-slider .carousel-control-prev { left: auto; right: calc(max(1rem, (100% - 1296px) / 2 + .75rem) + 58px); }
.hero-slider .carousel-control-next { right: max(1rem, calc((100% - 1296px) / 2 + .75rem)); }
.hero-slider .carousel-control-prev:hover, .hero-slider .carousel-control-next:hover { background: var(--jm-primary); }
.hero-slider .carousel-control-prev-icon, .hero-slider .carousel-control-next-icon { width: 1.1rem; height: 1.1rem; }
.hero-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-overlay .hero-search { pointer-events: auto; color: var(--jm-ink); border: 0; border-radius: 22px; padding: 1.6rem; background: rgba(255,255,255,.97); box-shadow: 0 30px 70px rgba(5,10,40,.45); }
.hero-overlay .hero-search h2 { font-family: var(--jm-font); font-weight: 700; }
@media (max-width: 991.98px) {
  .hero-slider .carousel-item { height: 560px; }
  .hero-slider .slide-shade { background: linear-gradient(180deg, rgba(8,14,52,.55), rgba(8,14,52,.85)); }
  .hero-overlay { position: relative; inset: auto; pointer-events: auto; margin-top: -60px; padding-bottom: 1.5rem; background: linear-gradient(180deg, transparent 60px, var(--jm-bg) 60px); }
  .hero-overlay .h-100 { height: auto !important; }
  .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none; }
  .hero-slider .carousel-indicators { margin-bottom: 5rem; }
}
@media (max-width: 575.98px) { .hero-slider .carousel-item { height: 520px; } .hero-slider .slide-actions .btn-lg { font-size: 1rem; padding: .6rem 1.1rem; } }

/* Trust bar */
.trust-bar { position: relative; z-index: 5; margin-top: -1px; background: #fff; border-bottom: 1px solid var(--jm-line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 0; }
.trust-item { display: flex; align-items: center; gap: .8rem; }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span:not(.icon-tile) { font-size: .8rem; color: var(--jm-muted); }
@media (max-width: 991.98px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* Counters */
.counter-band { padding: 2.6rem 0; background: linear-gradient(120deg, #0a1240, var(--jm-primary) 60%, var(--jm-secondary)); color: #fff; }
.counter { font-family: var(--jm-serif); font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1; }
.counter-label { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: .35rem; }

/* Browse by */
.browse-card { background: #fff; border: 1px solid var(--jm-line); border-radius: 20px; padding: 1.4rem; height: 100%; box-shadow: var(--jm-shadow); }
.browse-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.browse-head h3 { font-size: 1.1rem; margin: 0; font-family: var(--jm-font); font-weight: 700; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-cloud a { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .85rem; border-radius: 999px; background: var(--jm-soft); color: var(--jm-ink); font-size: .85rem; font-weight: 500; border: 1px solid transparent; transition: all .15s; }
.chip-cloud a small { font-size: .7rem; color: var(--jm-muted); }
.chip-cloud a:hover { background: #fff; border-color: var(--jm-primary); color: var(--jm-primary); transform: translateY(-1px); }

/* CTA banner */
.cta-banner { position: relative; overflow: hidden; border-radius: 26px; padding: 3rem; color: #fff; background-size: cover; background-position: center; box-shadow: 0 24px 60px rgba(15,39,217,.25); }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,14,52,.92), rgba(15,39,217,.75) 60%, rgba(4,162,224,.55)); }
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-banner p { color: rgba(255,255,255,.85); }
@media (max-width: 575.98px) { .cta-banner { padding: 1.75rem; border-radius: 18px; } }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-slider .carousel-item.active .slide-bg, .hero-slider .carousel-item.active * { animation: none !important; }
}

/* ================= Premium photo privacy ================= */
.photo.is-blurred img, .main-photo-wrap.is-blurred img, .gallery-thumb.is-blurred { filter: blur(6px) saturate(1.1); transform: scale(1.08); }
.profile-card:hover .photo.is-blurred img { transform: scale(1.1); }
.photo.is-blurred, .main-photo-wrap { position: relative; overflow: hidden; }
.main-photo-wrap { border-radius: var(--jm-radius); }
.photo-lock { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; text-align: center; color: #fff; padding: 1rem;
  background: linear-gradient(180deg, rgba(10,18,64,.25), rgba(10,18,64,.65)); }
.photo-lock > i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: linear-gradient(135deg, var(--jm-accent), #ff5a5a); box-shadow: 0 8px 20px rgba(235,0,0,.35); margin-bottom: .35rem; }
.photo-lock strong { font-size: .92rem; }
.photo-lock small { font-size: .74rem; opacity: .9; }
.photo-lock.lg > i { width: 58px; height: 58px; font-size: 1.5rem; }
.photo-lock.lg strong { font-size: 1.05rem; }

/* ================= Profile sliders ================= */
.profile-slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1rem) / 4); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .25rem .1rem 1rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.profile-slider::-webkit-scrollbar { display: none; }
.profile-slider .slide { scroll-snap-align: start; min-width: 0; }
.profile-slider:focus-visible { outline: 2px solid var(--jm-secondary); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 1199.98px) { .profile-slider { grid-auto-columns: calc((100% - 2 * 1rem) / 3); } }
@media (max-width: 767.98px) { .profile-slider { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 419.98px) { .profile-slider { grid-auto-columns: 78%; } }
.slider-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--jm-line); background: #fff; color: var(--jm-ink); display: inline-grid; place-items: center; transition: all .15s; box-shadow: 0 2px 6px rgba(15,23,51,.06); }
.slider-btn:hover:not(:disabled) { background: var(--jm-primary); border-color: var(--jm-primary); color: #fff; }
.slider-btn:disabled { opacity: .4; cursor: default; }
.gw-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; margin-right: .55rem; font-size: .9rem; vertical-align: middle; }

/* ===== Advertisements (visitors & free members only) ===== */
.jm-promo{position:relative;display:block;text-align:center;border-radius:14px;overflow:hidden;background:#fff;border:1px solid rgba(15,39,217,.08);box-shadow:0 4px 18px rgba(10,18,64,.05)}
.jm-promo a{display:block}
.jm-promo img{display:block;width:100%;height:auto;max-height:260px;object-fit:cover}
.jm-promo-profile_sidebar img,.jm-promo-search_sidebar img{max-height:none}
.jm-promo-label{position:absolute;top:6px;left:8px;z-index:2;font-size:.65rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#fff;background:rgba(10,18,64,.55);padding:2px 7px;border-radius:999px;pointer-events:none}
.jm-promo-html,.jm-promo .adsbygoogle{padding:22px 10px 10px;min-height:90px}
.jm-promo-html:empty{display:none}
