/*!
 * 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, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --jm-serif: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --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-brand { min-width: 0; flex-shrink: 1; overflow: hidden; margin-right: .35rem; } .jm-navbar .navbar-brand img { max-width: 150px; object-fit: contain; } .jm-navbar .brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .jm-navbar .navbar-toggler { padding: .25rem .35rem; } .jm-navbar .order-xl-last { flex-shrink: 0; } .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 .65rem !important; white-space: nowrap; }
.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); }

/* Messenger (member chat) */
.msgr { --msgr-h: calc(100vh - 170px); display: grid; grid-template-columns: 340px minmax(0, 1fr); height: var(--msgr-h); min-height: 480px; background: #fff; border: 1px solid var(--jm-line); border-radius: 18px; overflow: hidden; box-shadow: var(--jm-shadow); }
.msgr-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--jm-line); }
.msgr-list-head { padding: 1rem 1rem .5rem; }
.msgr-search { position: relative; }
.msgr-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--jm-muted); font-size: .85rem; }
.msgr-search .form-control { border-radius: 999px; background: #f0f2f5; border: 0; padding-left: 2.2rem; height: 38px; }
.msgr-threads { flex: 1; overflow-y: auto; padding: .25rem .5rem .75rem; overscroll-behavior: contain; }
.msgr-thread { display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem; border-radius: 12px; color: var(--jm-ink); text-decoration: none; }
.msgr-thread:hover { background: #f2f4f7; color: var(--jm-ink); }
.msgr-thread.active { background: var(--jm-soft); }
.msgr-thread-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.msgr-thread-text .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgr-thread-text .preview { display: flex; gap: .25rem; font-size: .83rem; color: var(--jm-muted); min-width: 0; }
.msgr-thread-text .preview .when { flex-shrink: 0; }
.msgr-thread.unread .name, .msgr-thread.unread .preview { color: var(--jm-ink); font-weight: 700; }
.msgr-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--jm-primary); color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; flex-shrink: 0; }
.msgr-avatar { position: relative; flex-shrink: 0; width: 52px; height: 52px; }
.msgr-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--jm-soft); }
.msgr-avatar .dot { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: #31a24c; border: 2.5px solid #fff; }
.msgr-avatar.sm { width: 40px; height: 40px; }
.msgr-avatar.sm .dot { width: 12px; height: 12px; }
.msgr-empty, .msgr-placeholder { text-align: center; padding: 2.5rem 1rem; color: var(--jm-muted); }
.msgr-empty > i, .msgr-placeholder > i { font-size: 2.6rem; color: var(--jm-secondary); display: block; margin-bottom: .5rem; }
.msgr-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.msgr-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.msgr-chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.msgr-head { display: flex; align-items: center; gap: .35rem; padding: .55rem .75rem; border-bottom: 1px solid var(--jm-line); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.03); z-index: 2; }
.msgr-head-who { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; color: var(--jm-ink); text-decoration: none; padding: .2rem .35rem; border-radius: 10px; }
.msgr-head-who:hover { background: #f2f4f7; color: var(--jm-ink); }
.msgr-head-who .name { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.msgr-head-who .status { display: block; font-size: .78rem; color: var(--jm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgr-icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--jm-primary); display: inline-grid; place-items: center; font-size: 1.15rem; cursor: pointer; flex-shrink: 0; text-decoration: none; }
.msgr-icon-btn:hover, .msgr-icon-btn:focus-visible { background: var(--jm-soft); color: var(--jm-primary); }
.msgr-icon-btn:disabled { opacity: .5; }
.msgr-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem .9rem .5rem; overscroll-behavior: contain; background: #fff; }
.msgr-intro { text-align: center; padding: 1rem 0 1.5rem; }
.msgr-intro-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: .5rem; }
.msgr-day { text-align: center; font-size: .72rem; font-weight: 600; color: var(--jm-muted); margin: 1rem 0 .6rem; text-transform: uppercase; letter-spacing: .03em; }
.msgr-row { display: flex; align-items: flex-end; gap: .45rem; margin-top: 2px; position: relative; }
.msgr-row.grp-start { margin-top: .6rem; }
.msgr-row.mine { justify-content: flex-end; }
.msgr-row-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; visibility: hidden; }
.msgr-row.theirs.grp-end .msgr-row-avatar { visibility: visible; }
.msgr-bubble { max-width: min(72%, 520px); padding: .5rem .85rem; border-radius: 18px; background: #f0f2f5; color: var(--jm-ink); overflow-wrap: anywhere; line-height: 1.38; font-size: .95rem; }
.msgr-row.mine .msgr-bubble { background: var(--jm-primary); background: linear-gradient(135deg, var(--jm-primary), color-mix(in srgb, var(--jm-primary) 55%, var(--jm-secondary))); color: #fff; }
.msgr-row.theirs:not(.grp-start) .msgr-bubble { border-top-left-radius: 5px; }
.msgr-row.theirs:not(.grp-end) .msgr-bubble { border-bottom-left-radius: 5px; }
.msgr-row.mine:not(.grp-start) .msgr-bubble { border-top-right-radius: 5px; }
.msgr-row.mine:not(.grp-end) .msgr-bubble { border-bottom-right-radius: 5px; }
.msgr-text { white-space: pre-wrap; }
.msgr-bubble.jumbo { color: var(--jm-ink) !important; background: transparent !important; font-size: 2.4rem; line-height: 1.15; padding: 0 .1rem; }
.msgr-bubble.media-only { background: transparent !important; padding: 0; }
.msgr-media img { display: block; max-width: min(260px, 100%); max-height: 320px; border-radius: 14px; object-fit: cover; margin-bottom: .25rem; }
.msgr-bubble.media-only .msgr-media img { margin-bottom: 0; }
.msgr-file { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: underline; }
.msgr-row.mine .msgr-file { color: #fff; }
.msgr-time { font-size: .68rem; color: var(--jm-muted); align-self: center; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.msgr-row.mine .msgr-time { order: -1; }
.msgr-row:hover .msgr-time, .msgr-row.show-time .msgr-time { opacity: 1; }
.msgr-status { text-align: right; font-size: .7rem; color: var(--jm-muted); margin: .15rem .2rem 0 0; }
.msgr-row.pending .msgr-bubble { opacity: .6; }
.msgr-call { display: flex; align-items: center; gap: .65rem; background: #f0f2f5; border-radius: 18px; padding: .55rem .6rem .55rem .7rem; max-width: min(360px, 86%); }
.msgr-call > span:nth-child(2) { min-width: 0; }
.msgr-call .ico { width: 36px; height: 36px; border-radius: 50%; background: #dfe3ea; display: grid; place-items: center; color: var(--jm-ink); }
.msgr-call.missed .ico { background: #fde2e2; color: var(--jm-accent); }
.msgr-call strong { display: block; font-size: .9rem; }
.msgr-call small { color: var(--jm-muted); font-size: .72rem; }
.msgr-callback { white-space: nowrap; flex-shrink: 0; border: 0; background: #fff; border-radius: 999px; padding: .25rem .8rem; font-size: .8rem; font-weight: 600; color: var(--jm-primary); margin-left: auto; }
.msgr-row.is-call { margin: .6rem 0; }
.msgr-typing .msgr-bubble { display: inline-flex; gap: 4px; padding: .7rem .85rem; }
.msgr-typing .msgr-bubble span { width: 7px; height: 7px; border-radius: 50%; background: #90949c; animation: msgrDot 1.2s infinite; }
.msgr-typing .msgr-bubble span:nth-child(2) { animation-delay: .15s; }
.msgr-typing .msgr-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes msgrDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msgr-foot { border-top: 1px solid var(--jm-line); background: #fff; padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom)); position: relative; }
.msgr-composer { display: flex; align-items: flex-end; gap: .25rem; }
.msgr-input { flex: 1; display: flex; align-items: flex-end; background: #f0f2f5; border-radius: 22px; padding: 0 .25rem 0 .9rem; min-width: 0; }
.msgr-input textarea { flex: 1; border: 0; background: transparent; resize: none; outline: none; padding: .55rem 0; max-height: 140px; line-height: 1.35; font-size: 1rem; min-width: 0; color: var(--jm-ink); }
.msgr-emoji-btn { border: 0; background: transparent; color: var(--jm-primary); font-size: 1.25rem; width: 36px; height: 38px; display: grid; place-items: center; flex-shrink: 0; }
.msgr-send { display: none; }
.msgr-composer.has-text .msgr-send { display: inline-grid; }
.msgr-composer.has-text .msgr-like { display: none; }
.msgr-like { font-size: 1.35rem; }
.msgr-attach-preview { display: flex; align-items: center; gap: .4rem; font-size: .85rem; background: var(--jm-soft); border-radius: 10px; padding: .35rem .6rem; margin: 0 .25rem .4rem; }
.msgr-attach-preview span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Emoji picker (also used in Love Pool) */
.emoji-panel { position: absolute; z-index: 1060; width: min(340px, calc(100vw - 16px)); background: #fff; border: 1px solid var(--jm-line); border-radius: 16px; box-shadow: 0 12px 40px rgba(15, 23, 51, .18); overflow: hidden; }
.emoji-tabs { display: flex; border-bottom: 1px solid var(--jm-line); padding: .25rem; gap: 2px; overflow-x: auto; }
.emoji-tabs button { border: 0; background: transparent; border-radius: 8px; font-size: 1.15rem; padding: .25rem .45rem; flex-shrink: 0; }
.emoji-tabs button.active { background: var(--jm-soft); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: .4rem; height: 220px; overflow-y: auto; align-content: start; }
.emoji-grid button, .emoji-tabs button, .msgr-like { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emoji-grid button { border: 0; background: transparent; font-size: 1.45rem; line-height: 1; padding: .3rem 0; border-radius: 8px; cursor: pointer; }
.emoji-grid button:hover, .emoji-grid button:focus-visible { background: #f0f2f5; }
.emoji-title { font-size: .72rem; font-weight: 600; color: var(--jm-muted); padding: .35rem .6rem 0; }
/* Incoming call */
.call-incoming { position: fixed; z-index: 1085; left: 50%; top: 16px; transform: translateX(-50%); width: min(380px, calc(100vw - 24px)); background: #16181d; color: #fff; border-radius: 20px; padding: 1rem; box-shadow: 0 18px 50px rgba(0,0,0,.35); display: flex; align-items: center; gap: .8rem; animation: callIn .25s ease-out; }
.call-incoming img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.call-incoming .who { flex: 1; min-width: 0; }
.call-incoming .who strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-incoming .who small { color: #b9bec7; }
.call-incoming .btn-round { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; font-size: 1.2rem; }
.btn-round.decline { background: #e41e3f; }
.btn-round.accept { background: #31a24c; animation: callPulse 1.4s infinite; }
@keyframes callIn { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(49,162,76,.6); } 70% { box-shadow: 0 0 0 14px rgba(49,162,76,0); } 100% { box-shadow: 0 0 0 0 rgba(49,162,76,0); } }
@media (max-width: 767.98px) {
  .msgr { grid-template-columns: 1fr; height: auto; min-height: 0; border-radius: 16px; }
  .msgr:not(.has-active) .msgr-main { display: none; }
  .msgr:not(.has-active) .msgr-list { border-right: 0; }
  .msgr:not(.has-active) .msgr-threads { overflow: visible; }
  /* An open chat fills the whole screen, like the Messenger app. */
  .msgr.has-active { position: fixed; left: 0; right: 0; top: var(--vv-top, 0px); height: var(--vv-h, 100dvh); min-height: 0; z-index: 1045; border: 0; border-radius: 0; box-shadow: none; }
  .msgr.has-active .msgr-list { display: none; }
  body.msgr-open { overflow: hidden; }
  .msgr-bubble { max-width: 78%; }
  .msgr-time { display: none; }
}
@media (prefers-reduced-motion: reduce) { .msgr-typing .msgr-bubble span, .btn-round.accept, .call-incoming { animation: 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}

.guardian-box{background:linear-gradient(135deg,rgba(4,162,224,.07),rgba(15,39,217,.05));border:1px solid rgba(4,162,224,.25);border-radius:14px;padding:16px 18px}
.managed-by{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:600;color:#0a5f86;background:rgba(4,162,224,.12);border-radius:999px;padding:3px 10px}
.badge-family{background:rgba(4,162,224,.92);color:#fff}

/* ===== Coloured status pills (account, membership, payments, tickets) ===== */
.status-pill{display:inline-flex;align-items:center;gap:.35rem;font-size:.74rem;font-weight:600;line-height:1.2;border-radius:999px;padding:.25rem .65rem;white-space:nowrap}
.status-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.status-ok{background:#e6f6ee;color:#0f7a45}
.status-wait{background:#fff4dc;color:#9a5b00}
.status-info{background:#e5f5fc;color:#03729f}
.status-bad{background:#fde8e8;color:#c80000}
.status-off{background:#eef1f6;color:#556070}
.status-premium{background:linear-gradient(135deg,#0F27D9,#04A2E0);color:#fff}
.status-free{background:#eef2ff;color:#0F27D9}
.usage-tile{border:1px solid rgba(15,39,217,.08);border-radius:12px;padding:12px 14px;background:#fff}

/* Step progress bar */
.steps-bar{display:flex;gap:8px;list-style:none;padding:0;margin:0;counter-reset:s}
.steps-bar li{flex:1;display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:600;color:#7a8499;background:#fff;border:1px solid rgba(15,39,217,.08);border-radius:12px;padding:10px 12px}
.steps-bar li span{width:26px;height:26px;border-radius:50%;display:inline-grid;place-items:center;background:#eef1f6;color:#556070;font-size:.8rem;flex:none}
.steps-bar li.done span{background:var(--jm-secondary);color:#fff}
.steps-bar li.current{color:var(--jm-primary);border-color:var(--jm-primary);box-shadow:0 0 0 3px rgba(15,39,217,.08)}
@media (max-width:575.98px){.steps-bar{flex-direction:column}}

/* Conversation threads (support tickets, team messages) */
.thread{display:flex;flex-direction:column;gap:12px}
.thread-msg{max-width:88%;background:#fff;border:1px solid rgba(15,39,217,.08);border-radius:14px 14px 14px 4px;padding:12px 14px;box-shadow:0 2px 10px rgba(10,18,64,.04)}
.thread-msg.mine{align-self:flex-end;background:linear-gradient(135deg,rgba(15,39,217,.06),rgba(4,162,224,.08));border-radius:14px 14px 4px 14px}
.thread-msg.internal{background:#fff8e6;border-style:dashed;border-color:#f0c36d}
.thread-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.78rem;margin-bottom:4px}
.thread-body{white-space:pre-line;word-wrap:break-word}
.ticket-no{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:700;color:var(--jm-primary);letter-spacing:.02em}

/* Ledger period bar & totals */
.ledger-bar .chip{display:inline-block;font-size:.8rem;font-weight:600;padding:.3rem .75rem;border-radius:999px;background:#eef2ff;color:#0F27D9;text-decoration:none}
.ledger-bar .chip.active{background:var(--jm-primary);color:#fff}
.ledger-tile{background:#fff;border:1px solid rgba(15,39,217,.08);border-radius:12px;padding:10px 12px;height:100%;display:flex;flex-direction:column;gap:2px}
.ledger-tile span{font-size:.72rem;color:#6b7489;text-transform:uppercase;letter-spacing:.03em}
.ledger-tile strong{font-size:1.02rem}
.ledger-tile.in strong{color:#0f7a45}.ledger-tile.out strong{color:#c80000}

.status-expired{background:#fff0e0;color:#c2570c}
.status-blocked{background:#5c0a0a;color:#fff}

/* ===== Love Pool ===== */
.lovepool-hero{background:linear-gradient(120deg,#0a1240 0%,#0F27D9 55%,#EB0000 140%)}
.lovepool{display:flex;flex-direction:column;height:min(72vh,720px);overflow:hidden}
.lovepool-feed{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:linear-gradient(180deg,#f7f9ff,#fff)}
.lp-msg{display:flex;gap:10px;align-items:flex-start;max-width:92%}
.lp-msg.mine{align-self:flex-end;flex-direction:row-reverse}
.lp-bubble{background:#fff;border:1px solid rgba(15,39,217,.08);border-radius:14px 14px 14px 4px;padding:8px 12px;box-shadow:0 2px 8px rgba(10,18,64,.04);min-width:0}
.lp-msg.mine .lp-bubble{background:linear-gradient(135deg,rgba(15,39,217,.07),rgba(4,162,224,.1));border-radius:14px 14px 4px 14px}
.lp-msg.mentioned .lp-bubble{border-color:#EB0000;box-shadow:0 0 0 2px rgba(235,0,0,.1)}
.lp-head{font-size:.85rem;display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.lp-head a{color:inherit;text-decoration:none}
.lp-meta{font-size:.72rem;color:#6b7489;margin-left:6px}
.lp-text{word-wrap:break-word;white-space:normal}
.lp-text .mention{color:#0F27D9;font-weight:600;background:rgba(15,39,217,.08);border-radius:6px;padding:0 3px}
.lp-quote{font-size:.78rem;color:#556070;border-left:3px solid #04A2E0;padding-left:8px;margin:4px 0}
.lp-foot{display:flex;gap:10px;font-size:.7rem;color:#8a93a6;margin-top:2px}
.lp-foot button{border:0;background:none;padding:0;color:#8a93a6;font-size:.7rem}
.lp-foot button:hover{color:#0F27D9}
.lovepool-composer{border-top:1px solid rgba(15,39,217,.08);padding:12px;background:#fff}
.lovepool-composer textarea{resize:none}
.lp-replying{font-size:.8rem;color:#0F27D9;display:flex;align-items:center;gap:6px;margin-bottom:6px}
.lp-mentions{position:absolute;bottom:100%;left:0;right:60px;background:#fff;border:1px solid rgba(15,39,217,.15);border-radius:12px;box-shadow:0 8px 24px rgba(10,18,64,.12);padding:4px;margin-bottom:6px;z-index:5}
.lp-mentions button{display:flex;align-items:center;gap:8px;width:100%;border:0;background:none;text-align:left;padding:6px 8px;border-radius:8px;font-size:.88rem}
.lp-mentions button.active,.lp-mentions button:hover{background:#eef2ff}
.lp-mentions small{color:#8a93a6}

/* ===== Shops & services ===== */
.shops-hero{background:radial-gradient(1200px 400px at 90% -20%,rgba(4,162,224,.55),transparent),linear-gradient(120deg,#0a1240,#0F27D9);position:relative;overflow:hidden}
.shops-search{display:flex;gap:8px;flex-wrap:wrap;max-width:720px;background:rgba(255,255,255,.12);padding:8px;border-radius:16px;backdrop-filter:blur(6px)}
.shops-search .form-control{flex:1 1 200px;border:0}
.shop-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px}
.shop-cat{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:14px 8px;border-radius:16px;background:#fff;border:1px solid rgba(15,39,217,.08);text-decoration:none;color:#0a1240;font-size:.82rem;font-weight:600;position:relative;transition:transform .15s,box-shadow .15s}
.shop-cat:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(10,18,64,.08)}
.shop-cat .icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-size:1.45rem;color:#fff;background:linear-gradient(135deg,var(--jm-primary),var(--jm-secondary))}
.shop-cat:nth-child(3n) .icon{background:linear-gradient(135deg,#EB0000,#ff6a6a)}
.shop-cat:nth-child(3n+1) .icon{background:linear-gradient(135deg,#04A2E0,#5fd0ff)}
.shop-cat.active{border-color:var(--jm-primary);box-shadow:0 0 0 3px rgba(15,39,217,.12)}
.shop-cat small{position:absolute;top:8px;right:10px;font-size:.68rem;color:#8a93a6}
.vendor-card{display:block;background:#fff;border-radius:18px;overflow:hidden;border:1px solid rgba(15,39,217,.08);text-decoration:none;color:inherit;box-shadow:0 4px 16px rgba(10,18,64,.05);height:100%;transition:transform .15s}
.vendor-card:hover{transform:translateY(-3px)}
.vendor-card .cover{height:150px;background:linear-gradient(135deg,#0F27D9,#04A2E0) center/cover;position:relative}
.vendor-card .cover .badge{position:absolute;top:10px;left:10px}
.vendor-card .logo{position:absolute;left:14px;bottom:-24px;width:56px;height:56px;border-radius:14px;object-fit:cover;border:3px solid #fff;background:#fff}
.logo-fallback{display:grid;place-items:center;color:var(--jm-primary);font-size:1.5rem;background:#eef2ff!important}
.vendor-hero{background:linear-gradient(120deg,#0a1240,#0F27D9) center/cover}
.vendor-logo{width:96px;height:96px;border-radius:20px;object-fit:cover;border:4px solid #fff;background:#fff;font-size:2.4rem}
.vendor-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.vendor-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}
.offering-img{width:120px;height:96px;object-fit:cover;border-radius:12px}
.cta-seller{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:28px;border-radius:20px;color:#fff;background:linear-gradient(120deg,#EB0000,#0F27D9)}
.star-input{display:inline-flex;flex-direction:row-reverse}
.star-input input{display:none}
.star-input label{cursor:pointer;color:#d6dae3;font-size:1.2rem;padding:0 1px}
.star-input input:checked~label,.star-input label:hover,.star-input label:hover~label{color:#f5b301}
.status-pill{align-self:flex-start}

/* Live call screen */
body.live-call-page { background: #0b0d12; overflow: hidden; }
.lc { position: fixed; inset: 0; height: 100dvh; background: radial-gradient(circle at 50% 30%, #25304f 0%, #0b0d12 70%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: max(2.5rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom)); overflow: hidden; }
.lc-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity .3s; }
.lc.is-video.is-connected .lc-remote { opacity: 1; }
.lc-remote-audio { display: none; }
.lc-who { position: relative; z-index: 2; text-align: center; margin-top: 8vh; transition: all .3s; }
.lc-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.15); box-shadow: 0 0 0 12px rgba(255,255,255,.05); }
.lc:not(.is-connected):not(.is-ended) .lc-photo { animation: lcPulse 2s infinite; }
.lc-name { font-size: 1.6rem; font-weight: 700; margin: 1rem 0 .25rem; color: #fff; }
.lc-status { color: #c9ced8; font-size: 1rem; font-variant-numeric: tabular-nums; }
.lc.is-video.is-connected .lc-who { margin-top: 0; align-self: flex-start; display: flex; align-items: center; gap: .6rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.lc.is-video.is-connected .lc-photo { width: 40px; height: 40px; border-width: 2px; box-shadow: none; }
.lc.is-video.is-connected .lc-name { font-size: 1.05rem; margin: 0; }
.lc.is-video.is-connected .lc-status { font-size: .85rem; text-align: left; }
.lc-local { position: absolute; z-index: 3; right: 16px; bottom: 120px; width: 110px; height: 160px; border-radius: 14px; object-fit: cover; background: #222; box-shadow: 0 6px 20px rgba(0,0,0,.4); transform: scaleX(-1); }
.lc.is-audio .lc-local { display: none; }
@media (min-width: 768px) { .lc-local { width: 200px; height: 130px; bottom: 130px; right: 24px; } }
.lc-controls { position: relative; z-index: 4; display: flex; gap: 1rem; justify-content: center; background: rgba(20, 22, 28, .6); backdrop-filter: blur(8px); padding: .75rem 1.1rem; border-radius: 999px; }
.lc-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.35rem; display: grid; place-items: center; }
.lc-btn:hover, .lc-btn:focus-visible { background: rgba(255,255,255,.24); }
.lc-btn.off { background: #fff; color: #111; }
.lc-btn.end { background: #e41e3f; }
.lc-btn.accept { background: #31a24c; animation: callPulse 1.4s infinite; }
.lc-back { position: relative; z-index: 4; color: #fff; background: rgba(255,255,255,.14); padding: .6rem 1.2rem; border-radius: 999px; text-decoration: none; }
.lc-back:hover { color: #fff; background: rgba(255,255,255,.24); }
.lc.is-ended .lc-local, .lc.is-ended .lc-remote { display: none; }
.lc.is-reconnecting .lc-status { color: #ffcf5c; }
.lc-unmute { position: absolute; z-index: 5; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 2rem; }
@keyframes lcPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.18); } 70% { box-shadow: 0 0 0 26px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .lc-photo, .lc-btn.accept { animation: none !important; } }
@media (max-width: 420px) { .lc-controls { gap: .55rem; padding: .6rem .8rem; } .lc-btn { width: 50px; height: 50px; font-size: 1.2rem; } }

/* Voice messages */
.msgr-voice { display: flex; align-items: center; gap: .55rem; min-width: 190px; padding: .1rem 0; }
.msgr-voice-play { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.25rem; background: rgba(255,255,255,.95); color: var(--jm-primary); flex-shrink: 0; }
.msgr-row.theirs .msgr-voice-play { background: var(--jm-primary); color: #fff; }
.msgr-voice-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; cursor: pointer; }
.msgr-row.theirs .msgr-voice-track { background: rgba(15,23,51,.15); }
.msgr-voice-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: currentColor; border-radius: 4px; }
.msgr-voice-time { font-size: .78rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.msgr-voice audio { display: none; }
.msgr-recording { display: flex; align-items: center; gap: .35rem; padding-bottom: .1rem; }
.msgr-recording.d-none { display: none !important; }
.rec-pill { flex: 1; display: flex; align-items: center; gap: .55rem; background: #fde8ea; color: #b4232f; border-radius: 22px; padding: .5rem .9rem; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e41e3f; animation: recBlink 1s infinite; flex-shrink: 0; }
.rec-wave { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.rec-wave i { width: 3px; height: 14px; background: #e41e3f; border-radius: 2px; animation: recWave 1s infinite ease-in-out; }
.rec-wave i:nth-child(2n) { animation-delay: .2s; } .rec-wave i:nth-child(3n) { animation-delay: .4s; }
.msgr-rec-send { background: var(--jm-primary); color: #fff; }
.msgr-rec-send:hover { background: var(--jm-primary); color: #fff; opacity: .9; }
.msgr-foot.is-recording .msgr-composer { display: none; }
@keyframes recBlink { 50% { opacity: .25; } }
@keyframes recWave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .rec-dot, .rec-wave i { animation: none; } }

/* Harpal hub & portal */
.hub-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary)); flex-shrink: 0; }
.hub-search .form-control { border-radius: 999px; border: 0; padding: .6rem 1rem; }
.hub-card { transition: box-shadow .15s, transform .15s; }
.hub-card:hover { box-shadow: 0 10px 30px rgba(15, 39, 217, .12); transform: translateY(-2px); }
.portal-hero { position: relative; padding: 3.5rem 0 2.5rem; background: radial-gradient(1200px 500px at 10% -10%, rgba(4,162,224,.35), transparent 60%), linear-gradient(135deg, #0a1240 0%, var(--jm-primary) 60%, var(--jm-secondary) 130%); color: #fff; overflow: hidden; }
.portal-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-img, none); background-size: cover; background-position: center; opacity: .25; }
.portal-title { font-family: var(--jm-serif); font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 700; color: #fff; letter-spacing: -.02em; }
.portal-lead { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 640px; margin: .5rem auto 1.5rem; }
.portal-search { display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px; padding: .35rem .35rem .35rem 1.1rem; box-shadow: 0 12px 40px rgba(0,0,0,.18); max-width: 640px; margin: 0 auto; }
.portal-search i { color: var(--jm-muted); }
.portal-search input { flex: 1; border: 0; outline: 0; min-width: 0; font-size: 1rem; color: var(--jm-ink); background: transparent; }
.portal-search .btn { border-radius: 999px; padding-inline: 1.3rem; }
.portal-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .75rem; margin-top: 2rem; }
.portal-module { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; border-radius: 18px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px); transition: background .15s, transform .15s; text-align: center; }
.portal-module:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-2px); }
.portal-module-icon { width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--jm-primary); display: grid; place-items: center; font-size: 1.5rem; }
.portal-module-name { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.portal-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--jm-line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--jm-ink); transition: box-shadow .15s, transform .15s; }
.portal-item:hover { box-shadow: var(--jm-shadow); transform: translateY(-2px); color: var(--jm-ink); }
.portal-item-media { position: relative; aspect-ratio: 4 / 3; background: var(--jm-soft); display: grid; place-items: center; color: var(--jm-primary); font-size: 2rem; }
.portal-item-media img { width: 100%; height: 100%; object-fit: cover; }
.portal-badge { position: absolute; top: .5rem; left: .5rem; background: var(--jm-accent); color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.portal-item-body { display: flex; flex-direction: column; padding: .75rem .85rem .85rem; flex: 1; min-width: 0; }
.portal-item-title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.portal-item-sub { font-size: .82rem; color: var(--jm-muted); margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-item-price { font-weight: 700; color: var(--jm-primary); }
.portal-item-price del { color: var(--jm-muted); font-weight: 400; font-size: .8rem; margin-left: .25rem; }
.portal-item-meta { font-size: .75rem; color: var(--jm-muted); white-space: nowrap; }
.bg-soft-section { background: var(--jm-soft); }
.portal-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 2rem; border-radius: 22px; background: linear-gradient(135deg, #7a0a2a, var(--jm-accent)); }
.text-brand { color: var(--jm-primary); }
@media (max-width: 575.98px) { .portal-hero { padding: 2rem 0 1.5rem; } .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } .portal-modules { grid-template-columns: repeat(3, 1fr); } .portal-module-icon { width: 44px; height: 44px; font-size: 1.25rem; } }
.module-subnav { background: #fff; border-bottom: 1px solid var(--jm-line); }
.module-subnav .container { padding-top: .45rem; padding-bottom: .45rem; scrollbar-width: none; }
.module-subnav a { white-space: nowrap; padding: .35rem .85rem; border-radius: 999px; color: var(--jm-ink); text-decoration: none; font-size: .9rem; }
.module-subnav a:hover { background: var(--jm-soft); }
.module-subnav a.active { background: var(--jm-soft); color: var(--jm-primary); font-weight: 600; }

/* Module pages (jobs, shopping, directory) */
.module-hero { position: relative; background: linear-gradient(135deg, #0a1240, var(--jm-primary) 70%, var(--jm-secondary)); overflow: hidden; }
.module-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.07); }
.module-hero-jobs { background: linear-gradient(135deg, #062b44, #0b6fa4 60%, var(--jm-secondary)); }
.module-hero-shop { background: linear-gradient(135deg, #3a0a18, var(--jm-accent) 65%, #ff7a3d); }
.module-hero-dir { background: linear-gradient(135deg, #0a2e1f, #178a55 65%, #3cc28a); }
.job-list { display: flex; flex-direction: column; gap: .6rem; }
.job-row { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--jm-line); border-radius: 14px; padding: .9rem 1rem; transition: box-shadow .15s; }
.job-row:hover { box-shadow: var(--jm-shadow); }
.job-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--jm-soft); display: grid; place-items: center; color: var(--jm-primary); font-size: 1.4rem; overflow: hidden; flex-shrink: 0; }
.job-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.job-logo.lg { width: 76px; height: 76px; font-size: 2rem; border-radius: 16px; }
.job-main { flex: 1; min-width: 0; }
.job-title { font-size: 1.05rem; margin: 0; font-weight: 600; }
.job-title a { color: var(--jm-ink); text-decoration: none; }
.job-title a:hover { color: var(--jm-primary); }
.job-company { font-size: .9rem; color: var(--jm-muted); }
.job-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .83rem; color: var(--jm-muted); margin-top: .35rem; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; flex-shrink: 0; }
.job-facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .9rem; margin-bottom: 1rem; }
.job-facts dt { color: var(--jm-muted); font-weight: 400; }
.job-facts dd { margin: 0; font-weight: 600; text-align: right; }
.text-prewrap { white-space: pre-line; }
.chip { display: inline-block; background: var(--jm-soft); color: var(--jm-primary); border-radius: 999px; padding: .2rem .7rem; font-size: .82rem; }
@media (max-width: 575.98px) { .job-row { padding: .75rem; gap: .65rem; } .job-logo { width: 42px; height: 42px; } .job-side { display: none; } }
.chip-check { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--jm-line); border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; cursor: pointer; }
.chip-check:has(input:checked) { border-color: var(--jm-primary); background: var(--jm-soft); color: var(--jm-primary); }
.app-steps { display: flex; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.app-steps li { flex: 1; position: relative; text-align: center; font-size: .78rem; color: var(--jm-muted); padding-top: 1.6rem; }
.app-steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--jm-line); color: var(--jm-muted); font-weight: 700; display: grid; place-items: center; font-size: .72rem; z-index: 1; }
.app-steps li::after { content: ""; position: absolute; top: .7rem; left: -50%; width: 100%; height: 2px; background: var(--jm-line); }
.app-steps li:first-child::after { display: none; }
.app-steps li.done { color: var(--jm-ink); font-weight: 600; }
.app-steps li.done::before { background: var(--jm-primary); color: #fff; }
.app-steps li.done::after { background: var(--jm-primary); }
.biz-cover { height: 220px; background: linear-gradient(135deg, #0a2e1f, #178a55 65%, #3cc28a) center / cover no-repeat; }
.biz-head { margin-top: -70px; position: relative; }
.biz-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.biz-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.5rem; color: #cfd6e4; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5b301; }
.star-input input:focus-visible + label { outline: 2px solid var(--jm-primary); border-radius: 4px; }
@media (max-width: 575.98px) { .biz-cover { height: 140px; } .biz-head { margin-top: -40px; } }

/* ---------------------------------------------------------------- Harpal Shopping */
.product-card{position:relative;display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--jm-line);border-radius:14px;overflow:hidden;transition:box-shadow .15s,transform .15s}
.product-card:hover{box-shadow:0 8px 24px rgba(15,39,217,.08);transform:translateY(-2px)}
.product-media{position:relative;display:grid;place-items:center;aspect-ratio:1/1;background:#f4f6fa;color:#b4bccb;font-size:2.4rem;overflow:hidden}
.product-media img{width:100%;height:100%;object-fit:cover}
.product-soldout{position:absolute;inset:auto 0 0 0;background:rgba(17,24,39,.72);color:#fff;font-size:.75rem;text-align:center;padding:.25rem}
.product-wish{position:absolute;top:.4rem;right:.4rem}
.product-wish .btn{background:rgba(255,255,255,.92);border-radius:50%;width:34px;height:34px;padding:0;display:grid;place-items:center}
.product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:600;color:inherit;line-height:1.3;min-height:2.6em;font-size:.95rem}
.product-price{font-weight:700;color:var(--jm-accent)}
.product-main{display:grid;place-items:center;aspect-ratio:1/1;background:#f4f6fa;border-radius:10px;overflow:hidden;font-size:4rem;color:#b4bccb}
.product-main img{width:100%;height:100%;object-fit:contain;background:#fff}
.product-thumb{width:64px;height:64px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#f4f6fa}
.product-thumb.active{border-color:var(--jm-secondary)}
.product-thumb img,.product-edit-thumb img{width:100%;height:100%;object-fit:cover}
.product-edit-thumb{display:flex;flex-direction:column;align-items:center;gap:.25rem;width:92px}
.product-edit-thumb img{width:92px;height:92px;border-radius:8px}
.cart-thumb{flex:0 0 auto;display:grid;place-items:center;width:64px;height:64px;border-radius:10px;overflow:hidden;background:#f4f6fa;color:#b4bccb;font-size:1.4rem}
.cart-thumb img{width:100%;height:100%;object-fit:cover}
.cart-thumb-sm{width:44px;height:44px;font-size:1rem}
.min-w-0{min-width:0}
.pay-option{display:flex;gap:.6rem;align-items:flex-start;border:1px solid var(--jm-line);border-radius:12px;padding:.8rem 1rem;cursor:pointer}
.pay-option:has(input:checked){border-color:var(--jm-secondary);background:rgba(4,162,224,.05)}
.pay-option.disabled{opacity:.6;cursor:not-allowed}
.pay-option input[type=radio]{margin-top:.3rem}
.order-track{display:flex;list-style:none;padding:0;margin:0;counter-reset:s}
.order-track li{flex:1;position:relative;text-align:center;font-size:.8rem;color:#8a93a6;padding-top:22px}
.order-track li::before{content:"";position:absolute;top:8px;left:-50%;width:100%;height:3px;background:#e3e7ef}
.order-track li:first-child::before{display:none}
.order-track li .dot{position:absolute;top:2px;left:50%;transform:translateX(-50%);width:15px;height:15px;border-radius:50%;background:#e3e7ef;z-index:1}
.order-track li.done{color:#1f2937}
.order-track li.done::before,.order-track li.done .dot{background:var(--jm-secondary)}
.order-track li.current .dot{box-shadow:0 0 0 5px rgba(4,162,224,.2)}
.order-track li .lbl{display:block;font-weight:600}
.order-track li small{display:block;color:#8a93a6}
.bar-chart{display:flex;align-items:flex-end;gap:2px;height:140px}
.bar-chart .bar{flex:1;background:linear-gradient(180deg,var(--jm-secondary),var(--jm-primary));border-radius:3px 3px 0 0;min-width:2px}
.chip.active{background:var(--jm-secondary);color:#fff;border-color:transparent}
@media (max-width:575px){.order-track li .lbl{font-size:.68rem}.order-track li small{display:none}}
@media (max-width: 1199.98px) { .jm-navbar .navbar-collapse { max-height: calc(100vh - 70px); overflow-y: auto; } }
@media (min-width: 1200px) and (max-width: 1399.98px) { .jm-navbar .nav-link { padding: .5rem .5rem !important; font-size: .95rem; } }
