/* GW Matrimony — public site styles. Theme colours come from Admin → Site Settings (CSS variables set in the header). */
:root {
    --primary: #1B5E20;
    --primary-dark: #0D2818;
    --gold: #D4AF37;
    --gold-dark: #B8960F;
    --dark: #1A1A2E;
    --cream: #FFF8E7;
    --bg: #F8F6F0;
    --paper: #FFFEF9;
    --text: #2C1810;
    --muted: #7A6A55;
    --border: #E8DFCC;
    --danger: #C62828;
    --success: #2E7D32;
    --warning: #E65100;
    --info: #0277BD;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 6px 24px rgba(26, 26, 46, .07);
    --shadow-lg: 0 18px 50px rgba(26, 26, 46, .14);
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4, h5 { line-height: 1.25; margin: 0 0 .5em; color: var(--primary); font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ---------- Buttons ---------- */
/* The hidden attribute always wins over component display rules (step buttons, panels). */
[hidden] { display: none !important; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 30px; border: 2px solid transparent; font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:focus-visible { outline: 3px solid rgba(212, 175, 55, .5); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-color: var(--gold); }
.btn-primary:hover { color: #fff; box-shadow: 0 6px 18px rgba(27, 94, 32, .3); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--dark); border-color: var(--gold-dark); }
.btn-gold:hover { color: var(--dark); box-shadow: 0 6px 18px rgba(212, 175, 55, .35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--gold); }
.btn-outline:hover { background: var(--cream); color: var(--primary); }
.btn-light { background: var(--cream); color: var(--primary); border-color: rgba(212, 175, 55, .35); }
.btn-light:hover { background: #fff; color: var(--primary); border-color: var(--gold); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-white:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-danger { background: #fff; color: var(--danger); border-color: #F3C4C4; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-xs { padding: 5px 11px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Top bar & header ---------- */
.topbar { background: linear-gradient(135deg, var(--dark), var(--primary-dark)); color: var(--gold); font-size: 12.5px; border-bottom: 2px solid var(--gold); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: var(--cream); margin-left: 16px; }
.topbar a:hover { color: var(--gold); }
.site-header { background: var(--paper); border-bottom: 2px solid rgba(212, 175, 55, .22); box-shadow: 0 2px 14px rgba(0, 0, 0, .06); z-index: 900; }
.site-header.is-sticky { position: sticky; top: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--primary); min-width: 0; }
.brand-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: 2px solid var(--gold); color: var(--gold); font-size: 22px; }
.brand-logo { width: auto; max-width: 200px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
/* The size comes from Admin -> Logo & Favicon (--brand-size); phones shrink it a little. */
/* break-word, not anywhere: a long name still breaks when it has to, but the title can never be
   squeezed into one letter per line by a long menu. */
.brand-text strong { font-size: var(--brand-size, 19px); color: var(--primary); line-height: 1.12; overflow-wrap: break-word; }
.brand-text small { font-size: var(--tagline-size, 10px); letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-dark); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 14px; white-space: nowrap; }
.nav-list a:hover, .nav-list a.active { color: var(--primary); background: var(--cream); }
.nav-list .fa-chevron-down { font-size: 10px; }
.sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: block; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-link { position: relative; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); background: var(--cream); border: 1px solid rgba(212, 175, 55, .35); }
.icon-link .count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.icon-link .label-mobile { display: none; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--border); border-radius: 30px; padding: 4px 12px 4px 4px; cursor: pointer; font: inherit; color: var(--text); }
.user-btn img, .avatar-initials { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--gold); font-weight: 700; font-size: 13px; }
.user-btn .fa-chevron-down { font-size: 10px; color: var(--muted); }
.dropdown { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); z-index: 950; }
.user-menu.open .dropdown { display: block; }
.dropdown a, .sub-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.dropdown a:hover, .sub-menu a:hover { background: var(--cream); color: var(--primary); }
.dropdown i { width: 18px; color: var(--gold-dark); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-backdrop { display: none; }

/* ---------- Alerts ---------- */
.flash-stack { padding-top: 18px; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 12px; border-left: 4px solid; background: #fff; font-size: 14px; box-shadow: var(--shadow); }
.alert > span { flex: 1; }
.alert i { margin-top: 3px; }
.alert-success { border-color: var(--success); color: #1B5E20; background: #EEF7EE; }
.alert-error { border-color: var(--danger); color: #8E1B1B; background: #FDEEEE; }
.alert-warning { border-color: var(--warning); color: #8A3A00; background: #FFF4E5; }
.alert-info { border-color: var(--info); color: #01579B; background: #EAF5FC; }
.alert-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.alert ul { margin: 4px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: linear-gradient(180deg, #F3EFE4, var(--paper)); }
.section-head { text-align: center; margin: 0 auto 40px; max-width: 700px; }
.section-head .eyebrow { display: block; color: var(--muted); font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.section-head h2 span { color: var(--gold-dark); }
.section-head p { color: var(--muted); margin: 10px 0 0; }
.section-head .divider { display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--gold); margin: 14px auto 0; }
.page-hero { background: linear-gradient(135deg, var(--dark), var(--primary-dark)); color: #fff; padding: 48px 0 44px; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, .16), transparent 45%), radial-gradient(circle at 80% 80%, rgba(212, 175, 55, .1), transparent 40%); pointer-events: none; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin: 0; position: relative; z-index: 1; }
.page-hero p { color: #D8CCB6; margin: 8px 0 0; position: relative; z-index: 1; }
.breadcrumb { position: relative; z-index: 1; font-size: 13px; color: var(--gold); margin-top: 8px; }
.breadcrumb a { color: var(--cream); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; background: linear-gradient(135deg, var(--dark), var(--primary-dark)); color: #fff; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s; }
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26, 26, 46, .82), rgba(13, 40, 24, .72)); }
.hero-pattern { position: absolute; inset: 0; background: radial-gradient(circle at 15% 25%, rgba(212, 175, 55, .18), transparent 35%), radial-gradient(circle at 85% 75%, rgba(212, 175, 55, .12), transparent 35%); }
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 70px 0 120px; max-width: 820px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(212, 175, 55, .18); border: 1px solid var(--gold); color: var(--gold); padding: 5px 18px; border-radius: 25px; font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); margin-bottom: 14px; }
.hero h1 span { color: var(--gold); }
.hero p { color: #DDD2BE; font-size: 16.5px; max-width: 620px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 80px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--gold); width: 26px; border-radius: 6px; }

.search-panel { position: relative; z-index: 5; margin-top: -70px; }
.search-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); border: 1px solid rgba(212, 175, 55, .25); max-width: 1000px; margin: 0 auto; }
.search-card h3 { text-align: center; font-size: 20px; }
.search-card h3 i { color: var(--gold); }

/* ---------- Cards & forms ---------- */
.card { background: #fff; border-radius: var(--radius); border: 1px solid rgba(212, 175, 55, .18); box-shadow: var(--shadow); }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: linear-gradient(135deg, var(--cream), #fff); border-radius: var(--radius) var(--radius) 0 0; }
.card-head h2, .card-head h3 { margin: 0; font-size: 17px; }
.card-head h2 i, .card-head h3 i { color: var(--gold-dark); margin-right: 6px; }
.card-body { padding: 20px; }
.card + .card { margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--primary); }
.field .req { color: var(--danger); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]):not([type=range]), .field select, .field textarea, .select {
    width: 100%; min-height: 48px; padding: 11px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--paper);
    font: inherit; font-size: 14px; line-height: 1.5; color: var(--text); transition: border-color .2s, box-shadow .2s; }
/* Every single-line box is exactly the same height, whatever it is: a number box, a date, a dropdown. */
.field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), .field select, .input:not(textarea), .select { height: 48px; }
.field textarea, textarea.input { height: auto; }
.field textarea { min-height: 110px; resize: vertical; }
.field input[type=file] { width: 100%; padding: 9px 12px; border: 2px dashed var(--border); border-radius: var(--radius-sm);
    background: var(--paper); font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.field input[type=file]:hover { border-color: var(--gold); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .15); background: #fff; }
.field .help { font-size: 12px; color: var(--muted); }
.field .error-text { font-size: 12px; color: var(--danger); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.input-wrap { position: relative; }
.input-wrap .toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--primary); }
.choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.choice { flex: 1; min-width: 140px; position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--muted); background: var(--paper); transition: all .2s; }
.choice input:checked + span { border-color: var(--gold); background: var(--cream); color: var(--primary); box-shadow: 0 3px 12px rgba(212, 175, 55, .2); }
.choice input:focus-visible + span { outline: 3px solid rgba(212, 175, 55, .4); }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.form-section-title { grid-column: 1 / -1; font-size: 15px; font-weight: 700; color: var(--primary); border-bottom: 1px dashed var(--border); padding-bottom: 6px; margin: 8px 0 0; }
.form-section-title i { color: var(--gold-dark); margin-right: 6px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 220px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: radial-gradient(circle at 10% 10%, rgba(212, 175, 55, .08), transparent 40%), var(--bg); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(212, 175, 55, .3); }
.auth-card.wide { max-width: 860px; }
.auth-head { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 26px 24px; text-align: center; border-bottom: 3px solid var(--gold); }
.auth-head h1 { color: #fff; font-size: 22px; margin: 0; }
.auth-head p { color: var(--gold); margin: 4px 0 0; font-size: 13px; }
.auth-body { padding: 26px; }
.auth-foot { background: var(--cream); padding: 14px 24px; text-align: center; font-size: 14px; border-top: 1px solid var(--border); }
.steps { display: flex; justify-content: center; gap: 0; padding: 18px 20px 4px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; width: 110px; position: relative; }
.step::before { content: attr(data-n); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #F2ECDD; border: 2px solid var(--border); font-size: 14px; color: var(--muted); z-index: 1; }
.step::after { content: ''; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: var(--border); }
.step:last-child::after { display: none; }
.step.active::before { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--gold); border-color: var(--gold); }
.step.done::before { content: '✓'; background: var(--primary); color: #fff; border-color: var(--gold); }
.step.done::after { background: var(--gold); }
.step.active, .step.done { color: var(--primary); }
/* Phones: six steps fit only if each one is narrow, so the names are smaller and the circles too. */
@media (max-width: 600px) {
    .steps { padding: 16px 6px 4px; }
    .step { width: auto; flex: 1 1 0; min-width: 0; font-size: 10px; letter-spacing: .3px; }
    .step::before { width: 30px; height: 30px; font-size: 13px; }
    .step::after { top: 15px; }
}
.reg-step + .reg-step { margin-top: 22px; }
.js .reg-step { display: none; margin-top: 0; }
.js .reg-step.active { display: block; }

/* ---------- Profile cards ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.profile-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(212, 175, 55, .18); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .25s, border-color .25s; }
.profile-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold); }
.pc-photo { position: relative; display: block; aspect-ratio: 4 / 4.2; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); overflow: hidden; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; }
.pc-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--gold); font-size: 54px; text-align: center; }
.pc-placeholder.is-female { background: linear-gradient(135deg, #5B2A4A, #2A1428); }
.pc-placeholder small { font-size: 12px; color: #EADFC8; padding: 0 12px; }
.pc-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; line-height: 1.5; background: #EEE; color: #444; white-space: nowrap; }
.badge-verified { background: #E8F5E9; color: #1B5E20; }
.badge-premium { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--dark); }
.badge-new { background: var(--dark); color: var(--gold); }
.badge-pending { background: #FFF4E5; color: #8A3A00; }
.badge-danger { background: #FDEEEE; color: var(--danger); }
.badge-info { background: #EAF5FC; color: #01579B; }
.badge-muted { background: #F1EDE4; color: var(--muted); }
.pc-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pc-name { font-size: 16px; margin: 0; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pc-name a { color: var(--primary); }
.pc-id { font-size: 11px; color: var(--muted); font-weight: 500; }
.pc-meta { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); display: grid; gap: 3px; }
.pc-meta li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta i { width: 16px; color: var(--gold-dark); margin-right: 4px; }
.pc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.pc-actions form { flex: 1; }
.pc-actions .btn { width: 100%; }
.pc-body > .btn { margin-top: auto; }

/* ---------- Search layout ---------- */
.search-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; align-items: start; }
.filter-card { position: sticky; top: 96px; }
.filter-card .field { margin-bottom: 12px; }
.range-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; background: var(--cream); border: 1px solid rgba(212, 175, 55, .35); font-size: 12.5px; color: var(--primary); }
.filter-toggle { display: none; }

/* ---------- Profile page ---------- */
.profile-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; }
.gallery-main { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 4.6; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: #eee; }
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.profile-actions { display: grid; gap: 8px; margin-top: 14px; }
.profile-actions form { margin: 0; }
.profile-title { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.profile-title h1 { font-size: 26px; margin: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.detail-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.detail-row dt { width: 44%; flex-shrink: 0; color: var(--muted); }
.detail-row dd { margin: 0; font-weight: 500; word-break: break-word; }
.lock-box { background: var(--cream); border: 1px dashed var(--gold); border-radius: 12px; padding: 16px; text-align: center; font-size: 14px; }
.lock-box i { font-size: 22px; color: var(--gold-dark); display: block; margin-bottom: 6px; }

/* ---------- Member dashboard ---------- */
.dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; padding: 32px 0 60px; }
.dash-nav { position: sticky; top: 96px; padding: 10px; }
.dash-user { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.dash-user img, .dash-user .avatar-initials { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dash-user strong { display: block; color: var(--primary); line-height: 1.2; }
.dash-user small { color: var(--muted); }
.dash-nav nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 14px; }
.dash-nav nav a i { width: 18px; text-align: center; color: var(--gold-dark); }
.dash-nav nav a:hover, .dash-nav nav a.active { background: var(--cream); color: var(--primary); }
.dash-nav nav a.active { font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.dash-nav .count { margin-left: auto; background: var(--danger); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; }
.dash-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-title h1 { font-size: 24px; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid rgba(212, 175, 55, .18); box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; color: var(--text); }
.stat i { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; background: var(--cream); color: var(--gold-dark); flex-shrink: 0; }
.stat strong { display: block; font-size: 22px; color: var(--primary); line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }
.progress { height: 10px; background: #F1EBDD; border-radius: 10px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--primary)); border-radius: 10px; }
.status-banner { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; }
.status-banner i { font-size: 26px; }
.status-banner.pending { background: #FFF4E5; color: #8A3A00; border: 1px solid #FFD8A8; }
.status-banner.rejected { background: #FDEEEE; color: #8E1B1B; border: 1px solid #F3C4C4; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 16px; white-space: nowrap; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--primary); border-color: var(--gold); }
.tabs .count { background: var(--cream); color: var(--primary); border-radius: 10px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.list-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row .thumb { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--cream); display: flex; align-items: center; justify-content: center; color: var(--gold-dark); font-size: 22px; overflow: hidden; }
.list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-row .thumb .thumb-initials { font-size: 20px; font-weight: 700; letter-spacing: .5px; color: var(--primary); }
.list-row .thumb.is-locked { color: var(--muted); font-size: 18px; background: var(--border); }
.list-row .info { flex: 1; min-width: 0; }
.list-row .info strong { color: var(--primary); }
.list-row .info p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.list-row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.photo-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.photo-slot { border: 2px dashed var(--border); border-radius: 14px; padding: 12px; text-align: center; background: var(--paper); }
.photo-slot .ph { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cream); display: flex; align-items: center; justify-content: center; color: var(--gold-dark); font-size: 40px; margin-bottom: 10px; }
.photo-slot .ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: min(72vh, 680px); overflow: hidden; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; }
.chat-list a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #F3EEE2; color: var(--text); }
.chat-list a.active, .chat-list a:hover { background: var(--cream); }
.chat-list .thumb { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--cream); display: flex; align-items: center; justify-content: center; color: var(--gold-dark); }
.chat-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-list .meta { flex: 1; min-width: 0; }
.chat-list .meta strong { display: block; font-size: 14px; color: var(--primary); }
.chat-list .meta small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list .unread { background: var(--danger); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; }
.chat-thread { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: var(--paper); }
/* Report / Block, always within reach while two people are talking. */
.chat-safety { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }
.chat-safety .btn { white-space: nowrap; }
@media (max-width: 520px) { .chat-safety .btn i { margin: 0; } .chat-safety .btn span { display: none; } }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #FBF9F3; }
.bubble { max-width: 75%; padding: 9px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.bubble time { display: block; font-size: 10.5px; opacity: .7; margin-top: 3px; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 10px 14px; border: 2px solid var(--border); border-radius: 22px; font: inherit; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); padding: 30px; text-align: center; }

/* ---------- Plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; align-items: stretch; }
.plan { background: #fff; border-radius: 18px; border: 2px solid var(--border); padding: 28px 24px; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow); }
.plan.popular { border-color: var(--gold); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--dark); padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan .price { font-size: 34px; font-weight: 700; color: var(--primary); line-height: 1.1; margin: 10px 0 2px; }
.plan .per { color: var(--muted); font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; font-size: 14px; }
.plan ul li { display: flex; gap: 8px; }
.plan ul li i { color: var(--success); margin-top: 4px; }
.plan .btn { margin-top: auto; }

/* ---------- Misc content ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.about-visual { border-radius: 20px; border: 3px solid var(--gold); min-height: 360px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 90px; overflow: hidden; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; }
.check-list li { display: flex; gap: 10px; padding: 7px 0; }
.check-list i { color: var(--gold-dark); margin-top: 5px; }
.counter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
.counter { text-align: center; padding: 18px 12px; background: #fff; border-radius: 14px; border: 1px solid rgba(212, 175, 55, .22); }
.counter strong { display: block; font-size: 26px; color: var(--primary); }
.counter span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.story-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(212, 175, 55, .18); box-shadow: var(--shadow); }
.story-card .img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--dark), var(--primary-dark)); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 44px; }
.story-card .img img { width: 100%; height: 100%; object-fit: cover; }
.story-card .body { padding: 18px 20px; }
.story-card h3 { font-size: 17px; margin-bottom: 4px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.testimonial { background: #fff; border-radius: 16px; padding: 26px; border: 1px solid rgba(212, 175, 55, .18); position: relative; box-shadow: var(--shadow); }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial blockquote { margin: 0 0 16px; color: #5B4B3A; font-style: italic; font-size: 14px; }
.testimonial .who { display: flex; gap: 12px; align-items: center; }
.testimonial .who .avatar-initials, .testimonial .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; position: relative; background: var(--cream); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 13px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(212, 175, 55, .18); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card .img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 40px; }
.post-card .img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 17px; margin: 0; }
.post-card .more { margin-top: auto; font-weight: 600; }
.prose { font-size: 15.5px; line-height: 1.8; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 12px; margin: 16px 0; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 16px 0; padding: 8px 16px; background: var(--cream); border-radius: 0 10px 10px 0; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--primary); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold-dark); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 20px 18px; color: #5B4B3A; }
.cta-band { background: linear-gradient(135deg, var(--dark), var(--primary-dark)); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: var(--cream); font-size: clamp(24px, 4vw, 34px); }
.cta-band h2 span { color: var(--gold); }
.cta-band p { color: #CDBFA6; margin-bottom: 24px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state i { font-size: 50px; color: var(--gold); opacity: .45; display: block; margin-bottom: 14px; }
.empty-state h3 { color: var(--primary); font-size: 18px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.table th { color: var(--primary); font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; background: var(--cream); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--primary); font-weight: 600; padding: 0 10px; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--gold); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 26px; align-items: start; }
.contact-info li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.contact-info i { width: 38px; height: 38px; border-radius: 10px; background: var(--cream); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.map-embed iframe { width: 100%; height: 320px; border: 0; border-radius: 14px; }
.upi-box { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--cream); border-radius: 14px; padding: 18px; }
.upi-box img { width: 170px; height: 170px; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--dark), var(--primary-dark)); color: #B8A898; margin-top: 0; }
.footer-newsletter { border-bottom: 1px solid rgba(212, 175, 55, .18); padding: 30px 0; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.newsletter-inner h3 { color: var(--cream); margin: 0 0 4px; font-size: 19px; }
.newsletter-inner p { margin: 0; font-size: 14px; }
.newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 260px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 12px 18px; border-radius: 30px; border: 1px solid rgba(212, 175, 55, .4); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.newsletter-form input::placeholder { color: #9F927E; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-top: 46px; padding-bottom: 36px; }
.footer-col h4 { color: var(--cream); font-size: 16px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid rgba(212, 175, 55, .3); }
.footer-col p { font-size: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-col a { color: #C9BBA3; }
.footer-col a:hover { color: var(--gold); }
.footer-logo { margin-bottom: 12px; width: auto; }
.contact-list li { display: flex; gap: 10px; }
.contact-list i { color: var(--gold); margin-top: 4px; width: 16px; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
/* Each icon uses the colour chosen for it in Admin -> Social Links; without one it keeps the gold look. */
.social-row a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--social-bg, rgba(212, 175, 55, .1)); border: 1px solid var(--social-bg, rgba(212, 175, 55, .3));
    color: var(--social-fg, var(--gold)); transition: filter .2s; }
.social-row a[style*="--social-bg"] { --social-fg: #fff; }
.social-row a:hover { filter: brightness(1.15); }
.social-row a:not([style*="--social-bg"]):hover { background: var(--gold); color: var(--dark); }
.app-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.app-links a { border: 1px solid rgba(212, 175, 55, .4); border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(212, 175, 55, .15); padding: 16px 0; font-size: 13px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.dev-credit a { color: #9F927E; }
/* ---------- Floating buttons (translate, WhatsApp, AI assistant, back to top) ---------- */
.float-stack { position: fixed; bottom: 18px; z-index: 850; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.float-stack > * { pointer-events: auto; }
.float-stack.is-right { right: 18px; }
.float-stack.is-left { left: 18px; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.float-btn:hover { color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.float-wa { border-color: transparent; color: #fff; font-size: 28px; }
.float-wa:hover { color: #fff; }
.back-to-top { width: 42px; height: 42px; font-size: 15px; opacity: 0; visibility: hidden; transition: opacity .3s; }
.back-to-top.show { opacity: 1; visibility: visible; }
.translate-wrap, .ai-wrap { position: relative; }
/* Translate button: theme colours unless Admin → Widgets & Buttons sets --ft-bg / --ft-fg. */
.float-translate { --ft-cut: var(--primary); background: var(--ft-bg, linear-gradient(135deg, var(--primary), var(--primary-dark))); color: var(--ft-fg, var(--gold)); }
.float-translate:hover { color: var(--ft-fg, var(--gold)); filter: brightness(1.08); }
.float-translate .gt-icon { display: block; width: 30px; height: 30px; }
.float-translate.has-label { width: auto; min-width: 52px; padding: 0 16px 0 10px; gap: 8px; border-radius: 26px; font-size: 18px; }
.float-translate .ft-label { font-size: 13px; font-weight: 600; color: inherit; white-space: nowrap; }
@media (max-width: 768px) {
    /* Phones: the button text set in Admin -> Widgets & Buttons is kept, only smaller and cut off if
       it is long, so it never covers the page. With no text set the button stays a plain circle. */
    .float-translate.has-label { padding: 0 13px 0 7px; gap: 6px; }
    .float-translate .ft-label { font-size: 12px; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
    .is-left .float-translate:not(.has-label) + .translate-panel { left: 62px; bottom: 0; }
    .is-right .float-translate:not(.has-label) + .translate-panel { right: 62px; bottom: 0; }
}
.is-left .float-translate.has-label + .translate-panel { left: 0; bottom: 62px; }
.is-right .float-translate.has-label + .translate-panel { right: 0; bottom: 62px; }
.float-panel { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid rgba(212, 175, 55, .4); }
.translate-panel { display: none; position: absolute; bottom: 0; width: 230px; max-height: 60vh; overflow-y: auto; padding: 10px; }
.is-left .translate-panel { left: 62px; }
.is-right .translate-panel { right: 62px; }
.translate-wrap.open .translate-panel { display: block; }
.translate-panel strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 4px 8px 8px; }
.translate-panel button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.translate-panel button:hover, .translate-panel button.active { background: var(--cream); color: var(--primary); }
.translate-panel button.active::after { content: ' ✓'; color: var(--gold-dark); }
.ai-panel { position: fixed; right: 18px; bottom: 84px; width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden; z-index: 900; }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--gold); }
.ai-head i { color: var(--gold); }
.ai-head button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 15px; padding: 2px 6px; opacity: .85; }
.ai-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #FBF9F3; }
.ai-msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; word-wrap: break-word; }
.ai-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ai-msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg.error { background: #FDEEEE; color: #8E1B1B; border-color: #F3C4C4; }
.ai-msg a { color: inherit; text-decoration: underline; }
.ai-typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--gold-dark); animation: aiDot 1.2s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .15s; } .ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.ai-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: #fff; }
.ai-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 2px solid var(--border); border-radius: 22px; font: inherit; font-size: 14px; }
.ai-form input:focus { outline: none; border-color: var(--gold); }
.ai-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary); color: var(--gold); cursor: pointer; }
.ai-note { display: block; font-size: 10.5px; color: var(--muted); text-align: center; padding: 0 10px 8px; background: #fff; }
/* Google Translate: keep only our own button, hide Google's banner and tooltips. */
.goog-te-banner-frame, iframe.skiptranslate, .VIpgJd-ZVi9od-ORHb-OEVmcd, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---------- Hero animation & one-line search ---------- */
.hero-slide::after { background: linear-gradient(135deg, rgba(26, 26, 46, var(--hero-overlay, .8)), rgba(13, 40, 24, var(--hero-overlay, .72))); }
.hero.anim-kenburns .hero-slide.active { animation: gwmKenBurns 14s ease-out forwards; }
.hero.anim-kenburns .hero-slide:nth-of-type(even).active { animation-name: gwmKenBurnsAlt; }
@keyframes gwmKenBurns { from { transform: scale(1); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes gwmKenBurnsAlt { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1); } }
.hero:not(.has-images) { background: linear-gradient(120deg, var(--dark), var(--primary-dark), var(--primary), var(--dark)); background-size: 300% 300%; animation: gwmGradient 18s ease infinite; }
.hero.anim-none:not(.has-images) { animation: none; }
@keyframes gwmGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero-pattern { animation: gwmGlow 10s ease-in-out infinite alternate; }
.hero.anim-none .hero-pattern { animation: none; }
@keyframes gwmGlow { from { opacity: .6; } to { opacity: 1; } }
.search-card.hero-search { max-width: 1160px; padding: 18px 20px; }
.search-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.search-row .field label { font-size: 12px; }
.search-row select, .search-row input { padding: 0 10px; height: 44px; }
.search-row .search-submit { grid-column: 1 / -1; }
@media (min-width: 768px) { .search-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
    .search-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) auto; }
    .search-row .search-submit { grid-column: auto; }
    .search-row .search-submit .btn { width: auto; padding: 11px 22px; }
}

/* ---------- Mobile header login / register ---------- */
.mobile-auth { display: none; align-items: center; gap: 6px; margin-left: auto; }
.mobile-auth .icon-link { width: 40px; height: 40px; }
@media (max-width: 992px) { .mobile-auth { display: flex; } }
@media (max-width: 360px) { .mobile-auth .btn-xs { padding: 5px 8px; font-size: 11px; } }
@media (max-width: 520px) {
    .brand { gap: 8px; }
    .brand-text strong { white-space: normal; overflow: visible; text-overflow: clip; font-size: calc(var(--brand-size, 16.5px) * 0.85); line-height: 1.1; overflow-wrap: anywhere; }
    .brand-icon { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; }
    .header-inner { gap: 8px; }
    .mobile-auth { gap: 4px; }
    .mobile-auth .btn-xs { padding: 5px 9px; }
    .float-stack { bottom: 12px; gap: 8px; }
    .float-stack.is-right { right: 12px; } .float-stack.is-left { left: 12px; }
    .float-btn { width: 44px; height: 44px; font-size: 18px; }
    .float-wa { font-size: 23px; }
    .back-to-top { width: 38px; height: 38px; }
    .ai-panel { right: 8px; bottom: 66px; width: calc(100vw - 16px); height: calc(100vh - 90px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav-list a { padding: 9px 9px; font-size: 13.5px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .nav-toggle { display: flex; }
    .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 70px 18px 24px; overflow-y: auto; transform: translateX(105%); transition: transform .28s ease; z-index: 1001; box-shadow: var(--shadow-lg); }
    body.nav-open .main-nav { transform: translateX(0); }
    body.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1000; }
    body.nav-open { overflow: hidden; }
    /* The drawer lives inside the sticky header (its own stacking layer): lift the header above the backdrop so the menu stays bright and tappable. */
    body.nav-open .site-header { z-index: 1001; }
    body.nav-open .nav-toggle { position: fixed; right: 18px; top: 14px; z-index: 1002; }
    body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-list { flex-direction: column; gap: 2px; }
    .nav-list a { padding: 12px 14px; font-size: 15px; }
    .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; }
    .nav-actions { flex-direction: column; align-items: stretch; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); gap: 10px; }
    .nav-actions .btn { width: 100%; }
    .icon-link { width: auto; height: auto; border-radius: 10px; justify-content: flex-start; gap: 10px; padding: 11px 14px; }
    .icon-link .label-mobile { display: inline; }
    .icon-link .count { position: static; margin-left: auto; }
    /* Inside the slide-out menu the account links are a flat list; the member button in the header
       keeps its own drop-down (see .user-menu.is-mobile). */
    .nav-actions .user-btn { width: 100%; }
    .nav-actions .user-menu .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 0; }
    .search-layout, .profile-layout, .dash, .contact-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
    .filter-card, .dash-nav { position: static; }
    .filter-toggle { display: inline-flex; }
    .filter-card.collapsed .card-body { display: none; }
    .dash-nav nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .dash-nav nav a { white-space: nowrap; }
    .dash-nav nav a.active { box-shadow: inset 0 -3px 0 var(--gold); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chat { grid-template-columns: minmax(0, 1fr); height: auto; }
    .chat-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--border); }
    .chat.has-thread .chat-list { display: none; }
    .chat-body { min-height: 50vh; max-height: 60vh; }
    .about-visual { min-height: 260px; }
}
@media (max-width: 768px) {
    body { font-size: 14.5px; }
    .section { padding: 50px 0; }
    .topbar-text { display: none; }
    .topbar-inner { justify-content: center; }
    .topbar a { margin: 0 8px; }
    .hero { min-height: 480px; }
    .hero-inner { padding: 50px 0 110px; }
    .search-card { padding: 20px; }
    .grid-2, .grid-3, .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .form-grid .span-2 { grid-column: 1 / -1; }
    .photo-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .list-row { flex-wrap: wrap; }
    .list-row .actions { width: 100%; justify-content: flex-start; }
    .newsletter-form { max-width: none; }
}
@media (max-width: 520px) {
    .container { padding: 0 14px; }
    .brand-text strong { font-size: calc(var(--brand-size, 19px) * 0.84); }
    .brand-icon { width: 42px; height: 42px; font-size: 19px; }
    .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pc-body { padding: 12px; }
    .pc-name { font-size: 14px; flex-direction: column; gap: 0; }
    .pc-meta { font-size: 12px; }
    .stat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
    .stat { padding: 12px; gap: 10px; }
    .stat i { width: 38px; height: 38px; font-size: 16px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .photo-slots { grid-template-columns: minmax(0, 1fr); }
    .step { width: 84px; font-size: 10px; }
    .auth-body { padding: 20px; }
    .bubble { max-width: 88%; }
    .kv { grid-template-columns: minmax(0, 1fr); }
    .detail-row dt { width: 46%; }
}

/* =====================================================================
   Premium homepage · top-bar marquee · profile slider · gallery · videos
   · app-style mobile layout
   ===================================================================== */

/* ---- Top bar marquee ---- */
.topbar-marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; width: max-content; animation: gwmMarquee var(--marquee-speed, 35s) linear infinite; }
.topbar-marquee:hover .marquee-track, .topbar-marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #EFE3C8; }
.marquee-item::after { content: '✦'; color: var(--gold); margin: 0 22px; font-size: 10px; opacity: .85; }
.marquee-item.is-brand i { color: var(--gold); }
.marquee-item.is-brand .marquee-logo { height: 20px; width: auto; max-width: 70px; object-fit: contain; border-radius: 3px; }
.marquee-item.is-brand strong { color: var(--gold); letter-spacing: .8px; text-transform: uppercase; font-weight: 700; }
.marquee-item.is-brand em { font-style: normal; color: #CDBFA6; }
@keyframes gwmMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Premium hero ---- */
.hero-premium { min-height: 660px; }
.hero-premium .hero-inner { max-width: 1180px; padding: 84px 0 130px; }
.hero-premium .hero-inner > * { animation: gwmRise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-premium .hero-inner > *:nth-child(2) { animation-delay: .1s; }
.hero-premium .hero-inner > *:nth-child(3) { animation-delay: .2s; }
.hero-premium .hero-inner > *:nth-child(4) { animation-delay: .3s; }
.hero-premium .hero-inner > *:nth-child(5) { animation-delay: .4s; }
@keyframes gwmRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-premium h1 { font-size: clamp(32px, 5.2vw, 56px); letter-spacing: -.5px; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.hero-premium h1 span { background: linear-gradient(90deg, #F6E27A 0%, var(--gold) 25%, #FFF6C8 50%, var(--gold) 75%, #F6E27A 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gwmShimmer 5s linear infinite; }
@keyframes gwmShimmer { to { background-position: 200% center; } }
.hero-premium .hero-badge { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 24px rgba(212, 175, 55, .25); }
.hero-geo { position: absolute; inset: 0; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='1.2'%3E%3Cpath d='M48 10l10 28 28 10-28 10-10 28-10-28-28-10 28-10z'/%3E%3Ccircle cx='48' cy='48' r='7'/%3E%3C/g%3E%3C/svg%3E"); background-size: 96px 96px; animation: gwmDrift 80s linear infinite; }
@keyframes gwmDrift { to { background-position: 480px 240px; } }
.hero-sparkles span { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 2px rgba(212, 175, 55, .7); opacity: 0; animation: gwmFloat 13s linear infinite; z-index: 1; pointer-events: none; }
.hero-sparkles span:nth-child(1) { left: 6%; animation-delay: 0s; }
.hero-sparkles span:nth-child(2) { left: 18%; animation-delay: 3s; width: 4px; height: 4px; animation-duration: 11s; }
.hero-sparkles span:nth-child(3) { left: 31%; animation-delay: 6s; }
.hero-sparkles span:nth-child(4) { left: 44%; animation-delay: 1.5s; width: 3px; height: 3px; animation-duration: 15s; }
.hero-sparkles span:nth-child(5) { left: 58%; animation-delay: 8s; }
.hero-sparkles span:nth-child(6) { left: 71%; animation-delay: 4.5s; width: 4px; height: 4px; animation-duration: 12s; }
.hero-sparkles span:nth-child(7) { left: 84%; animation-delay: 10s; }
.hero-sparkles span:nth-child(8) { left: 94%; animation-delay: 7s; width: 3px; height: 3px; animation-duration: 16s; }
@keyframes gwmFloat { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .5; } 100% { transform: translateY(-640px) scale(1.1); opacity: 0; } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; color: var(--bg); z-index: 2; line-height: 0; pointer-events: none; }
.hero-wave svg { display: block; width: 100%; height: 100%; }
.hero-premium .hero-dots { bottom: 74px; }
.hero-premium .hero-cta { margin-top: 4px; }

/* ---- Hero styles (Admin → Homepage & Hero → Hero style) ---- */
.hero-slider-style { min-height: 620px; }
.hero-slider-style .hero-inner { padding: 90px 20px 150px; }
.hero-slider-style .hero-slide::after { background: linear-gradient(180deg, rgba(13, 20, 15, calc(var(--hero-overlay, .75) * .45)) 0%, rgba(13, 20, 15, calc(var(--hero-overlay, .75) * .8)) 70%, rgba(13, 20, 15, var(--hero-overlay, .75)) 100%); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(212, 175, 55, .6); background: rgba(0, 0, 0, .28); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s, color .2s; }
.hero-arrow:hover { background: var(--gold); color: var(--dark); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }
.hero-split { min-height: 0; }
.hero-split-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 150px; }
.hero-copy { text-align: left; }
.hero-copy > * { animation: gwmRise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-copy > *:nth-child(3) { animation-delay: .2s; }
.hero-copy > *:nth-child(4) { animation-delay: .3s; }
.hero-copy > *:nth-child(5) { animation-delay: .4s; }
.hero-split h1 { font-size: clamp(30px, 4.3vw, 54px); }
.hero-split p { margin: 0 0 26px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-split .hero-trust { justify-content: flex-start; }
.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); animation: gwmRise 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
.hv-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px 28px 28px; overflow: hidden; border: 3px solid var(--gold); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 10px rgba(212, 175, 55, .12); }
.hv-frame .hero-slide::after { background: linear-gradient(transparent 55%, rgba(0, 0, 0, .35)); }
.hv-ring { position: absolute; inset: -18px; border-radius: 240px 240px 42px 42px; border: 1px dashed rgba(212, 175, 55, .5); pointer-events: none; }
.hv-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; text-align: center; color: var(--gold); background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, .28), transparent 60%), linear-gradient(160deg, var(--primary), var(--dark)); }
.hv-placeholder i { font-size: 84px; }
.hv-placeholder span { font-family: 'Amiri', serif; font-size: 32px; color: #F6E27A; line-height: 1.3; }
.hv-placeholder small { color: #CDBFA6; letter-spacing: 2px; text-transform: uppercase; font-size: 11px; }
.hv-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--text); box-shadow: 0 16px 40px rgba(0, 0, 0, .28); animation: gwmBob 5s ease-in-out infinite; }
.hv-card i { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--gold); }
.hv-card strong { display: block; font-size: 18px; color: var(--primary); line-height: 1.1; }
.hv-card span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.hv-card-1 { left: -38px; bottom: 16%; }
.hv-card-2 { right: -30px; top: 14%; animation-delay: 1.6s; }
@keyframes gwmBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Search card just below the hero (images stay visible) */
.search-panel { position: relative; z-index: 5; margin-top: -80px; }
#quick-search { scroll-margin-top: 96px; }
.search-card.hero-search.is-panel { max-width: 1140px; margin: 0 auto; padding: 18px 22px 20px; text-align: left; background: #fff; border: 1px solid rgba(212, 175, 55, .4); border-radius: 22px; box-shadow: 0 24px 60px rgba(26, 26, 46, .18); }
.hero-search .search-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.search-more-toggle { display: none; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(212, 175, 55, .6); background: var(--cream); color: var(--primary); font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: none; cursor: pointer; }
.search-more-toggle[aria-expanded="true"] { background: var(--gold); color: var(--dark); }
.hero-search.is-panel .search-head { color: var(--gold-dark); }
.hero-search.is-panel .search-submit .btn { height: 44px; box-shadow: 0 8px 22px rgba(27, 94, 32, .25); }
.hero-trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 30px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(212, 175, 55, .35); color: #EFE3C8; font-size: 13px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-trust i { color: var(--gold); }
.hero-trust strong { color: #fff; }

/* ---- Profile slider with premium cards ---- */
.pslider { position: relative; }
.pslider-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.pslider-track::-webkit-scrollbar { display: none; }
.pslider-track:focus-visible { outline: 3px solid rgba(212, 175, 55, .45); outline-offset: 4px; border-radius: 16px; }
.pslider-track > .profile-card { flex: 0 0 256px; scroll-snap-align: start; }
.pslider.is-static .pslider-track { justify-content: center; }
.pslider.is-static .pslider-btn { display: none; }
.pslider-btn { position: absolute; top: 36%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); background: #fff; color: var(--primary); box-shadow: var(--shadow-lg); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, opacity .2s; }
.pslider-btn:hover { background: var(--primary); color: var(--gold); }
.pslider-btn.prev { left: -8px; }
.pslider-btn.next { right: -8px; }
.pslider-btn:disabled { opacity: .35; cursor: default; }
.pcard-slide { position: relative; border-radius: 20px; border: 1px solid rgba(212, 175, 55, .35); background: linear-gradient(180deg, #fff, #FFFCF3); transition: transform .35s, box-shadow .35s; }
.pcard-slide::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 2px; background: linear-gradient(135deg, var(--gold), transparent 38%, transparent 62%, var(--gold)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.pcard-slide:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(26, 26, 46, .18); }
.pcard-slide:hover::before { opacity: 1; }
.pcard-slide .pc-photo { aspect-ratio: 4 / 4.6; }
.pcard-slide .pc-photo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, rgba(13, 20, 15, .5)); pointer-events: none; }
.pcard-slide .pc-photo img { transition: transform .6s; }
.pcard-slide:hover .pc-photo img { transform: scale(1.06); }
.pcard-slide .pc-body { padding: 14px 16px 16px; gap: 8px; }
.pcard-slide .pc-name { font-size: 16.5px; }
.pcard-slide .pc-meta li:nth-child(n+4) { display: none; }
.pcard-slide .pc-body > .btn { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-color: var(--gold); }
.pcard-slide .pc-body > .btn:hover { color: var(--gold); }

/* ---- Gallery mosaic ---- */
.section-gallery { background: var(--paper); }
.gallery-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 14px; }
.gm-item { position: relative; border: 0; padding: 0; margin: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--cream); box-shadow: var(--shadow); font: inherit; }
.gm-item.is-featured { grid-column: span 2; grid-row: span 2; }
.gm-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.gm-item:hover img, .gm-item:focus-visible img { transform: scale(1.08); }
.gm-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; color: #fff; text-align: center; font-size: 14px; font-weight: 500; background: linear-gradient(135deg, rgba(27, 94, 32, .78), rgba(26, 26, 46, .78)); opacity: 0; transition: opacity .35s; }
.gm-overlay i { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.gm-item:hover .gm-overlay, .gm-item:focus-visible .gm-overlay { opacity: 1; }
.gm-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---- Video section ---- */
.section-videos { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--dark), var(--primary-dark)); }
.section-videos::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 12% 20%, rgba(212, 175, 55, .16), transparent 40%), radial-gradient(circle at 88% 80%, rgba(212, 175, 55, .12), transparent 40%); pointer-events: none; }
.section-videos .container { position: relative; }
.section-videos .section-head h2 { color: var(--cream); }
.section-videos .section-head p, .section-videos .section-head .eyebrow { color: #CDBFA6; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.video-grid.is-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-grid.is-single { grid-template-columns: minmax(0, 880px); justify-content: center; }
.video-card { position: relative; display: block; width: 100%; padding: 0; border-radius: 18px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--primary), var(--dark)); border: 1px solid rgba(212, 175, 55, .35); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); font: inherit; text-align: left; }
.video-card.is-main { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.video-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); transition: transform .6s, filter .3s; }
.video-card:hover img, .video-card:focus-visible img { transform: scale(1.05); filter: brightness(.62); }
.video-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.vc-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(212, 175, 55, .35); font-size: 64px; }
.vc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--dark); background: linear-gradient(135deg, #F6E27A, var(--gold), var(--gold-dark)); animation: gwmPulse 2.2s infinite; }
.vc-play i { margin-left: 4px; }
.video-card.is-main .vc-play, .video-grid.is-single .vc-play { width: 86px; height: 86px; font-size: 30px; }
@keyframes gwmPulse { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .55); } 70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }
.vc-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; font-weight: 600; font-size: 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.vc-platform { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vc-youtube .vc-platform i { color: #FF4E45; }
.vc-instagram .vc-platform { background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); }
.vc-facebook .vc-platform { background: #1877F2; }
.vc-vimeo .vc-platform i { color: #1AB7EA; }
.vc-youtube .vc-fallback { background: linear-gradient(135deg, #C4302B, #3A0B0B); color: rgba(255, 255, 255, .8); }
.vc-instagram .vc-fallback { background: linear-gradient(135deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4); color: rgba(255, 255, 255, .85); }
.vc-facebook .vc-fallback { background: linear-gradient(135deg, #1877F2, #0B3F91); color: rgba(255, 255, 255, .85); }
.vc-vimeo .vc-fallback { background: linear-gradient(135deg, #1AB7EA, #0D3B4F); color: rgba(255, 255, 255, .85); }
.mm-media.is-video.is-portrait { width: auto; height: 80vh; max-height: 80vh; aspect-ratio: 9 / 16; max-width: 100%; background: #fff; }
.video-card.is-soon { cursor: default; }
a.video-card.is-soon { cursor: pointer; }
.video-soon .vc-fallback i { font-size: 72px; transition: transform .4s; }
a.video-card.is-soon:hover .vc-fallback i { transform: scale(1.1); }
.vc-title small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; opacity: .85; }
.gallery-mosaic.is-page { grid-auto-rows: 210px; }

/* ---- Media viewer (lightbox + video pop-up) ---- */
.media-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 64px 76px; background: rgba(10, 12, 18, .93); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.media-modal[hidden] { display: none; }
.mm-stage { margin: 0; width: 100%; max-width: 1100px; text-align: center; }
.mm-media { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.mm-media.is-video { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #000; }
.mm-stage figcaption { color: var(--cream); margin-top: 12px; font-size: 14px; }
.mm-close, .mm-nav { position: absolute; border-radius: 50%; border: 1px solid rgba(212, 175, 55, .6); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mm-close { top: 14px; right: 18px; width: 46px; height: 46px; font-size: 28px; line-height: 1; }
.mm-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; color: var(--gold); font-size: 18px; }
.mm-nav.prev { left: 16px; }
.mm-nav.next { right: 16px; }
.mm-close:hover, .mm-nav:hover { background: var(--gold); color: var(--dark); }
.media-modal.single .mm-nav { display: none; }
body.mm-open { overflow: hidden; }

/* ---- App-style bottom bar (phones) ---- */
.app-bar { display: none; }

@media (max-width: 1100px) {
    .gallery-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .video-card.is-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 768px) {
    /* App-like chrome */
    body.has-app-bar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .app-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); justify-content: space-around; align-items: stretch; background: rgba(255, 254, 249, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(212, 175, 55, .4); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 26px rgba(0, 0, 0, .09); }
    .app-bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .2px; -webkit-tap-highlight-color: transparent; }
    .app-bar-item:hover { color: var(--primary); }
    .ab-icon { position: relative; width: 44px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 18px; line-height: 1; transition: background .2s, color .2s; }
    .app-bar-item.active { color: var(--primary); }
    .app-bar-item.active .ab-icon { background: var(--cream); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .45); }
    .app-bar-item.is-center .ab-icon { width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; font-size: 20px; color: var(--gold); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: 3px solid #fff; box-shadow: 0 8px 22px rgba(27, 94, 32, .38), 0 0 0 1px rgba(212, 175, 55, .6); }
    .app-bar-item.is-center.active .ab-icon { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--dark); }
    .ab-badge { position: absolute; top: -5px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
    body.has-app-bar .float-stack { bottom: calc(84px + env(safe-area-inset-bottom)); }
    body.has-app-bar .back-to-top { display: none; }
    body.has-app-bar .ai-panel { bottom: calc(144px + env(safe-area-inset-bottom)); height: calc(100vh - 210px); }
    .topbar-contact { display: none; }
    .topbar-inner { padding-top: 5px; padding-bottom: 5px; }
    .topbar { font-size: 11.5px; }
    .header-inner { min-height: 60px; }
    .section { padding: 44px 0; }
    .section-head { margin-bottom: 24px; }
    .section-head h2 { font-size: 23px; }

    /* Hero + compact search */
    .hero-premium { min-height: 0; }
    .hero-premium .hero-inner { padding: 34px 0 74px; }
    .hero-premium h1 { font-size: 28px; margin-bottom: 8px; }
    .hero-premium p { font-size: 13.5px; margin-bottom: 0; }
    .hero-premium .hero-badge { font-size: 10px; letter-spacing: 1.5px; padding: 4px 12px; margin-bottom: 10px; }
    .hero-sparkles span:nth-child(n+5) { display: none; }
    /* Hero styles on phones */
    .hero-slider-style { min-height: 440px; }
    .hero-slider-style .hero-inner { padding: 40px 16px 96px; }
    .hero-arrow { display: none; }
    .hero-split-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 28px; padding-bottom: 84px; text-align: center; }
    .hero-split .hero-trust { display: none; }
    .hero-split p { font-size: 13.5px; }
    .hero-copy { text-align: center; }
    .hero-split h1 { font-size: 28px; }
    .hero-split p { margin: 0 auto 18px; }
    .hero-actions, .hero-split .hero-trust { justify-content: center; }
    .hero-actions .btn { padding: 10px 18px; font-size: 13px; }
    .hero-visual { width: min(58%, 215px); }
    .hv-ring { inset: -12px; }
    .hv-card { padding: 7px 10px; gap: 8px; border-radius: 12px; }
    .hv-card i { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; }
    .hv-card strong { font-size: 14px; }
    .hv-card span { font-size: 10px; }
    .hv-card-1 { left: -22px; bottom: 12%; }
    .hv-card-2 { right: -18px; top: 10%; }
    .hv-placeholder i { font-size: 60px; }
    .hv-placeholder span { font-size: 24px; }
    /* Search card below the hero */
    .search-panel { margin-top: -58px; }
    .search-card.hero-search.is-panel { padding: 12px 12px 14px; border-radius: 18px; }
    .hero-search .search-row .field { min-width: 0; }
    .hero-search .range-row select { padding: 0 4px 0 8px; }
    .hero-search .search-head { font-size: 10.5px; margin-bottom: 8px; }
    .hero-search .search-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .hero-search .field { gap: 3px; }
    .hero-search .field > label { font-size: 10.5px; }
    .hero-search select, .hero-search input { height: 38px; padding: 0 8px; font-size: 13px; border-radius: 10px; }
    .hero-search .range-row { gap: 6px; }
    .hero-search.is-panel .search-submit .btn { height: 38px; padding: 0 12px; font-size: 13px; }
    /* Phones: Looking for + Age, City + Search; the other filters open with "More filters". */
    .search-more-toggle { display: inline-flex; }
    .js .hero-search:not(.show-more) .search-more { display: none; }
    .hero-search .search-row .search-submit { grid-column: auto; }
    .hero-search.show-more .search-row .search-submit { grid-column: 1 / -1; }
    .hero-trust { gap: 6px; margin-top: 14px; }
    .hero-trust li { font-size: 11px; padding: 5px 10px; gap: 5px; }
    .hero-premium .hero-dots { bottom: 44px; }
    .hero-wave { height: 34px; }

    /* Swipeable rows on the homepage */
    .pslider-btn { display: none; }
    .pslider-track { gap: 14px; padding-bottom: 16px; }
    .pslider-track > .profile-card { flex-basis: 64vw; max-width: 250px; }
    .home-page .plan-grid, .home-page .testimonial-grid, .home-page .story-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 16px 2px 14px; scrollbar-width: none; }
    .home-page .plan-grid::-webkit-scrollbar, .home-page .testimonial-grid::-webkit-scrollbar, .home-page .story-grid::-webkit-scrollbar { display: none; }
    .home-page .plan-grid > *, .home-page .testimonial-grid > *, .home-page .story-grid > * { flex: 0 0 80%; scroll-snap-align: center; }
    .gallery-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 136px; gap: 10px; }
    .gm-item { border-radius: 14px; }
    .gm-overlay { opacity: 1; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .6)); justify-content: flex-end; font-size: 12px; }
    .gm-overlay i { display: none; }
    .video-grid, .video-grid.is-duo { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .card, .plan, .story-card, .testimonial, .profile-card { border-radius: 18px; }
    .media-modal { padding: 64px 10px 90px; }
    .mm-media.is-video.is-portrait { height: 70vh; max-height: 70vh; }
    .gallery-mosaic.is-page { grid-auto-rows: 150px; }
    .mm-nav { top: auto; bottom: 22px; transform: none; }
    .mm-nav.prev { left: calc(50% - 64px); }
    .mm-nav.next { right: calc(50% - 64px); }
}
@media (max-width: 520px) {
    .pslider-track > .profile-card { flex-basis: 62vw; }
    .pcard-slide .pc-body { padding: 12px; }
    .pcard-slide .pc-name { font-size: 14.5px; }
}

/* ---- Hero quick-registration form ---- */
.hero-form { margin-top: 20px; padding: 16px 18px 14px; border-radius: 18px; text-align: left; background: rgba(255, 255, 255, .12); border: 1px solid rgba(212, 175, 55, .45); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 18px 44px rgba(0, 0, 0, .3); max-width: 620px; }
.hero-slider-style .hero-form { margin-left: auto; margin-right: auto; }
.hf-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.hf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.hf-row .field { gap: 4px; min-width: 0; }
.hf-row .field > label { color: #F3E7C9; font-size: 11px; font-weight: 500; }
.hf-row select, .hf-row input { height: 40px; padding: 0 10px; font-size: 13.5px; border-radius: 10px; background: rgba(255, 255, 255, .96); border-color: transparent; color: var(--text); }
.hf-row .hf-submit { grid-column: 1 / -1; justify-content: flex-end; }
.hf-row .hf-submit .btn { height: 42px; }
.hf-note { display: block; margin-top: 8px; color: #D9CDB4; font-size: 11.5px; }
@media (min-width: 992px) {
    .hero-form { max-width: 100%; }
    .hf-row { grid-template-columns: .8fr 1fr 1.2fr 1fr auto; align-items: end; }
    .hf-row .hf-submit { grid-column: auto; }
    .hf-row .hf-submit .btn { width: auto; padding: 0 20px; }
}
@media (max-width: 768px) {
    .hero-form { margin-top: 16px; padding: 12px 12px 10px; border-radius: 14px; }
    .hf-head { font-size: 11px; margin-bottom: 8px; }
    .hf-row { gap: 6px 8px; }
    .hf-row select, .hf-row input { height: 38px; font-size: 13px; }
    .hf-note { font-size: 10.5px; }
}

/* ---- Video slider on the homepage ---- */
.vslider .pslider-track > .video-card { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; aspect-ratio: 16 / 9; }
@media (min-width: 769px) and (max-width: 992px) { .vslider .pslider-track > .video-card { flex-basis: calc((100% - 20px) / 2); } }
.vslider .pslider-btn { background: rgba(255, 255, 255, .95); }
.section-videos .pslider-track { padding-bottom: 14px; }
@media (max-width: 768px) {
    .vslider .pslider-track > .video-card { flex-basis: 78vw; max-width: 340px; }
}
/* ---- Social sign-in buttons ---- */
.social-login { padding: 0 26px 18px; text-align: center; }
.social-login-label { display: block; position: relative; margin-bottom: 12px; color: var(--muted); font-size: 12.5px; }
.social-login-label::before, .social-login-label::after { content: ''; position: absolute; top: 50%; width: calc(50% - 70px); height: 1px; background: var(--border); }
.social-login-label::before { left: 0; }
.social-login-label::after { right: 0; }
.social-login-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 150px; flex: 1 1 150px; padding: 11px 16px; border-radius: 30px; border: 2px solid var(--border); background: #fff; color: var(--text); font-weight: 600; font-size: 14px; transition: border-color .2s, box-shadow .2s, transform .15s; }
.social-btn:hover { color: var(--text); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26, 26, 46, .12); }
.social-btn i { font-size: 16px; }
.social-google i { color: #DB4437; }
.social-google:hover { border-color: #DB4437; }
.social-facebook i { color: #1877F2; }
.social-facebook:hover { border-color: #1877F2; }
@media (max-width: 520px) {
    .social-login { padding: 0 20px 16px; }
    .social-btn { min-width: 0; font-size: 13px; padding: 10px 12px; }
}
/* ---- Create-profile form inside the hero dome (split style) ---- */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hero-visual.has-form { width: min(100%, 430px); }
.hero-visual.has-form .hv-frame { aspect-ratio: auto; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-visual.has-form .hv-frame::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 30, 18, .1) 0%, rgba(10, 30, 18, .68) 36%, rgba(8, 22, 14, .92) 100%); }
.hero-visual.has-form .hv-placeholder { display: none; }
.hv-form { position: relative; z-index: 2; padding: 128px 28px 28px; }
.hero-form.is-dome { scroll-margin-top: 150px; margin: 0; max-width: none; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-form.is-dome .hf-head { justify-content: center; font-size: 13.5px; margin-bottom: 12px; }
.hero-form.is-dome .hf-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hero-form.is-dome .hf-row .hf-submit { grid-column: auto; margin-top: 4px; }
.hero-form.is-dome .hf-row .hf-submit .btn { width: 100%; height: 44px; }
.hero-form.is-dome .hf-note { text-align: center; line-height: 1.5; }
.hero-form.is-dome .hf-note a { color: var(--gold); }
.hf-errors { display: grid; gap: 3px; margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(198, 40, 40, .92); color: #fff; font-size: 12.5px; line-height: 1.4; }

/* ---- Dashboard: complete your profile ---- */
.complete-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px; margin-bottom: 20px; border-radius: var(--radius); background: linear-gradient(135deg, #FFF8E7, #fff); border: 2px solid var(--gold); box-shadow: var(--shadow); }
.cc-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--gold); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.cc-body h2 { font-size: 20px; margin: 0 0 4px; }
.cc-body p { margin: 0 0 10px; color: var(--muted); }
.cc-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; font-size: 14px; }
.cc-steps i { width: 18px; color: var(--muted); }
.cc-steps .done, .cc-steps .done i { color: var(--success); }
@media (max-width: 768px) {
    .hero-visual.has-form { width: 100%; max-width: 380px; }
    .hero-visual.has-form .hv-frame { min-height: 0; }
    .hv-form { padding: 96px 18px 20px; }
    .complete-card { flex-direction: column; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Translate button in the header (next to Login) ---- */
.translate-wrap.is-header { position: relative; }
.header-translate-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 8px; border-radius: 20px; border: 2px solid var(--gold); cursor: pointer; font: inherit; transition: filter .2s; }
.header-translate-btn .gt-icon { width: 24px; height: 24px; }
.header-translate-btn i { font-size: 17px; }
.header-translate-btn.has-label { padding: 0 12px 0 8px; }
.header-translate-btn .ft-label { font-size: 13px; font-weight: 600; }
.translate-wrap.is-header .translate-panel { position: absolute; top: calc(100% + 10px); right: 0; left: auto; bottom: auto; z-index: 1100; width: 230px; }
.mobile-auth .translate-wrap.is-header .ft-label { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.mobile-auth .header-translate-btn.has-label { padding: 0 10px 0 6px; }
@media (max-width: 992px) { .nav-actions .translate-wrap.is-header { display: none; } }

/* ---- Recently joined profiles: compact slider, 5 per row on desktop, 2 on phones ---- */
.psl-profiles .pslider-track { gap: 16px; }
.psl-profiles .pslider-track > .profile-card { flex: 0 0 calc((100% - 64px) / 5); max-width: none; }
.psl-profiles .pcard-slide .pc-photo { aspect-ratio: 1 / 1; }
.psl-profiles .pcard-slide .pc-body { padding: 10px 12px 12px; gap: 6px; }
.psl-profiles .pcard-slide .pc-name { font-size: 14.5px; }
.psl-profiles .pcard-slide .pc-meta { font-size: 12px; }
.psl-profiles .pcard-slide .pc-body > .btn { padding: 6px 10px; font-size: 12.5px; }
.psl-profiles .pcard-slide .badge { font-size: 10px; padding: 2px 7px; }
@media (max-width: 1100px) { .psl-profiles .pslider-track > .profile-card { flex-basis: calc((100% - 48px) / 4); } }
@media (max-width: 860px) { .psl-profiles .pslider-track > .profile-card { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 768px) {
    .psl-profiles .pslider-track { gap: 10px; }
    .psl-profiles .pslider-track > .profile-card { flex-basis: calc((100% - 10px) / 2); max-width: none; }
    .psl-profiles .pslider-btn { display: flex; width: 34px; height: 34px; top: 30%; }
    .psl-profiles .pslider-btn.prev { left: -4px; }
    .psl-profiles .pslider-btn.next { right: -4px; }
    .psl-profiles .pcard-slide .pc-body { padding: 8px 9px 10px; }
    .psl-profiles .pcard-slide .pc-name { font-size: 13px; }
    .psl-profiles .pcard-slide .pc-id { display: none; }
    .psl-profiles .pcard-slide .pc-meta { font-size: 11px; }
}

/* ---- Hero registration in steps (inside the dome) ---- */
.hf-progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 10px; color: #F3E7C9; font-size: 11.5px; }
.hf-dots { display: flex; gap: 5px; }
.hf-dots i { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); transition: background .25s; }
.hf-dots i.on { background: var(--gold); }
.hf-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.js .hf-wizard .hf-step:not(.active) { display: none; }
.hf-step + .hf-step { margin-top: 14px; }
.js .hf-wizard .hf-step + .hf-step { margin-top: 0; }
.hf-step legend { padding: 0; margin-bottom: 4px; color: #fff; font-size: 14px; font-weight: 600; }
.hf-step .field { display: grid; gap: 4px; min-width: 0; }
.hf-step .field > label { color: #F3E7C9; font-size: 11px; font-weight: 500; }
.hf-step input:not([type=radio]):not([type=checkbox]), .hf-step select, .hf-step textarea { width: 100%; height: 38px; padding: 0 10px; font: inherit; font-size: 13px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, .96); color: var(--text); }
.hf-step textarea { height: auto; min-height: 92px; padding: 8px 10px; resize: vertical; }
.hf-step :invalid:focus { border-color: #ff8a80; }
.hf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hf-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hf-choice label { position: relative; }
.hf-choice input { position: absolute; opacity: 0; inset: 0; }
.hf-choice span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .35); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.hf-choice input:checked + span { border-color: var(--gold); background: rgba(212, 175, 55, .22); color: var(--gold); }
.hf-choice input:focus-visible + span { outline: 2px solid var(--gold); }
.hf-agree { display: flex; gap: 8px; align-items: flex-start; color: #F3E7C9; font-size: 12px; line-height: 1.45; }
.hf-agree input { margin-top: 2px; accent-color: var(--gold); }
.hf-agree a { color: var(--gold); }
.hf-nav { display: flex; gap: 8px; margin-top: 12px; }
.hf-nav .btn { flex: 1; height: 42px; }
.hf-nav .btn-light { flex: 0 0 auto; padding: 0 14px; }
.hero-visual.has-form .hv-form { padding-top: 110px; }
@media (max-width: 768px) { .hf-two { grid-template-columns: minmax(0, 1fr); } .hero-visual.has-form .hv-form { padding-top: 88px; } }

/* ---- Masked contact numbers & upgrade pop-up ---- */
.contact-masked dd { letter-spacing: 1.5px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.upgrade-dialog { border: 0; border-radius: 20px; padding: 28px 24px 22px; width: min(92vw, 380px); text-align: center; box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold); }
.upgrade-dialog::backdrop { background: rgba(13, 20, 15, .55); }
.upgrade-dialog h3 { font-size: 19px; margin: 10px 0 6px; }
.upgrade-dialog p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.ud-icon { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--gold); background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.ud-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }

/* Menu items shown only on desktop or only on phones (Admin → Navigation Menu → Show on). */
@media (max-width: 992px) { .only-desktop { display: none !important; } }
@media (min-width: 993px) { .only-mobile { display: none !important; } }

/* ---- Franchise pages ---- */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.how-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.how-steps li::marker { color: var(--gold-dark); font-weight: 700; }
.franchise-facts .stat strong { font-size: 20px; }
@media (max-width: 992px) { .franchise-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .franchise-facts { grid-template-columns: minmax(0, 1fr); } }

/* Eight menu links + Language + Login on smaller desktops */
@media (min-width: 993px) and (max-width: 1240px) {
    .header-inner { gap: 10px; }
    .nav-list a { padding: 8px 7px; font-size: 13px; }
    .nav-actions .header-translate-btn .ft-label { display: none; }
    .nav-actions .header-translate-btn.has-label { padding: 0 8px; }
}
@media (min-width: 993px) and (max-width: 1080px) {
    .nav-list a { padding: 8px 5px; font-size: 12.5px; }
    .brand-text strong { font-size: calc(var(--brand-size, 19px) * 0.9); }
    .brand-logo { max-width: 120px; }
}

/* Split hero: background photos behind the heading (the dome keeps its own photo) */
.hero-split .hero-bg-slide { z-index: 0; }
.hero-split .hero-bg-slide::after { background: linear-gradient(90deg, rgba(13, 20, 15, var(--hero-overlay, .75)) 0%, rgba(13, 20, 15, calc(var(--hero-overlay, .75) * .85)) 55%, rgba(13, 20, 15, calc(var(--hero-overlay, .75) * .6)) 100%); }
.hero-split.has-images .hero-pattern { opacity: .35; }
@media (max-width: 768px) { .hero-split .hero-bg-slide::after { background: rgba(13, 20, 15, var(--hero-overlay, .75)); } }

/* ---- v18: typeable date of birth, hero welcome line, Biodata Maker ------- */
.dob-field { position: relative; display: block; }
.dob-field .dob-typed, .dob-field .dob-icon, .dob-field .dob-hint { display: none; }
.dob-field .dob-native { width: 100%; }
.dob-field.is-typeable .dob-typed { display: block; width: 100%; padding: 11px 46px 11px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--paper); font: inherit; font-size: 14px; color: var(--text); }
.dob-field.is-typeable .dob-typed:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .15); background: #fff; }
.dob-field.is-typeable .dob-native { position: absolute; top: 0; right: 0; width: 46px; height: 46px; padding: 0; margin: 0; border: 0; opacity: 0; background: none; z-index: 2; }
.dob-field.is-typeable .dob-icon { display: block; position: absolute; top: 14px; right: 15px; color: var(--primary); font-size: 16px; pointer-events: none; }
.dob-field.is-typeable .dob-hint { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.hf-wizard .dob-field.is-typeable .dob-typed { padding: 9px 42px 9px 12px; font-size: 13px; }
.hf-wizard .dob-field.is-typeable .dob-icon { top: 11px; }
.hf-wizard .dob-field.is-typeable .dob-hint { display: none; }

.hero-welcome { margin: 0 0 6px; font-size: clamp(14px, 1.6vw, 17px); font-weight: 600; letter-spacing: .3px; color: var(--gold); }
.hero-slider-style .hero-welcome { color: #F3E7C6; }

.bd-form .grid-2 { gap: 14px 22px; }
.bd-form .field-wide { grid-column: 1 / -1; }
.bd-group-title { margin: 22px 0 10px; font-size: 15px; color: var(--primary); border-bottom: 2px solid var(--cream); padding-bottom: 6px; }
.bd-group-title:first-child { margin-top: 0; }
.bd-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.bd-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.bd-sheet { position: relative; max-width: 820px; margin: 0 auto; background: #fff; border: 2px solid var(--gold); border-radius: var(--radius); padding: 0 0 22px; overflow: hidden; box-shadow: var(--shadow); }
.bd-sheet::before { content: attr(data-watermark); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 700; color: rgba(27, 94, 32, .06); transform: rotate(-30deg); pointer-events: none; white-space: nowrap; }
.bd-sheet-head { background: var(--primary); color: #fff; text-align: center; padding: 16px 12px; border-bottom: 4px solid var(--gold); }
.bd-sheet-head strong { display: block; font-size: 21px; }
.bd-sheet-head span { font-size: 12px; color: #F3E7C6; }
.bd-title { text-align: center; letter-spacing: 4px; font-size: 18px; color: var(--primary); margin: 16px 0 6px; }
.bd-top { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 8px 24px 14px; border-bottom: 1px solid var(--cream); position: relative; }
.bd-top h3 { margin: 0; font-size: 20px; }
.bd-photo img { width: 104px; height: 128px; object-fit: cover; border: 2px solid var(--gold); border-radius: 6px; background: #fff; }
.bd-photo-current img { max-height: 120px; border-radius: 8px; border: 2px solid var(--cream); display: block; margin-bottom: 6px; }
.bd-group { padding: 6px 24px; position: relative; }
.bd-group h4 { margin: 16px 0 8px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); background: var(--cream); border: 1px solid rgba(212, 175, 55, .45); border-radius: 6px; padding: 7px 10px; }
.bd-group dl { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2px 10px; margin: 0; }
.bd-group dt { font-weight: 600; color: #3A3226; padding: 5px 0; border-bottom: 1px solid #F1EADC; }
.bd-group dd { margin: 0; padding: 5px 0; border-bottom: 1px solid #F1EADC; word-break: break-word; }
.bd-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin: 18px 0 0; position: relative; }
@media (max-width: 600px) {
    .bd-group dl { grid-template-columns: minmax(0, 1fr); }
    .bd-group dt { border-bottom: 0; padding-bottom: 0; font-size: 12px; color: var(--primary); }
    .bd-photo img { width: 82px; height: 100px; }
}

/* v19: logo watermark in the biodata preview (the PDF uses the same logo) */
.bd-sheet.has-logo-mark::before { content: none; }
.bd-mark { position: absolute; top: 50%; left: 50%; width: 58%; max-width: 380px; transform: translate(-50%, -50%) rotate(-18deg); pointer-events: none; z-index: 0; }
.bd-sheet-head, .bd-title, .bd-top, .bd-group, .bd-foot { position: relative; z-index: 1; }

/* ---- v20: floating buttons wear a ring (white by default) + the Call button -- */
.float-btn { border: 3px solid var(--float-ring, #fff); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.float-btn.float-call { background: var(--primary); color: #fff; }

/* ---- v20: sections the admin builds in Admin → Homepage Sections ---------- */
.section-custom .cs-body { max-width: 860px; margin: 0 auto; }
.section-custom .cs-media img { width: 100%; height: auto; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.section-custom .cs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.section-custom .cs-grid.is-flipped .cs-media { order: 2; }
.section-custom .cs-grid .cs-body { max-width: none; margin: 0; }
.section-custom.cs-alt { background: var(--cream); }
.section-custom.cs-dark { background: linear-gradient(135deg, var(--dark), var(--primary-dark)); color: #fff; }
.section-custom.cs-dark .section-head h2, .section-custom.cs-dark .cs-body, .section-custom.cs-dark p { color: #fff; }
.section-custom.cs-dark .section-head p { color: #D8CCB6; }
.section-custom.cs-gold { background: linear-gradient(135deg, #F6E7B8, var(--cream)); }
.section-custom .prose > :first-child { margin-top: 0; }
@media (max-width: 800px) {
    .section-custom .cs-grid { grid-template-columns: minmax(0, 1fr); }
    .section-custom .cs-grid.is-flipped .cs-media { order: 0; }
}

/* ---- v21: password eye everywhere, clearer date button, bigger touch targets ---- */
.input-wrap { position: relative; display: block; }
.input-wrap > input, .field .input-wrap > input, .auth-card .input-wrap > input { width: 100%; padding-right: 46px; }
.input-wrap .toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex;
    align-items: center; justify-content: center; background: none; border: 0; border-radius: 50%; color: var(--muted); cursor: pointer; font-size: 15px; }
.input-wrap .toggle-pass:hover, .input-wrap .toggle-pass:focus-visible { color: var(--primary); background: rgba(212, 175, 55, .14); }

.dob-field.is-typeable .dob-icon { display: flex; align-items: center; justify-content: center; position: absolute; top: 4px; right: 4px;
    width: 40px; height: 40px; border-radius: 10px; background: var(--cream); border: 1px solid rgba(212, 175, 55, .55);
    color: var(--primary); font-size: 16px; pointer-events: none; }
.dob-field.is-typeable .dob-native { width: 48px; height: 48px; }
.dob-field.is-typeable .dob-typed { padding-right: 54px; }
.hf-wizard .dob-field.is-typeable .dob-icon { top: 3px; right: 3px; width: 34px; height: 34px; font-size: 14px; }
.hf-wizard .dob-field.is-typeable .dob-native { width: 40px; height: 40px; }

@media (max-width: 767px) {
    .btn { min-height: 42px; }
    .btn.btn-xs { min-height: 36px; }
    .pcard .btn, .profile-card .btn { min-height: 38px; }
    /* 16px stops iOS from zooming the page when a field is focused. */
    .field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]):not([type=range]), .field select, .field textarea,
    .input, .select, .dob-field.is-typeable .dob-typed { font-size: 16px; }
    .search-card .range-row select { font-size: 15px; }
}

/* ---- Photo protection (Admin → Security & Privacy) ---- */
/* Pictures cannot be dragged away or long-pressed into "save image". */
.gwm-no-save img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
/* While the page is not being looked at, photos are blurred. */
.gwm-hidden-blur img { filter: blur(22px); transition: filter .15s; }
/* Everything at once: the page a screenshot would catch shows shapes, not details. */
.gwm-hidden-blur-all body { filter: blur(20px); transition: filter .06s; }
.gwm-hidden-blur-all .gwm-screen-mark { filter: none; }
/* The member's own profile ID, repeated faintly across the page: a leaked screenshot names its source. */
.gwm-screen-mark { position: fixed; inset: 0; z-index: 2400; pointer-events: none; background-repeat: repeat; mix-blend-mode: multiply; }
@media print { .gwm-screen-mark { display: block; } }

.gwm-protect-note { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px); z-index: 3000;
    max-width: min(90vw, 420px); padding: 11px 18px; border-radius: 12px; background: rgba(26, 26, 46, .94); color: #F5EEDC;
    font-size: 13px; line-height: 1.5; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: 0;
    pointer-events: none; transition: opacity .25s, transform .25s; }
.gwm-protect-note.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media print {
    /* Printing (and "save as PDF") leaves the photos out. */
    .gwm-no-print img, .gwm-no-print .profile-photo, .gwm-no-print .pcard-photo { visibility: hidden !important; }
    .gwm-no-print .photo-grid, .gwm-no-print .profile-gallery { display: none !important; }
}

/* ---- The member's own menu in the header (phone and computer) ---- */
.user-btn { position: relative; }
.user-btn > .count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.user-menu .dropdown .menu-count { float: right; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger);
    color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.user-menu.is-mobile .user-name { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-menu.is-mobile .user-btn { padding: 3px 9px 3px 3px; gap: 6px; }
.user-menu.is-mobile .user-btn img, .user-menu.is-mobile .avatar-initials { width: 30px; height: 30px; }
.user-menu.is-mobile .dropdown { right: 0; left: auto; }
@media (max-width: 480px) {
    /* A long name must never push the logo off the screen. */
    .user-menu.is-mobile .user-name { max-width: 56px; }
}
@media (max-width: 992px) {
    /* The button text set in Admin → Widgets & Buttons shows on a phone as well. It is kept short and
       the site name shrinks a little, so the logo and the name still have their place. */
    .mobile-auth .translate-wrap.is-header .ft-label { display: inline-block; max-width: 74px; overflow: hidden;
        text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; line-height: 1.2; }
    .mobile-auth .header-translate-btn { height: 34px; min-width: 34px; }
    .mobile-auth .header-translate-btn.has-label { padding: 0 8px 0 5px; gap: 4px; }
    .mobile-auth .header-translate-btn .gt-icon { width: 20px; height: 20px; }
    .site-header .brand { min-width: 0; flex: 0 1 auto; }
}
@media (max-width: 480px) {
    .brand-text small { display: none; }            /* a small phone really has no room for it */
    .mobile-auth .translate-wrap.is-header .ft-label { max-width: 72px; font-size: 11px; }
    .brand-text strong { font-size: calc(var(--brand-size, 19px) * 0.7); }
}
@media (max-width: 380px) {
    /* A very small phone: the website name keeps whole words and the button text is shortened,
       so neither of them is broken up letter by letter. */
    .mobile-auth .translate-wrap.is-header .ft-label { max-width: 46px; }
    .brand-text strong { font-size: calc(var(--brand-size, 19px) * 0.66); overflow-wrap: normal; word-break: normal; hyphens: none; }
    .site-header .brand { flex: 1 1 auto; max-width: 42%; }
}

/* ---- "Profile 70% complete" at the top of the member's own menu ---- */
.user-menu .dropdown .menu-progress { border-bottom: 1px solid var(--border); margin-bottom: 4px; padding-bottom: 6px; }
.user-menu .dropdown .menu-progress a { display: block; padding: 6px 12px; }
.user-menu .dropdown .menu-progress .mp-top { display: block; font-size: 12px; font-weight: 600; color: var(--primary); }
.user-menu .dropdown .menu-progress .mp-top em { font-style: normal; color: var(--gold-dark); font-weight: 500; }
.user-menu .dropdown .menu-progress .mp-bar { display: block; height: 6px; margin-top: 5px; border-radius: 3px; background: #EDE4D3; overflow: hidden; }
.user-menu .dropdown .menu-progress .mp-bar span { display: block; height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold)); }

/* copy a UPI id or an account number in one tap */
.copy-btn { border: 1px solid var(--border); background: #fff; color: var(--primary); border-radius: 6px; padding: 2px 7px; font-size: 12px; cursor: pointer; margin-left: 6px; }
.copy-btn:hover { background: var(--cream); }
.copy-btn.is-copied { background: var(--primary); color: #fff; border-color: var(--primary); }


/* ---- All Profiles (profiles.php): search bar, cards/list switch, list rows ---- */
.all-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.all-search { position: relative; flex: 1 1 260px; min-width: 0; }
.all-search > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gold-dark); font-size: 13px; }
.all-search input { width: 100%; padding: 11px 34px 11px 36px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }
.all-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; line-height: 1; text-decoration: none; }
.all-bar select { padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }
.view-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-left: auto; }
.view-switch a { padding: 10px 14px; color: var(--muted); background: #fff; text-decoration: none; display: flex; align-items: center; }
.view-switch a + a { border-left: 1px solid var(--border); }
.view-switch a.active { background: var(--primary); color: #fff; }

.profile-list { display: flex; flex-direction: column; gap: 12px; }
.pl-row { display: flex; align-items: center; gap: 16px; padding: 14px; background: #fff; border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.pl-photo { flex-shrink: 0; }
.pl-thumb { width: 86px; height: 86px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: var(--cream); color: var(--gold-dark); font-size: 26px; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-thumb .thumb-initials { font-size: 24px; font-weight: 700; color: var(--primary); }
.pl-thumb.is-locked { background: var(--border); color: var(--muted); font-size: 20px; }
.pl-main { flex: 1; min-width: 0; }
.pl-main h3 { margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-main h3 a { color: var(--primary); text-decoration: none; }
.pl-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.pl-meta i { color: var(--gold-dark); width: 14px; }
.pl-actions { flex-shrink: 0; }
@media (max-width: 640px) {
    .pl-row { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
    .pl-thumb { width: 68px; height: 68px; }
    .pl-meta { gap: 4px 12px; }
    .pl-actions { flex-basis: 100%; }
    .pl-actions .btn { width: 100%; }
    .view-switch { margin-left: 0; }
    .all-bar .btn { flex: 1 1 140px; }
}

/* ---- Franchise dashboard (franchise/index.php) ---- */
.fr-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; padding: 26px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, #14502a); color: #fff; box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden; margin-bottom: 24px; }
.fr-hero::after { content: ''; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, .35), transparent 68%); pointer-events: none; }
.fr-hero h1 { color: #fff; font-size: 24px; margin: 10px 0 4px; }
.fr-hero-sub { color: rgba(255, 255, 255, .82); font-size: 13.5px; margin: 0 0 14px; }
.fr-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(212, 175, 55, .55);
    color: var(--gold); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.fr-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fr-code { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .2); border-radius: 10px; padding: 7px 12px;
    font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.fr-code strong { color: #fff; letter-spacing: .3px; }
.fr-code .copy-btn { color: var(--gold); background: none; border: 0; padding: 0 2px; cursor: pointer; font-size: 13px; }
.fr-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fr-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .38); }
.fr-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.fr-hero-wallet { background: rgba(255, 255, 255, .1); border: 1px solid rgba(212, 175, 55, .4); border-radius: var(--radius); padding: 18px; position: relative; }
.fr-hero-wallet > span { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: rgba(255, 255, 255, .7); }
.fr-hero-wallet > strong { display: block; font-size: 28px; color: var(--gold); line-height: 1.2; margin-bottom: 10px; }
.fr-hero-wallet ul { list-style: none; margin: 0 0 14px; padding: 0; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.fr-hero-wallet li { display: flex; gap: 8px; align-items: center; padding: 2px 0; }
.fr-hero-wallet li i { color: var(--gold); width: 14px; }

.fr-stats .stat { align-items: flex-start; }
.fr-stats .stat em { display: block; font-size: 11.5px; font-style: normal; margin-top: 3px; }
.fr-up { color: var(--success); } .fr-down { color: var(--danger); } .fr-flat { color: var(--muted); }

.fr-todo { display: flex; flex-direction: column; gap: 10px; }
.fr-todo-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--border); }
.fr-todo-row > i { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fr-todo-row > div { flex: 1; min-width: 0; }
.fr-todo-row strong { display: block; font-size: 14.5px; }
.fr-todo-row p { margin: 0; font-size: 12.5px; color: var(--muted); }
.fr-todo-row.is-warn > i { background: #FFF4E5; color: #8A3A00; }
.fr-todo-row.is-bad > i { background: #FDEEEE; color: var(--danger); }
.fr-todo-row.is-ok > i { background: var(--cream); color: var(--gold-dark); }

.fr-chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 6px; }
.fr-bar-wrap { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; min-width: 0; }
.fr-bar-value { font-size: 11px; color: var(--muted); white-space: nowrap; }
.fr-bar { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); }
.fr-bar.is-peak { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); }
.fr-bar-label { font-size: 12px; color: var(--muted); }

.fr-meters { display: flex; flex-direction: column; gap: 16px; }
.fr-meter > .flex-between { font-size: 13.5px; margin-bottom: 6px; }
.fr-meter strong { color: var(--primary); }
.fr-track { height: 9px; border-radius: 99px; background: var(--cream); overflow: hidden; border: 1px solid var(--border); }
.fr-track > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.fr-track > span.is-gold { background: linear-gradient(90deg, var(--gold), var(--gold-dark)); }
.fr-track > span.is-info { background: var(--info); }
.fr-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; border-top: 1px solid var(--border); padding-top: 14px; }
.fr-split strong { display: block; font-size: 19px; color: var(--primary); }
.fr-split span { font-size: 11.5px; color: var(--muted); }

.fr-people, .fr-feed { display: flex; flex-direction: column; }
.fr-person, .fr-feed-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.fr-person:last-child, .fr-feed-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fr-person > div:nth-child(2), .fr-feed-row > div { flex: 1; min-width: 0; }
.fr-person strong, .fr-feed-row strong { display: block; font-size: 14px; }
.fr-person span, .fr-feed-row span { display: block; }
.fr-face { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: var(--cream); color: var(--gold-dark); flex-shrink: 0; }
.fr-face img { width: 100%; height: 100%; object-fit: cover; }
.fr-face .thumb-initials { font-size: 15px; font-weight: 700; color: var(--primary); }
.fr-face.is-locked { background: var(--border); color: var(--muted); }
.fr-person-tags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.fr-feed-row > i { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.fr-feed-row > i.is-in { background: #E8F5E9; color: var(--success); }
.fr-feed-row > i.is-out { background: #FDEEEE; color: var(--danger); }
.fr-feed-row b { font-size: 14px; white-space: nowrap; }

@media (max-width: 768px) {
    .fr-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .fr-hero h1 { font-size: 20px; }
    .fr-hero-actions .btn { flex: 1 1 140px; justify-content: center; }
    .fr-chart { height: 150px; gap: 6px; }
    .fr-bar-value { font-size: 10px; }
    .fr-person-tags { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .fr-todo-row { flex-wrap: wrap; }
    .fr-todo-row .btn { width: 100%; }
}

/* Pagination: first / prev / next / last, and which page you are on. */
.pagination .pg-step span { display: inline; }
.pagination .pg-edge, .pagination .pg-step { color: var(--primary); }
.pagination .pg-edge:hover, .pagination .pg-step:hover { background: var(--cream); border-color: var(--gold); }
.pagination .pg-of { border: 0; background: none; color: var(--muted); font-weight: 500; font-size: 13px; }
@media (max-width: 520px) {
    .pagination { gap: 4px; }
    .pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 8px; font-size: 14px; }
    .pagination .pg-step span { display: none; }
    .pagination .pg-of { flex-basis: 100%; }
}

/* Contact details of a member whose number is unlocked: call, WhatsApp, email, copy. */
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-wa { background: #25D366; color: #fff; border: 1px solid #1da851; }
.btn-wa:hover { background: #1da851; color: #fff; }
.btn-wa i { font-size: 15px; }
@media (max-width: 520px) { .contact-actions .btn { flex: 1 1 calc(50% - 4px); justify-content: center; } }

/* Franchise terms: a box you scroll inside the form, and a page you can print. */
.terms-box { max-height: 280px; overflow-y: auto; padding: 16px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--paper); font-size: 13.5px; line-height: 1.7; }
.terms-box:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.terms-print { font-size: 14.5px; line-height: 1.8; }
@media print {
    .site-header, .site-footer, .topbar, .float-buttons, .mobile-bar, .card-head .btn, .card-body .btn { display: none !important; }
    .card { border: 0; box-shadow: none; }
    body { background: #fff; }
}

/* ---- Franchise panel shell (franchise/*.php) — its own workspace, no public header or footer ---- */
.fp-body { background: var(--cream); }
.fp-bar { position: sticky; top: 0; z-index: 60; background: var(--primary); color: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .18); }
.fp-bar-inner { max-width: 1240px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 14px; }
.fp-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-right: auto; }
.fp-brand img { max-height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 3px; }
.fp-brand-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--gold); color: var(--primary); display: grid; place-items: center; font-size: 18px; }
.fp-brand strong { display: block; font-size: 17px; line-height: 1.15; }
.fp-brand small { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.fp-bar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fp-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.fp-pill:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.fp-pill.is-out { background: var(--gold); border-color: var(--gold); color: var(--primary); }
.fp-pill.is-out:hover { background: #fff; color: var(--primary); }
.fp-main { display: block; min-height: calc(100vh - 170px); }
.fp-main .dash { padding-top: 24px; }
.fp-main .dash-nav { top: 74px; }
.fp-foot { background: var(--dark); color: rgba(255, 255, 255, .72); font-size: 13px; }
.fp-foot .fp-bar-inner { justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; }
.fp-foot a { color: var(--gold); }
@media (max-width: 767px) {
    .fp-bar-inner { padding: 8px 12px; gap: 8px; }
    .fp-brand strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
    .fp-brand small { font-size: 9px; letter-spacing: .06em; }
    .fp-brand img { max-height: 32px; }
    .fp-bar-right { flex-wrap: nowrap; }
    .fp-pill { min-height: 32px; padding: 0 10px; }
    .fp-foot .fp-bar-inner { justify-content: center; text-align: center; gap: 4px; }
}

/* Search page before anybody has searched: the box alone, nothing listed yet */
.search-layout.is-start { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.search-start .empty-state i { color: var(--gold-dark); }
.start-tips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 14px; }
.start-tips .chip { background: var(--cream); color: var(--primary); }
@media (max-width: 992px) { .search-layout.is-start { grid-template-columns: minmax(0, 1fr); } }

/* ---- Contact credits (credits.php) ---- */
.credit-packs { display: flex; flex-wrap: wrap; gap: 10px; }
.credit-pack { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 104px; padding: 12px 14px;
    border: 2px solid var(--border); border-radius: 14px; background: var(--paper); cursor: pointer; color: var(--text); }
.credit-pack strong { font-size: 22px; color: var(--primary); line-height: 1; }
.credit-pack span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.credit-pack b { font-size: 14px; color: var(--gold-dark); }
.credit-pack:hover { border-color: var(--gold); }
.credit-pack.is-on { border-color: var(--primary); background: var(--cream); }
.credit-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
    background: var(--cream); color: var(--primary); font-weight: 600; font-size: 13px; }

/* Two "recently joined" bands on the homepage: grooms, then brides */
.band-title { display: flex; align-items: baseline; gap: 10px; font-size: 18px; color: var(--primary); margin: 18px 0 10px; }
.band-title i { color: var(--gold-dark); }
.band-title a { margin-left: auto; font-size: 13px; font-weight: 600; }
.section-profiles .band-title:first-of-type { margin-top: 4px; }
@media (max-width: 520px) { .band-title { font-size: 16px; } .band-title a { font-size: 12px; } }
