/* ==========================================================================
   Global Bandhan — Site styles (public pages + shared components)
   Depends on tokens.css and Bootstrap 5.3 grid/utilities.
   ========================================================================== */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--gb-header-h) + 16px); }
body {
    font-family: var(--gb-font-body);
    font-size: var(--gb-fs-base);
    line-height: 1.65;
    color: var(--gb-text);
    background: var(--gb-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, .display-font {
    font-family: var(--gb-font-display);
    color: var(--gb-ink);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.08;
}
h4, h5, h6 { color: var(--gb-ink); font-weight: 700; }
a { color: var(--gb-red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gb-red-deep); }
p { max-width: 68ch; }
::selection { background: var(--gb-red-100); color: var(--gb-ink); }

:focus-visible {
    outline: 3px solid var(--gb-gold);
    outline-offset: 2px;
    border-radius: 6px;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--gb-ink); color: #fff; padding: .6rem 1rem; border-radius: var(--gb-r-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }
.text-muted-2 { color: var(--gb-muted) !important; }
.req { color: var(--gb-danger); }
.container { max-width: var(--gb-container); }

/* ---------- Sample-mode banner ---------- */
.sample-bar {
    background: var(--gb-wine); color: #F3E3DF;
    font-size: var(--gb-fs-xs); letter-spacing: .02em;
    text-align: center; padding: .4rem 1rem;
}
.sample-bar strong { color: #fff; }

/* ---------- Buttons ---------- */
.btn { white-space: nowrap; font-weight: 600; border-radius: var(--gb-r-pill); padding: .7rem 1.4rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: transform .2s var(--gb-ease), box-shadow .2s var(--gb-ease), background-color .2s, color .2s, border-color .2s; }
.btn-sm { padding: .5rem 1rem; font-size: var(--gb-fs-sm); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn-gb { background: var(--gb-red); border: 1px solid var(--gb-red); color: #fff; box-shadow: 0 6px 16px -6px rgba(218, 37, 29, .55); }
.btn-gb:hover, .btn-gb:focus-visible { background: var(--gb-red-deep); border-color: var(--gb-red-deep); color: #fff; transform: translateY(-1px); }
.btn-gb:active { transform: translateY(0); box-shadow: none; }
.btn-gb-outline { border: 1.5px solid var(--gb-red); color: var(--gb-red-ink); background: transparent; }
.btn-gb-outline:hover { background: var(--gb-red-50); color: var(--gb-red-deep); border-color: var(--gb-red-deep); }
.btn-gb-ghost { color: var(--gb-ink); background: transparent; border: 1px solid transparent; }
.btn-gb-ghost:hover { background: var(--gb-surface-2); color: var(--gb-ink); }
.btn-gb-light { background: #fff; color: var(--gb-red-ink); border: 1px solid #fff; }
.btn-gb-light:hover { background: var(--gb-blush); color: var(--gb-red-deep); }
.btn-gb-dark-outline { color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; }
.btn-gb-dark-outline:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.btn:disabled, .btn.disabled { opacity: .55; transform: none; box-shadow: none; }

.icon-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gb-border);
    background: var(--gb-surface); color: var(--gb-ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
    transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--gb-red-50); color: var(--gb-red-ink); border-color: var(--gb-red-100); }
.icon-btn-soft { background: var(--gb-surface-2); border-color: transparent; }
.icon-btn[aria-pressed="true"] { background: var(--gb-red); color: #fff; border-color: var(--gb-red); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(252, 249, 247, .88);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s var(--gb-ease), border-color .3s, background .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(59, 15, 12, .45); border-bottom-color: var(--gb-border); background: rgba(255, 255, 255, .95); }
.nav-wrap { display: flex; align-items: center; gap: 1.5rem; min-height: var(--gb-header-h); }
.brand {
    display: inline-flex; align-items: center; background: var(--gb-red);
    padding: .5rem .85rem; border-radius: 6px; flex-shrink: 0;
    box-shadow: 0 6px 14px -10px rgba(218, 37, 29, .7);
}
/* logo-white-crop.png: the logo without its built-in transparent padding, so it reads larger and crisper */
.brand img { height: 38px; width: auto; display: block; }
.brand-sm img { height: 30px; }
.main-nav { display: none; list-style: none; margin: 0 auto; padding: 0; gap: .25rem; }
.nav-link-gb {
    display: block; padding: .55rem .9rem; border-radius: var(--gb-r-pill);
    color: var(--gb-text); font-weight: 600; font-size: .95rem; text-decoration: none; position: relative; white-space: nowrap;
}
.nav-link-gb:hover { color: var(--gb-red-ink); background: var(--gb-red-50); }
.nav-link-gb.active { color: var(--gb-red-ink); }
.nav-link-gb.active::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px;
    border-radius: 50%; background: var(--gb-red);
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.menu-toggle {
    width: 44px; height: 44px; border: 1px solid var(--gb-border); border-radius: 12px; background: var(--gb-surface);
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--gb-ink); }
@media (min-width: 1200px) {
    .main-nav { display: flex; }
    .nav-actions { margin-left: 0; }
    .menu-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 1050; visibility: hidden; pointer-events: none; }
.mobile-nav::before { content: ""; position: absolute; inset: 0; background: rgba(36, 22, 20, .45); opacity: 0; transition: opacity .3s; }
.mobile-nav-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
    background: var(--gb-surface); padding: 1.25rem; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .35s var(--gb-ease); overflow-y: auto;
}
.mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.mobile-nav.is-open::before { opacity: 1; }
.mobile-nav.is-open .mobile-nav-panel { transform: none; }
.mobile-links a {
    display: flex; align-items: center; gap: .9rem; padding: .9rem .75rem; min-height: 48px;
    color: var(--gb-ink); font-weight: 600; text-decoration: none; border-radius: var(--gb-r);
}
.mobile-links a:hover { background: var(--gb-red-50); color: var(--gb-red-ink); }
.mobile-links i { color: var(--gb-red); font-size: 1.15rem; }

/* ---------- Section scaffolding ---------- */
.section { padding: var(--gb-section) 0; }
.section-tight { padding: calc(var(--gb-section) * .6) 0; }
.section-blush { background: var(--gb-blush); }
.section-surface { background: var(--gb-surface); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: var(--gb-fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gb-red-ink); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section-title { font-size: var(--gb-fs-h2); margin-bottom: 1rem; }
.section-lead { font-size: var(--gb-fs-lg); color: var(--gb-muted); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.serif-accent { font-style: italic; color: var(--gb-red-ink); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(7rem, 6rem + 4vw, 9rem); overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(800px 400px at 85% 10%, rgba(218, 37, 29, .08), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(184, 137, 74, .1), transparent 60%);
    pointer-events: none;
}
.hero h1 { font-size: var(--gb-fs-h1); margin-bottom: 1.25rem; }
.hero-copy { font-size: var(--gb-fs-lg); color: var(--gb-muted); margin-bottom: 2rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 0; font-size: var(--gb-fs-sm); color: var(--gb-text); font-weight: 600; }
.hero-points i { color: var(--gb-red); margin-right: .35rem; }

.hero-visual { position: relative; max-width: 500px; margin-inline: auto; aspect-ratio: 5 / 6; }
.hero-arch {
    position: absolute; inset: 0 8% 0 8%;
    border-radius: 999px 999px var(--gb-r-xl) var(--gb-r-xl);
    background: linear-gradient(165deg, var(--gb-red) 0%, var(--gb-red-deep) 55%, var(--gb-wine) 100%);
    overflow: hidden; box-shadow: var(--gb-shadow-lg);
}
.hero-arch svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; }
.hero-arch-inner {
    position: absolute; inset: 7% 9% auto 9%; aspect-ratio: 1 / 1.1;
    border-radius: 999px 999px 40% 40%; border: 1.5px solid rgba(255, 255, 255, .35);
}
.hero-arch-quote {
    position: absolute; left: 14%; right: 14%; top: 28%; text-align: center; color: #fff;
    font-family: var(--gb-font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.15; font-style: italic;
}
.hero-arch-quote small { display: block; margin-top: .9rem; font-family: var(--gb-font-body); font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.float-card {
    position: absolute; background: var(--gb-surface); border-radius: var(--gb-r); box-shadow: var(--gb-shadow);
    padding: .85rem 1rem; display: flex; align-items: center; gap: .75rem; font-size: var(--gb-fs-sm);
    border: 1px solid var(--gb-border); animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--gb-ink); font-size: .9rem; line-height: 1.2; }
.float-card span { color: var(--gb-muted); font-size: .78rem; }
.float-card .fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gb-red-50); color: var(--gb-red); font-size: 1.15rem; flex-shrink: 0; }
.float-card.fc-1 { left: -4%; top: 18%; }
.float-card.fc-2 { right: -6%; top: 64%; animation-delay: -2s; }
.float-card.fc-3 { left: 2%; bottom: 6%; animation-delay: -4s; }
.float-card .fc-icon.gold { background: var(--gb-gold-soft); color: var(--gb-gold); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Hero search panel */
.search-panel {
    position: relative; z-index: 5; margin-top: calc(-1 * clamp(4.5rem, 4rem + 2vw, 5.5rem));
    background: var(--gb-surface); border-radius: var(--gb-r-lg); box-shadow: var(--gb-shadow-lg);
    border: 1px solid var(--gb-border); padding: 1.5rem;
}
.search-panel-title { font-family: var(--gb-font-display); font-size: 1.6rem; color: var(--gb-ink); margin: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--gb-r-pill); background: var(--gb-surface-2); border: 1px solid var(--gb-border); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: .45rem 1.1rem; border-radius: var(--gb-r-pill); font-weight: 600; font-size: var(--gb-fs-sm); cursor: pointer; color: var(--gb-muted); transition: all .2s; min-height: 36px; display: inline-flex; align-items: center; gap: .4rem; }
.seg input:checked + label { background: var(--gb-surface); color: var(--gb-red-ink); box-shadow: var(--gb-shadow-sm); }
.seg input:focus-visible + label { outline: 3px solid var(--gb-gold); }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: var(--gb-fs-sm); color: var(--gb-ink); margin-bottom: .4rem; }
.form-control, .form-select {
    border-radius: 12px; border: 1px solid var(--gb-border-strong); padding: .7rem .95rem; min-height: 48px;
    background-color: var(--gb-surface); color: var(--gb-ink); font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: #A9958F; }
.form-control:focus, .form-select:focus { border-color: var(--gb-red); box-shadow: 0 0 0 4px rgba(218, 37, 29, .12); }
.form-select:disabled, .form-control:disabled { background-color: var(--gb-surface-2); color: var(--gb-muted); }
.form-text { color: var(--gb-muted); font-size: .8rem; }
.form-check-input:checked { background-color: var(--gb-red); border-color: var(--gb-red); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(218, 37, 29, .15); border-color: var(--gb-red); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }
.is-invalid { border-color: var(--gb-danger) !important; }
.invalid-feedback { color: var(--gb-danger); font-weight: 500; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--gb-muted); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.6rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 40px; height: 40px; border-radius: 10px; color: var(--gb-muted); }
.pw-toggle:hover { color: var(--gb-ink); background: var(--gb-surface-2); }
.input-group-text { background: var(--gb-surface-2); border-color: var(--gb-border-strong); border-radius: 12px; color: var(--gb-muted); font-weight: 600; }
.fieldset-title { font-size: 1.05rem; font-weight: 700; color: var(--gb-ink); display: flex; align-items: center; gap: .5rem; margin: 2rem 0 1rem; }
.fieldset-title i { color: var(--gb-red); }
.fieldset-title:first-child { margin-top: 0; }

/* ---------- Chips & tabs ---------- */
.chip-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; min-height: 42px;
    padding: .5rem 1.05rem; border-radius: var(--gb-r-pill); border: 1px solid var(--gb-border-strong);
    background: var(--gb-surface); color: var(--gb-text); font-weight: 600; font-size: var(--gb-fs-sm);
    transition: all .2s var(--gb-ease); cursor: pointer;
}
.chip:hover { border-color: var(--gb-red); color: var(--gb-red-ink); }
.chip[aria-selected="true"], .chip.is-active { background: var(--gb-ink); border-color: var(--gb-ink); color: #fff; }
.chip-sm { min-height: 34px; padding: .3rem .85rem; font-size: .8rem; background: transparent; }
.chip-sm.is-active { background: var(--gb-red-50); border-color: var(--gb-red); color: var(--gb-red-ink); }
.filter-chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--gb-red-50); color: var(--gb-red-ink); border: 1px solid var(--gb-red-100); border-radius: var(--gb-r-pill); padding: .25rem .4rem .25rem .8rem; font-size: .8rem; font-weight: 600; }
.filter-chip button { border: 0; background: transparent; color: inherit; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.filter-chip button:hover { background: var(--gb-red-100); }

.gb-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--gb-border); overflow-x: auto; scrollbar-width: none; }
.gb-tabs button { border: 0; background: none; padding: .9rem 1.1rem; font-weight: 600; color: var(--gb-muted); position: relative; white-space: nowrap; }
.gb-tabs button[aria-selected="true"] { color: var(--gb-red-ink); }
.gb-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: -1px; height: 2px; background: var(--gb-red); border-radius: 2px; }

/* ---------- Profile card ---------- */
.profile-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 480px) and (max-width: 767px) { .profile-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; } }
.profile-card {
    background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .3s var(--gb-ease), box-shadow .3s var(--gb-ease), border-color .3s;
}
@media (hover: hover) and (min-width: 1024px) {
    .profile-card:hover { transform: translateY(-4px); box-shadow: var(--gb-shadow); border-color: var(--gb-red-100); }
}
.pc-media { position: relative; aspect-ratio: 4 / 3.4; background: var(--gb-blush); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-avatar {
    position: absolute; inset: 0; display: grid; place-items: center;
    background:
        radial-gradient(circle at 50% 120%, rgba(218, 37, 29, .16), transparent 60%),
        repeating-linear-gradient(135deg, transparent 0 14px, rgba(165, 40, 26, .035) 14px 15px),
        var(--gb-blush);
}
.pc-avatar span {
    width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--gb-font-display); font-size: 2.2rem; font-weight: 600; color: var(--gb-red-deep);
    background: var(--gb-surface); border: 1.5px solid var(--gb-red-100); box-shadow: 0 0 0 8px rgba(255, 255, 255, .55);
}
.pc-photo-state, .pc-new, .pc-sample {
    position: absolute; font-size: .7rem; font-weight: 700; border-radius: var(--gb-r-pill); padding: .25rem .6rem; display: inline-flex; align-items: center; gap: .3rem;
}
.pc-photo-state { left: .75rem; bottom: .75rem; background: rgba(255, 255, 255, .92); color: var(--gb-text); }
.pc-new { left: .75rem; top: .75rem; background: var(--gb-red); color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.pc-sample { right: .75rem; top: .75rem; background: rgba(36, 22, 20, .7); color: #fff; }
.pc-body { padding: 1.1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.pc-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.pc-name { font-size: 1.45rem; margin: 0; }
.pc-id { font-size: .72rem; font-weight: 700; color: var(--gb-muted); letter-spacing: .04em; white-space: nowrap; }
.pc-meta { font-size: var(--gb-fs-sm); color: var(--gb-red-ink); font-weight: 600; margin: .2rem 0 .75rem; }
.pc-facts { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .35rem; font-size: var(--gb-fs-sm); }
.pc-facts li { display: flex; gap: .55rem; align-items: flex-start; color: var(--gb-text); }
.pc-facts i { color: var(--gb-muted); margin-top: .1rem; }
.pc-actions { margin-top: auto; display: flex; gap: .5rem; align-items: center; }

/* Skeleton */
.skeleton-card { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); overflow: hidden; }
.sk { background: linear-gradient(90deg, var(--gb-surface-2) 25%, #fff 50%, var(--gb-surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 8px; }
.sk-media { aspect-ratio: 4 / 3.4; border-radius: 0; }
.sk-line { height: 12px; margin: .75rem 1.15rem 0; }
.sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; } .sk-line.w80 { width: 80%; }
.sk-line.last { margin-bottom: 1.25rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Empty state */
.empty-state { text-align: center; padding: 3.5rem 1.5rem; border: 1.5px dashed var(--gb-border-strong); border-radius: var(--gb-r-lg); background: var(--gb-surface); }
.empty-state .es-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: var(--gb-blush); color: var(--gb-red); font-size: 1.8rem; }
.empty-state h3 { font-size: 1.6rem; }
.empty-state p { color: var(--gb-muted); margin-inline: auto; max-width: 42ch; }

/* ---------- Disclaimer ---------- */
.disclaimer-panel {
    display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--gb-r);
    background: var(--gb-warning-bg); border: 1px solid #EBD3A4; border-left: 4px solid var(--gb-warning); color: #4D3410; font-size: var(--gb-fs-sm);
}
.disclaimer-panel i { font-size: 1.35rem; color: var(--gb-warning); line-height: 1; margin-top: .1rem; }
.disclaimer-panel p { margin: 0; max-width: none; }
.disclaimer-panel.is-compact { padding: .8rem 1rem; font-size: .8rem; }

/* ---------- Steps (How it works) ---------- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; position: relative; }
.step-card { position: relative; background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); padding: 1.75rem 1.5rem; }
.step-num { font-family: var(--gb-font-display); font-size: 3.4rem; line-height: 1; color: var(--gb-red-100); font-weight: 700; position: absolute; right: 1.25rem; top: 1rem; }
.step-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--gb-red); color: #fff; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1.25rem; box-shadow: 0 10px 20px -10px rgba(218, 37, 29, .8); }
.step-card h3 { font-size: 1.55rem; margin-bottom: .5rem; }
.step-card p { color: var(--gb-muted); font-size: .95rem; margin: 0; }

/* ---------- Consultant feature (dark) ---------- */
.dark-band { background: var(--gb-wine); color: #E9D9D5; position: relative; overflow: hidden; }
.dark-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 100% 0%, rgba(218, 37, 29, .35), transparent 60%); }
.dark-band > .container { position: relative; }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .eyebrow { color: #F1B6AE; }
.dark-band .section-lead { color: #D4BCB6; }
.feature-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.25rem; }
.feature-list li { display: flex; gap: 1rem; }
.feature-list .fl-icon { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #FFC9C2; font-size: 1.2rem; border: 1px solid rgba(255, 255, 255, .12); }
.feature-list strong { color: #fff; display: block; margin-bottom: .15rem; }
.feature-list span { font-size: .93rem; color: #CDB5AF; }
.consult-panel { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--gb-r-xl); padding: 2rem; backdrop-filter: blur(6px); }
.consult-panel .cp-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.consult-panel .cp-row:last-child { border-bottom: 0; }
.cp-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gb-red); color: #fff; font-weight: 700; flex-shrink: 0; }
.cp-row strong { color: #fff; display: block; font-size: .95rem; }
.cp-row small { color: #BFA7A1; }
.cp-badge { margin-left: auto; font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: var(--gb-r-pill); background: rgba(255, 255, 255, .1); color: #FFD9D3; white-space: nowrap; }

/* ---------- Membership ---------- */
.plan-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: stretch; }
.plan-card { position: relative; background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); padding: 2rem 1.5rem 1.5rem; display: flex; flex-direction: column; transition: transform .3s var(--gb-ease), box-shadow .3s; }
.plan-card:hover { box-shadow: var(--gb-shadow); }
.plan-card.is-featured { background: linear-gradient(180deg, var(--gb-red-deep), var(--gb-wine)); border-color: transparent; color: #EBD7D2; box-shadow: var(--gb-shadow-lg); }
.plan-card.is-featured h3, .plan-card.is-featured .plan-price { color: #fff; }
.plan-card.is-featured .plan-points i { color: #FFB4AA; }
.plan-flag { position: absolute; top: -12px; left: 1.5rem; background: var(--gb-gold); color: #fff; font-size: .7rem; font-weight: 700; padding: .3rem .75rem; border-radius: var(--gb-r-pill); letter-spacing: .06em; text-transform: uppercase; }
.plan-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gb-red-50); color: var(--gb-red); font-size: 1.3rem; margin-bottom: 1rem; }
.is-featured .plan-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.plan-card h3 { font-size: 1.8rem; margin-bottom: .15rem; }
.plan-tag { font-size: var(--gb-fs-sm); color: var(--gb-muted); }
.is-featured .plan-tag { color: #D9BDB7; }
.plan-price { font-size: .9rem; font-weight: 700; color: var(--gb-ink); padding: .8rem 0; margin: 1rem 0; border-top: 1px dashed var(--gb-border-strong); border-bottom: 1px dashed var(--gb-border-strong); }
.is-featured .plan-price { border-color: rgba(255, 255, 255, .2); }
.plan-price em { font-style: normal; font-weight: 500; color: var(--gb-muted); display: block; font-size: .78rem; }
.is-featured .plan-price em { color: #D2B4AE; }
.plan-points { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; font-size: .93rem; }
.plan-points li { display: flex; gap: .6rem; }
.plan-points i { color: var(--gb-success); }
.plan-card .btn { margin-top: auto; }

/* ---------- Testimonial empty state ---------- */
.quote-empty { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-xl); padding: clamp(1.75rem, 1rem + 3vw, 3rem); }
@media (min-width: 768px) { .quote-empty { grid-template-columns: auto 1fr auto; } }
.quote-mark { font-family: var(--gb-font-display); font-size: 6rem; line-height: .6; color: var(--gb-red-100); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gb-red); border-radius: var(--gb-r-xl); padding: clamp(2rem, 1.5rem + 3vw, 4rem); color: #FFE5E1; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .2); box-shadow: 0 0 0 40px rgba(255, 255, 255, .04), 0 0 0 90px rgba(255, 255, 255, .03); }
.cta-band h2 { color: #fff; font-size: var(--gb-fs-h2); }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--gb-blush); padding: 1.1rem 0 1.25rem; border-bottom: 1px solid var(--gb-border); position: relative; overflow: hidden; }
.page-hero .crumbs { margin-bottom: .35rem; font-size: .8rem; }
.page-hero .eyebrow { margin-bottom: .2rem; }
.page-hero + .section, .page-hero + .section-tight { padding-top: 1.5rem; }
.page-hero h1 { font-size: var(--gb-fs-h1); margin-bottom: .75rem; }
.page-hero p { font-size: var(--gb-fs-lg); color: var(--gb-muted); margin: 0; }
.crumbs { font-size: var(--gb-fs-sm); margin-bottom: 1rem; }
.crumbs a { color: var(--gb-muted); text-decoration: none; }
.crumbs a:hover { color: var(--gb-red-ink); }
.crumbs span { color: var(--gb-border-strong); margin: 0 .4rem; }

/* ---------- Cards / panels ---------- */
.gb-card { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.gb-card-title { font-size: 1.6rem; margin-bottom: 1rem; }
.value-card { height: 100%; }
.value-card i { font-size: 1.6rem; color: var(--gb-red); display: inline-block; margin-bottom: .75rem; }
.value-card h3 { font-size: 1.5rem; }
.value-card p { color: var(--gb-muted); margin: 0; font-size: .95rem; }

/* ---------- Auth layout ---------- */
.auth-wrap { min-height: calc(100vh - var(--gb-header-h)); display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .auth-wrap { grid-template-columns: 1fr 1fr; } }
.auth-aside { display: none; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--gb-red) 0%, var(--gb-red-deep) 50%, var(--gb-wine) 100%); color: #FFE2DD; padding: 4rem; }
@media (min-width: 1024px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-aside svg.pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .14; }
.auth-aside > * { position: relative; }
.auth-aside h2 { color: #fff; font-size: clamp(2.4rem, 1.8rem + 1.6vw, 3.4rem); }
.auth-aside .brand { background: transparent; box-shadow: none; padding: 0; }
.auth-aside .brand img { height: 64px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 1rem + 4vw, 4rem) 1rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.8rem); }
.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--gb-muted); font-size: var(--gb-fs-sm); margin: 1.5rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--gb-border); }
.demo-box { background: var(--gb-surface-2); border: 1px dashed var(--gb-border-strong); border-radius: var(--gb-r); padding: 1rem; font-size: .82rem; }
.demo-box code { color: var(--gb-red-ink); background: var(--gb-surface); padding: .1rem .35rem; border-radius: 5px; }
.demo-fill { border: 0; background: var(--gb-surface); border-radius: 8px; padding: .3rem .6rem; font-size: .78rem; font-weight: 600; color: var(--gb-ink); border: 1px solid var(--gb-border); }
.demo-fill:hover { border-color: var(--gb-red); color: var(--gb-red-ink); }

/* ---------- Wizard ---------- */
.wizard-shell { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .wizard-shell { grid-template-columns: 290px 1fr; } }
.stepper { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); padding: 1.25rem; position: sticky; top: calc(var(--gb-header-h) + 1rem); align-self: start; }
.stepper-progress { height: 6px; border-radius: 6px; background: var(--gb-surface-2); overflow: hidden; margin: .5rem 0 1.25rem; }
.stepper-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gb-red), var(--gb-gold)); border-radius: 6px; transition: width .4s var(--gb-ease); }
.stepper ol { list-style: none; padding: 0; margin: 0; display: none; }
@media (min-width: 1024px) { .stepper ol { display: grid; gap: .15rem; } }
.stepper li button {
    width: 100%; display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem; border: 0; background: none; border-radius: 10px;
    text-align: left; font-size: .88rem; font-weight: 600; color: var(--gb-muted);
}
.stepper li button:hover { background: var(--gb-surface-2); color: var(--gb-ink); }
.stepper .s-dot { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: .75rem; font-weight: 700; border: 1.5px solid var(--gb-border-strong); background: var(--gb-surface); color: var(--gb-muted); }
.stepper li.is-done .s-dot { background: var(--gb-success-bg); border-color: var(--gb-success); color: var(--gb-success); }
.stepper li.is-current button { background: var(--gb-red-50); color: var(--gb-red-ink); }
.stepper li.is-current .s-dot { background: var(--gb-red); border-color: var(--gb-red); color: #fff; }
.stepper li.is-locked .s-dot { border-style: dashed; }
.wizard-panel { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); overflow: hidden; }
.wizard-head { padding: 1.5rem clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-bottom: 1px solid var(--gb-border); background: linear-gradient(180deg, var(--gb-blush), var(--gb-surface)); }
.wizard-head h2, .wizard-head h1 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); margin: .15rem 0 .25rem; }
.wizard-head p { margin: 0; color: var(--gb-muted); font-size: .95rem; }
.wizard-body { padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.wizard-step { display: none; animation: stepIn .35s var(--gb-ease); }
.wizard-step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.wizard-foot { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding: 1.1rem clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-top: 1px solid var(--gb-border); background: var(--gb-surface-2); position: sticky; bottom: 0; }
.wizard-foot .save-state { font-size: .8rem; color: var(--gb-muted); }
.error-summary { display: none; }
.error-summary.is-visible { display: flex; }
.lock-note { display: flex; gap: .9rem; align-items: flex-start; background: var(--gb-surface-2); border: 1px solid var(--gb-border); border-radius: var(--gb-r); padding: 1rem 1.1rem; font-size: .9rem; }
.lock-note i { font-size: 1.25rem; color: var(--gb-muted); }
.contact-entry { border: 1px solid var(--gb-border); border-radius: var(--gb-r); padding: 1rem; background: var(--gb-surface); position: relative; }
.contact-entry + .contact-entry { margin-top: .75rem; }
.contact-entry .ce-label { font-size: .75rem; font-weight: 700; color: var(--gb-red-ink); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.calc-box { background: var(--gb-gold-soft); border: 1px solid #E5D2B4; border-radius: var(--gb-r); padding: 1rem 1.15rem; }
.calc-box .calc-total { font-family: var(--gb-font-display); font-size: 2rem; color: var(--gb-ink); font-weight: 700; line-height: 1; }
.upload-drop { border: 2px dashed var(--gb-border-strong); border-radius: var(--gb-r-lg); padding: 2rem 1rem; text-align: center; background: var(--gb-surface-2); transition: border-color .2s, background .2s; cursor: pointer; }
.upload-drop:hover, .upload-drop.is-over { border-color: var(--gb-red); background: var(--gb-red-50); }
.upload-drop i { font-size: 2rem; color: var(--gb-red); }
.review-block { border: 1px solid var(--gb-border); border-radius: var(--gb-r); padding: 1rem 1.15rem; }
.review-block + .review-block { margin-top: .75rem; }
.review-block h3 { font-family: var(--gb-font-body); font-size: .95rem; font-weight: 700; margin: 0 0 .5rem; display: flex; justify-content: space-between; align-items: center; }
.review-block dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; font-size: .85rem; }
.review-block dt { color: var(--gb-muted); font-weight: 500; }
.review-block dd { margin: 0; color: var(--gb-ink); font-weight: 600; word-break: break-word; }

/* ---------- Profile details ---------- */
.pd-hero { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-xl); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .pd-hero { grid-template-columns: 200px 1fr auto; } }
.pd-photo { position: relative; aspect-ratio: 1; border-radius: var(--gb-r-lg); overflow: hidden; max-width: 200px; }
.pd-photo .pc-avatar span { width: 110px; height: 110px; font-size: 2.6rem; }
.pd-name { font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3rem); margin: 0; }
.pd-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: var(--gb-r-pill); background: var(--gb-surface-2); font-size: .8rem; font-weight: 600; color: var(--gb-text); border: 1px solid var(--gb-border); }
.pd-section { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); overflow: hidden; }
.pd-section + .pd-section { margin-top: 1rem; }
.pd-section-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--gb-border); }
.pd-section-head i.sec-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--gb-red-50); color: var(--gb-red); display: grid; place-items: center; }
.pd-section-head h2 { font-family: var(--gb-font-body); font-size: 1rem; font-weight: 700; margin: 0; }
.pd-section-head .access { margin-left: auto; }
.pd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.pd-field { padding: .9rem 1.25rem; border-bottom: 1px solid var(--gb-border); }
.pd-field span { display: block; font-size: .75rem; color: var(--gb-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pd-field strong { color: var(--gb-ink); font-weight: 600; }
.pd-locked { padding: 1.5rem 1.25rem; display: flex; gap: 1rem; align-items: center; background: repeating-linear-gradient(135deg, var(--gb-surface) 0 12px, var(--gb-surface-2) 12px 13px); }
.pd-locked i { font-size: 1.5rem; color: var(--gb-muted); }
.pd-locked p { margin: 0; font-size: .9rem; color: var(--gb-muted); }

/* ---------- Status badges ---------- */
.badge-gb { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; padding: .3rem .65rem; border-radius: var(--gb-r-pill); white-space: nowrap; }
.badge-success { background: var(--gb-success-bg); color: var(--gb-success); }
.badge-warning { background: var(--gb-warning-bg); color: var(--gb-warning); }
.badge-danger { background: var(--gb-danger-bg); color: var(--gb-danger); }
.badge-info { background: var(--gb-info-bg); color: var(--gb-info); }
.badge-neutral { background: var(--gb-surface-2); color: var(--gb-muted); }
.badge-tier { background: var(--gb-gold-soft); color: #7A5418; }

/* ---------- Accordion (FAQ) ---------- */
.gb-accordion .accordion-item { border: 1px solid var(--gb-border); border-radius: var(--gb-r) !important; overflow: hidden; background: var(--gb-surface); }
.gb-accordion .accordion-item + .accordion-item { margin-top: .75rem; }
.gb-accordion .accordion-button { font-weight: 700; color: var(--gb-ink); padding: 1.15rem 1.25rem; background: var(--gb-surface); box-shadow: none; }
.gb-accordion .accordion-button:not(.collapsed) { color: var(--gb-red-ink); background: var(--gb-red-50); }
.gb-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(184, 137, 74, .5); }
.gb-accordion .accordion-body { color: var(--gb-muted); }

/* ---------- Filters (browse) ---------- */
.filter-sidebar { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); padding: 1.25rem; }
.filter-sidebar h2 { font-family: var(--gb-font-body); font-size: 1rem; font-weight: 700; }
.filter-group + .filter-group { border-top: 1px solid var(--gb-border); padding-top: 1rem; margin-top: 1rem; }
.range-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; }
.range-pair span { color: var(--gb-muted); font-size: .8rem; }
@media (max-width: 1023.98px) {
    .filter-drawer { position: fixed; inset: 0; z-index: 1055; visibility: hidden; }
    .filter-drawer::before { content: ""; position: absolute; inset: 0; background: rgba(36, 22, 20, .45); opacity: 0; transition: opacity .3s; }
    .filter-drawer .filter-sidebar { position: absolute; left: 0; top: 0; bottom: 0; width: min(92vw, 380px); border-radius: 0 var(--gb-r-lg) var(--gb-r-lg) 0; overflow-y: auto; transform: translateX(-100%); transition: transform .35s var(--gb-ease); }
    .filter-drawer.is-open { visibility: visible; }
    .filter-drawer.is-open::before { opacity: 1; }
    .filter-drawer.is-open .filter-sidebar { transform: none; }
}
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }

/* ---------- Contact ---------- */
.contact-tile { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid var(--gb-border); border-radius: var(--gb-r); background: var(--gb-surface); }
.contact-tile + .contact-tile { margin-top: .75rem; }
.contact-tile i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gb-red-50); color: var(--gb-red); font-size: 1.15rem; flex-shrink: 0; }
.contact-tile strong { display: block; color: var(--gb-ink); }
.contact-tile span { color: var(--gb-muted); font-size: .9rem; }

/* ---------- Legal prose ---------- */
.prose h2 { font-size: 1.9rem; margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--gb-text); }
.prose .draft-note { background: var(--gb-info-bg); color: var(--gb-info); border-radius: var(--gb-r); padding: .9rem 1.1rem; font-size: .9rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gb-wine); color: #CFB6B0; margin-top: var(--gb-section); padding-top: 3rem; }
.footer-disclaimer { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; border-radius: var(--gb-r-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.footer-disclaimer i { font-size: 1.4rem; color: #FFB4AA; }
.footer-disclaimer p { margin: 0; font-size: .88rem; max-width: none; color: #E8D3CE; }
.footer-disclaimer strong { color: #fff; }
.footer-logo { height: 70px; width: auto; margin-bottom: 1rem; }
.footer-lead { font-size: .93rem; max-width: 36ch; }
.footer-h { font-family: var(--gb-font-body); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a, .footer-bottom a { color: #CFB6B0; text-decoration: none; font-size: .93rem; }
.footer-links a:hover, .footer-bottom a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; font-size: .9rem; }
.footer-contact li { display: flex; gap: .75rem; }
.footer-contact i { color: #FFB4AA; }
.footer-contact em { color: #A9908A; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.5rem 0 2rem; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- Alerts / toasts ---------- */
.gb-alert { border-radius: var(--gb-r); border: 0; font-weight: 500; }
.toast { border-radius: var(--gb-r); border: 1px solid var(--gb-border); box-shadow: var(--gb-shadow); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--gb-ease), transform .7s var(--gb-ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero-anim > * { animation: heroIn .9s var(--gb-ease) both; }
.hero-anim > *:nth-child(2) { animation-delay: .08s; }
.hero-anim > *:nth-child(3) { animation-delay: .16s; }
.hero-anim > *:nth-child(4) { animation-delay: .24s; }
.hero-anim > *:nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 767.98px) {
    .brand img { height: 32px; }
    .float-card { display: none; }
    .float-card.fc-2 { display: flex; right: 0; top: auto; bottom: 8%; }
    .hero-visual { max-width: 340px; margin-top: 1rem; }
    .search-panel { padding: 1.15rem; }
    .pc-body { padding: .9rem; }
    .pc-name { font-size: 1.25rem; }
}
@media (max-width: 479.98px) {
    .nav-actions .btn-gb { padding: .5rem .8rem; }
}
.calc-total, .step-num { font-variant-numeric: lining-nums; }

/* ==========================================================================
   Hero: drifting profile wall (background) + title/buttons + search card
   ========================================================================== */
.hero-wall {
    position: relative; isolation: isolate; overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--gb-bg) 100%);
    padding: clamp(2.5rem, 2rem + 2.5vw, 4rem) 0 clamp(2rem, 1.5rem + 3vw, 4.5rem);
    min-height: 720px;
}
.hero-wall-inner { position: relative; z-index: 2; }

/* Wall */
.wall { position: absolute; left: 0; right: 0; top: 300px; bottom: -40px; z-index: 0; overflow: hidden; }
.wall-track { display: flex; gap: 22px; width: max-content; padding-left: 22px; animation: wallDrift 80s linear infinite; }
.wall:hover .wall-track { animation-play-state: paused; }
@keyframes wallDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wall-col { display: flex; flex-direction: column; gap: 22px; }
.wall-off-0 { margin-top: 0; } .wall-off-1 { margin-top: 44px; } .wall-off-2 { margin-top: 12px; } .wall-off-3 { margin-top: 30px; }
.wall-tile {
    position: relative; width: 200px; height: 250px; border-radius: 18px; overflow: hidden;
    box-shadow: 0 16px 30px -18px rgba(59, 15, 12, .45); display: grid; place-items: center;
}
.wall-tile::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255, 255, 255, .08) 16px 17px); }
.tone-rose  { background: linear-gradient(160deg, #E8545E, #A5281A); }
.tone-gold  { background: linear-gradient(160deg, #D9A866, #9C6B2E); }
.tone-blush { background: linear-gradient(160deg, #F2B8B0, #C9605A); }
.tone-wine  { background: linear-gradient(160deg, #8E2A22, #3B0F0C); }
.wt-mono {
    position: relative; width: 96px; height: 96px; border-radius: 50%; margin-bottom: 40px;
    display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 2px solid rgba(255, 255, 255, .55);
    font-family: var(--gb-font-display); font-size: 2.4rem; font-weight: 600; color: #fff;
}
.wt-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .85rem;
    background: linear-gradient(0deg, rgba(20, 5, 4, .7), transparent);
}
.wt-cap strong { display: block; color: #fff; font-size: 1rem; font-weight: 700; }
.wt-tag { display: inline-block; margin-top: .3rem; padding: .15rem .5rem; border-radius: 6px; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .22); }
/* Wash the wall so the foreground stays dominant */
.wall-fade {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 40%, rgba(255, 255, 255, .55) 52%, rgba(255, 255, 255, .3) 78%, var(--gb-bg) 100%),
        linear-gradient(90deg, rgba(252, 249, 247, .9) 0%, transparent 10%, transparent 90%, rgba(252, 249, 247, .9) 100%);
}

/* Title + buttons */
.hero-intro { padding-top: clamp(.5rem, 1vw, 1.5rem); }
.welcome-script {
    font-family: "Rouge Script", "Cormorant Garamond", cursive; font-weight: 400; letter-spacing: 0;
    font-size: clamp(3.6rem, 2.6rem + 4vw, 6.2rem); line-height: .95; color: var(--gb-ink); margin: 0 0 1.5rem;
}
.welcome-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Search card */
.search-card {
    background: var(--gb-surface); border-radius: 26px; overflow: hidden;
    box-shadow: 0 34px 70px -28px rgba(59, 15, 12, .5), 0 0 0 1px var(--gb-border);
}
.sc-bar { background: linear-gradient(135deg, var(--gb-red), var(--gb-red-deep)); padding: 1rem 1.5rem; text-align: center; }
.sc-bar h2 { color: #fff; font-size: clamp(1.6rem, 1.3rem + .8vw, 1.95rem); margin: 0; }
.sc-body { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.hs-sub { margin: 1rem 0 0; font-size: .78rem; color: var(--gb-muted); text-align: center; max-width: none; }
.seg-lg label { padding: .55rem 1.25rem; font-size: .9rem; min-height: 44px; }
.seg-lg input:checked + label { background: var(--gb-red); color: #fff; box-shadow: 0 6px 14px -6px rgba(218, 37, 29, .7); }
.hs-fields { display: grid; gap: .85rem; grid-template-columns: 1fr; }
@media (min-width: 420px) { .hs-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hs-loc { display: contents; }
.hs-col { min-width: 0; }
.hs-wide { grid-column: 1 / -1; }
.hs-col .form-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gb-muted); }
.hs-col .form-label i { color: var(--gb-red); }
.hs-col .form-select { min-height: 48px; border-radius: 12px; font-weight: 500; }
.hs-col .form-select:disabled { background-color: #F8F3F1; }
.hs-col .btn { min-height: 52px; border-radius: 12px; margin-top: .25rem; }
.hero-anim-late { animation: heroIn .9s var(--gb-ease) .2s both; }

@media (max-width: 991.98px) {
    .hero-wall { min-height: 0; }
    .wall { top: auto; bottom: 0; height: 330px; }
    .hero-intro { text-align: center; }
    .welcome-actions { justify-content: center; }
    .hero-wall-inner { padding-bottom: 240px; }
    .wall-fade { background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, .95) 55%, rgba(255, 255, 255, .3) 80%, rgba(252, 249, 247, .2) 100%); }
}
@media (prefers-reduced-motion: reduce) { .wall-track { animation: none; } }

/* ---------- Registration: inline field errors ---------- */
.field-error { color: var(--gb-danger); font-size: .82rem; font-weight: 600; margin-top: .35rem; display: flex; gap: .35rem; align-items: flex-start; }
.field-error::before { content: "\F333"; font-family: "bootstrap-icons"; font-weight: 400; }
.seg:has(.is-invalid) label, .form-check-input.is-invalid ~ .form-check-label { color: var(--gb-danger); }

/* ---------- Registration: photo manager ---------- */
.upload-drop.is-full { opacity: .6; cursor: not-allowed; }
.photo-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.photo-item { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: 14px; padding: .5rem; cursor: grab; transition: box-shadow .15s, opacity .15s; }
.photo-item:first-child { border-color: var(--gb-red); box-shadow: 0 0 0 2px var(--gb-red-50); }
.photo-item.is-dragging { opacity: .4; }
.photo-item.is-uploading { cursor: default; }
.ph-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--gb-surface-2); }
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ph-badge { position: absolute; left: .4rem; top: .4rem; background: rgba(0,0,0,.6); color: #fff; font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.ph-badge.is-main { background: var(--gb-red); }
.ph-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.15); display: none; }
.ph-progress span { display: block; height: 100%; width: 0; background: var(--gb-red); transition: width .2s; }
.photo-item.is-uploading .ph-progress { display: block; }
.photo-item.is-uploading img { opacity: .55; }
.ph-name { font-size: .75rem; color: var(--gb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: .35rem .1rem .2rem; }
.ph-actions { display: flex; justify-content: space-between; }
.ph-actions .btn { padding: .15rem .4rem; min-height: 0; }
.photo-item.is-uploading .ph-actions { visibility: hidden; }

/* ---------- Profiles: filter sidebar ---------- */
.filter-sidebar { padding: 0; display: flex; flex-direction: column; box-shadow: 0 10px 30px -18px rgba(60, 20, 15, .25); }
@media (min-width: 992px) {
    /* The wrapper is what sticks: its column runs the full height of the results. */
    .filter-drawer { position: sticky; top: calc(var(--gb-header-h, 76px) + 1rem); }
    .filter-sidebar { max-height: calc(100vh - var(--gb-header-h, 76px) - 2rem); }
}
.fs-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--gb-border); }
.fs-head h2 { margin: 0 auto 0 0; display: flex; align-items: center; gap: .5rem; font-family: var(--gb-font-body); font-size: 1rem; font-weight: 700; }
.fs-count { background: var(--gb-red); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: 999px; display: inline-grid; place-items: center; }
.fs-body { padding: .25rem 1.25rem 1rem; overflow-y: auto; flex: 1; }
.fs-foot { padding: .9rem 1.25rem; border-top: 1px solid var(--gb-border); background: var(--gb-surface-2); border-radius: 0 0 var(--gb-r-lg) var(--gb-r-lg); }
.filter-sidebar .filter-group, .filter-sidebar-lite .filter-group { padding: 1rem 0 0; margin: 0; border: 0; }
.filter-sidebar .filter-group + .filter-group, .filter-sidebar-lite .filter-group + .filter-group { border-top: 1px solid var(--gb-border); margin-top: 1rem; }
.fs-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gb-muted); margin-bottom: .55rem; padding: 0; float: none; width: auto; }
.filter-sidebar .loc-cascade, .filter-sidebar-lite .loc-cascade { --bs-gutter-y: .55rem; }
.filter-sidebar .loc-cascade .form-label, .filter-sidebar-lite .loc-cascade .form-label { font-size: .8rem; margin-bottom: .2rem; }
.filter-sidebar .form-select, .filter-sidebar .form-control, .filter-sidebar-lite .form-select, .filter-sidebar-lite .form-control { min-height: 42px; font-size: .9rem; }
.filter-sidebar .seg label { gap: .35rem; }
.pill-checks { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill-checks input { position: absolute; opacity: 0; pointer-events: none; }
.pill-checks label { border: 1px solid var(--gb-border-strong); border-radius: 999px; padding: .35rem .75rem; font-size: .8rem; font-weight: 600; cursor: pointer; background: var(--gb-surface); transition: all .15s; user-select: none; }
.pill-checks label:hover { border-color: var(--gb-red); }
.pill-checks input:checked + label { background: var(--gb-red); border-color: var(--gb-red); color: #fff; }
.pill-checks input:focus-visible + label { outline: 3px solid var(--gb-red-100); outline-offset: 2px; }

/* ---------- Profiles: results + pagination ---------- */
[data-results] { transition: opacity .2s; }
[data-results].is-loading { opacity: .45; pointer-events: none; }

/* ---------- Home search card: same filters as the Browse sidebar ---------- */
.filter-sidebar-lite > .filter-group:first-child { padding-top: 0; }
.filter-sidebar-lite .seg label { gap: .35rem; }

/* ---------- Profile details: interest already sent ---------- */
.interest-state { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .5rem 1rem; border-radius: var(--gb-r-pill); background: var(--gb-success-bg, #E8F5EC); color: var(--gb-success, #1E6B3A); border: 1px solid currentColor; font-weight: 700; }
.interest-state.is-accepted { background: var(--gb-red-50); color: var(--gb-red-ink); }

/* ---------- Profile card: interest already sent ---------- */
.pc-interest { position: absolute; right: .75rem; top: .75rem; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; background: var(--gb-success); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.3); }
.pc-interest.is-accepted { background: var(--gb-red); }



/* ---------- Browse: 4 profiles per row on wide screens ---------- */
@media (min-width: 1200px) {
    .results-4col .profile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
    .results-4col .pc-body { padding: .8rem .85rem .9rem; }
    .results-4col .pc-name { font-size: 1.15rem; }
    .results-4col .pc-meta { font-size: .78rem; margin-bottom: .55rem; }
    .results-4col .pc-facts { font-size: .78rem; gap: .25rem; margin-bottom: .8rem; }
    .results-4col .pc-avatar span { width: 72px; height: 72px; font-size: 1.6rem; }
    .results-4col .pc-photo-state, .results-4col .pc-interest, .results-4col .pc-new { font-size: .66rem; }
    .results-4col .pc-actions .btn { font-size: .8rem; min-height: 34px; }
    .results-4col .pc-actions .icon-btn { width: 34px; height: 34px; }
}

/* ---------- Browse: compact filter sidebar ---------- */
.filter-sidebar .fs-head { padding: .7rem 1rem; }
.filter-sidebar .fs-head h2 { font-size: .9rem; }
.filter-sidebar .fs-head a { font-size: .78rem; }
.filter-sidebar .fs-body { padding: 0 1rem .75rem; }
.filter-sidebar .fs-foot { padding: .65rem 1rem; }
.filter-sidebar .fs-foot .btn { min-height: 38px; font-size: .85rem; }
.filter-sidebar .filter-group { padding-top: .65rem; }
.filter-sidebar .filter-group + .filter-group { margin-top: .65rem; }
.filter-sidebar .fs-label { font-size: .64rem; margin-bottom: .35rem; }
.filter-sidebar .form-label, .filter-sidebar .loc-cascade .form-label { font-size: .74rem; margin-bottom: .15rem; }
.filter-sidebar .loc-cascade { --bs-gutter-y: .4rem; }
.filter-sidebar .form-select, .filter-sidebar .form-control { min-height: 34px; height: 34px; font-size: .8rem; padding-top: .25rem; padding-bottom: .25rem; border-radius: 9px; }
.filter-sidebar .form-select { padding-right: 2rem; background-position: right .6rem center; }
.filter-sidebar .input-icon .form-control { padding-left: 2.1rem; }
.filter-sidebar .input-icon > i { font-size: .85rem; left: .7rem; }
.filter-sidebar .seg { padding: 3px; }
.filter-sidebar .seg label { min-height: 28px; padding: .2rem .6rem; font-size: .78rem; }
.filter-sidebar .range-pair { gap: .35rem; }
.filter-sidebar .range-pair span { font-size: .72rem; }
.filter-sidebar .pill-checks { gap: .3rem; }
.filter-sidebar .pill-checks label { padding: .2rem .6rem; font-size: .72rem; }
.filter-sidebar .form-text { font-size: .7rem; }
.filter-sidebar .mb-2 { margin-bottom: .4rem !important; }

/* ---------- Pagination ---------- */
.gb-pager { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--gb-border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.25rem; }
.pg-info { margin: 0; font-size: .8rem; color: var(--gb-muted); }
.pg-info strong { color: var(--gb-ink); font-weight: 700; }
.gb-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.gb-pagination .pg-item { min-width: 36px; height: 36px; padding: 0 .6rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    border: 1px solid var(--gb-border); background: var(--gb-surface); color: var(--gb-ink); text-decoration: none; font-weight: 600; font-size: .8rem; line-height: 1; transition: border-color .15s, color .15s, background .15s; }
.gb-pagination a.pg-item:hover { border-color: var(--gb-red); color: var(--gb-red-ink); background: var(--gb-red-50); }
.gb-pagination a.pg-item:focus-visible { outline: 3px solid var(--gb-red-100); outline-offset: 2px; }
.gb-pagination .pg-item.is-current { background: var(--gb-red); border-color: var(--gb-red); color: #fff; box-shadow: 0 6px 14px -6px rgba(218, 37, 29, .55); }
.gb-pagination .pg-step { padding: 0 .8rem; }
.gb-pagination .pg-step.is-disabled { opacity: .4; cursor: not-allowed; }
.gb-pagination .pg-gap { min-width: 20px; text-align: center; color: var(--gb-muted); font-weight: 700; }
.pg-jump { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--gb-muted); margin: 0; }
.pg-jump label { font-weight: 600; color: var(--gb-ink); white-space: nowrap; }
.pg-jump input { width: 64px; height: 36px; border: 1px solid var(--gb-border-strong); border-radius: 10px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--gb-ink); background: var(--gb-surface); -moz-appearance: textfield; }
.pg-jump input::-webkit-outer-spin-button, .pg-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pg-jump input:focus { outline: 0; border-color: var(--gb-red); box-shadow: 0 0 0 3px rgba(218, 37, 29, .12); }
.pg-jump input.is-invalid { border-color: var(--gb-danger); }
.pg-jump span { white-space: nowrap; }
.pg-go { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--gb-ink); color: #fff; display: inline-grid; place-items: center; }
.pg-go:hover { background: var(--gb-red); }
@media (max-width: 767px) {
    .gb-pager { justify-content: center; }
    .pg-info { width: 100%; text-align: center; order: 2; }
    .gb-pagination { justify-content: center; }
    .pg-jump { order: 3; }
}
@media (max-width: 575px) { .pg-step-text { display: none; } }

/* ---------- Home: 5 profiles per row ---------- */
@media (min-width: 992px) { .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1200px) { .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; } }
@media (min-width: 992px) {
    .grid-5 .pc-body { padding: .75rem .8rem .85rem; }
    .grid-5 .pc-name { font-size: 1.1rem; }
    .grid-5 .pc-meta { font-size: .76rem; margin-bottom: .5rem; }
    .grid-5 .pc-facts { font-size: .76rem; gap: .22rem; margin-bottom: .75rem; }
    .grid-5 .pc-avatar span { width: 64px; height: 64px; font-size: 1.45rem; }
    .grid-5 .pc-photo-state, .grid-5 .pc-interest, .grid-5 .pc-new { font-size: .64rem; }
    .grid-5 .pc-actions .icon-btn { width: 32px; height: 32px; }
    .grid-5 .pc-id { font-size: .66rem; }
}

/* ---------- Plans: light highlight (registration plan) ---------- */
.plan-card.is-soft { background: linear-gradient(180deg, var(--gb-red-50) 0%, var(--gb-surface) 70%); border-color: var(--gb-red-100); box-shadow: 0 0 0 1px var(--gb-red-100), 0 14px 30px -18px rgba(218, 37, 29, .35); }
.plan-card.is-soft .plan-icon { background: var(--gb-red); color: #fff; }
.plan-card.is-soft .plan-price { color: var(--gb-red-ink); }

/* ---------- Sign-up (account step) ---------- */
.signup-shell { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 992px) { .signup-shell { grid-template-columns: minmax(0, 1fr) 320px; } }
.signup-aside { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); padding: 1.25rem; }
.signup-aside h2 { font-family: var(--gb-font-body); font-size: .95rem; font-weight: 700; margin-bottom: .9rem; }
.signup-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.signup-steps li { display: flex; gap: .75rem; }
.signup-steps li > span { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--gb-surface-2); color: var(--gb-muted); border: 1px solid var(--gb-border); }
.signup-steps li:first-child > span { background: var(--gb-red); border-color: var(--gb-red); color: #fff; }
.signup-steps strong { display: block; font-size: .85rem; }
.signup-steps small { color: var(--gb-muted); font-size: .78rem; line-height: 1.45; }

/* ---------- Candidate profile editor (user/profile.php) ---------- */
.pe-shell { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 992px) { .pe-shell { grid-template-columns: 250px minmax(0, 1fr); } }
.pe-tabs { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); padding: .75rem; }
@media (min-width: 992px) { .pe-tabs { position: sticky; top: 1rem; } }
.pe-progress { padding: .35rem .5rem .8rem; border-bottom: 1px solid var(--gb-border); margin-bottom: .5rem; }
.pe-progress .stepper-progress { margin-top: .4rem; }
.pe-tabs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.pe-tabs a { display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem; border-radius: 10px; color: var(--gb-text); text-decoration: none; font-weight: 600; font-size: .85rem; transition: background .15s, color .15s; }
.pe-tabs a > i { color: var(--gb-muted); width: 18px; text-align: center; }
.pe-tabs a:hover { background: var(--gb-surface-2); }
.pe-tabs a.is-active { background: var(--gb-red-50); color: var(--gb-red-ink); }
.pe-tabs a.is-active > i { color: var(--gb-red); }
.pe-tabs a > span { flex: 1; min-width: 0; }
.pe-st { font-style: normal; font-size: .85rem; line-height: 1; }
.pe-st-done { color: var(--gb-success); }
.pe-st-todo { color: var(--gb-border-strong); }
.pe-st-lock { color: var(--gb-muted); font-size: .75rem; }
@media (max-width: 991px) {
    /* Horizontal, swipeable tabs on small screens */
    .pe-tabs { padding: .5rem; }
    .pe-tabs ul { display: flex; overflow-x: auto; gap: .35rem; scrollbar-width: none; scroll-snap-type: x proximity; }
    .pe-tabs li { flex: 0 0 auto; scroll-snap-align: start; }
    .pe-tabs a { white-space: nowrap; border: 1px solid var(--gb-border); }
}
.pe-panel { overflow: hidden; }
.pe-head { display: flex; align-items: flex-start; gap: .85rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--gb-border); background: linear-gradient(180deg, var(--gb-red-50), var(--gb-surface)); }
.pe-icon { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gb-surface); border: 1px solid var(--gb-red-100); color: var(--gb-red); font-size: 1.1rem; }
.pe-head h2 { font-family: var(--gb-font-body); font-size: 1.05rem; font-weight: 700; margin: 0; }
.pe-head p { margin: .1rem 0 0; color: var(--gb-muted); font-size: .82rem; }
.pe-foot { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .85rem 1.25rem; border-top: 1px solid var(--gb-border); background: var(--gb-surface-2); position: sticky; bottom: 0; z-index: 2; }
.upload-drop.is-over { border-color: var(--gb-red); background: var(--gb-red-50); }

/* ---------- Standard UI font sizes ----------
   Body text: 0.9rem. Buttons, inputs, dropdowns, field labels and menu links: 0.8rem.
   Headings, badges and small captions keep their own sizes. */
:root { --bs-body-font-size: .9rem; }
.btn, .btn-sm, .btn-lg,
.form-control, .form-select, .form-check-label, .input-group-text,
.nav-link-gb, .dropdown-item,
.filter-sidebar .form-select, .filter-sidebar .form-control,
.filter-sidebar .fs-foot .btn, .results-4col .pc-actions .btn, .grid-5 .pc-actions .btn,
.form-label, .filter-sidebar .form-label, .filter-sidebar .loc-cascade .form-label,
.filter-sidebar-lite .loc-cascade .form-label, .hs-col .form-label,
.filter-sidebar .range-pair span, .pill-checks label, .filter-sidebar .pill-checks label { font-size: .8rem; }
.hs-col .form-label { text-transform: none; letter-spacing: 0; }

/* ---------- Profile details: photos + lightbox ---------- */
.pd-media { display: flex; flex-direction: column; gap: .5rem; max-width: 200px; }
.pd-photo-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.pd-photo-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--gb-ease); }
.pd-photo-btn:hover img { transform: scale(1.04); }
.pd-photo-btn:focus-visible { outline: 3px solid var(--gb-red); outline-offset: -3px; }
.pd-zoom { position: absolute; right: .5rem; top: .5rem; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--gb-ink); font-size: .8rem; opacity: 0; transition: opacity .2s; }
.pd-photo-btn:hover .pd-zoom, .pd-photo-btn:focus-visible .pd-zoom { opacity: 1; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.pd-thumb { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--gb-border); border-radius: 8px; overflow: hidden; background: var(--gb-blush); cursor: zoom-in; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.pd-thumb:hover img { opacity: .8; }
.pd-thumb:focus-visible { outline: 2px solid var(--gb-red); outline-offset: 1px; }
.pd-thumb-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30, 14, 12, .55); color: #fff; font-weight: 700; font-size: .85rem; }

body.lb-open { overflow: hidden; }
.gb-lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: auto 1fr auto; align-items: center;
    background: rgba(24, 12, 10, .55); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    opacity: 0; transition: opacity .2s; padding: 0 .5rem; }
.gb-lightbox.is-open { opacity: 1; }
.gb-lightbox[hidden] { display: none; }
.lb-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding: .8rem .5rem; color: #fff; }
.lb-title { font-family: var(--gb-font-display); font-size: 1.3rem; }
.lb-count { font-size: .8rem; opacity: .8; margin-right: auto; font-variant-numeric: tabular-nums; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font-size: 1.1rem;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .15s, transform .15s; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb-nav { justify-self: center; }
.lb-nav:active { transform: scale(.94); }
.lb-stage { margin: 0; height: 100%; min-height: 0; display: grid; place-items: center; padding: .5rem; }
.lb-img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 14px; border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); opacity: 0; transform: scale(.98); transition: opacity .25s, transform .25s; }
.lb-img.is-in { opacity: 1; transform: none; }
.lb-strip { grid-column: 1 / -1; display: flex; gap: .45rem; justify-content: center; overflow-x: auto; padding: .75rem .5rem 1rem; scrollbar-width: none; }
.lb-thumb { flex: 0 0 auto; width: 56px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: rgba(255,255,255,.1); opacity: .55; transition: opacity .15s, border-color .15s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb.is-active { opacity: 1; border-color: #fff; }
.gb-lightbox.is-single .lb-nav, .gb-lightbox.is-single .lb-strip { visibility: hidden; }
@media (max-width: 575px) {
    .gb-lightbox { grid-template-columns: 1fr; padding: 0; }
    .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; }
    .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
    .lb-stage { grid-column: 1; }
    .lb-img { max-height: calc(100vh - 170px); border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .gb-lightbox, .lb-img, .pd-photo-btn img { transition: none; } }

/* Profile editor: second form inside a tab (e.g. Change password) */
.pe-subform { border-top: 6px solid var(--gb-surface-2); }

/* ---------- Browse: heading with result count + active filters ---------- */
.browse-section { padding-top: 2.25rem; }
.results-head { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); padding: 1rem 1.15rem; margin-bottom: 1.25rem; }
.rh-top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.rh-title { margin-right: auto; min-width: 0; }
.results-title { font-family: var(--gb-font-display); font-size: clamp(1.45rem, 1.25rem + .7vw, 1.85rem); font-weight: 600; color: var(--gb-ink); line-height: 1.15; margin: 0; }
.results-title .rt-num { color: var(--gb-red); font-weight: 700; }
.rh-sub { margin: .2rem 0 0; font-size: .8rem; color: var(--gb-muted); }
.rh-hint { color: var(--gb-muted); }
.rh-tools { display: flex; align-items: center; gap: .5rem; }
.rh-tools .form-select { min-height: 38px; }
.rh-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .85rem; padding-top: .85rem; border-top: 1px dashed var(--gb-border-strong); }
.rh-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gb-muted); margin-right: .25rem; display: inline-flex; align-items: center; gap: .35rem; }
.rh-label i { color: var(--gb-red); }
.rh-filters .filter-chip a { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: inherit; text-decoration: none; transition: background .15s; }
.rh-filters .filter-chip a:hover { background: var(--gb-red-100); }
.rh-clear { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--gb-red-ink); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .5rem; border-radius: 999px; }
.rh-clear:hover { background: var(--gb-red-50); }
@media (max-width: 575px) { .rh-clear { margin-left: 0; } .rh-tools { width: 100%; } .rh-tools .form-select { flex: 1; } }

/* ---------- Footer: offices ---------- */
.footer-contact a { color: #E8D3CE; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.footer-social a:hover { background: var(--gb-red); border-color: var(--gb-red); }
.footer-offices { display: grid; gap: 1rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-offices { grid-template-columns: repeat(3, 1fr); } }
.footer-office { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--gb-r-lg); padding: 1.1rem 1.2rem; }
.footer-office .footer-h { display: flex; align-items: center; gap: .4rem; margin-bottom: .7rem; }
.footer-office .footer-h i { color: #FFB4AA; letter-spacing: 0; }
.footer-office address { font-style: normal; font-size: .85rem; color: #E8D3CE; line-height: 1.55; margin-bottom: .75rem; }
.footer-office ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .85rem; }
.footer-office li { display: flex; align-items: center; gap: .5rem; }
.footer-office a { color: #CFB6B0; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.footer-office a:hover { color: #fff; }
.footer-office a i { color: #FFB4AA; }
.footer-office .fo-wa { width: 26px; height: 26px; border-radius: 50%; justify-content: center; background: rgba(37, 211, 102, .15); }
.footer-office .fo-wa i { color: #4ADE80; }
.footer-office .fo-wa:hover { background: rgba(37, 211, 102, .3); }
.footer-credit { opacity: .7; margin-left: .35rem; }
.footer-credit::before { content: "· "; }

/* Owner's "preview my profile" bar on profile-details.php */
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: var(--gb-r); background: var(--gb-blush); border: 1px dashed var(--gb-red); }
.preview-bar > .bi { font-size: 1.25rem; color: var(--gb-red); }
.preview-bar strong { display: block; color: var(--gb-red-ink); }
.preview-bar span { font-size: .9rem; }

/* Profile details: main action + compact action buttons */
.pd-actions { display: grid; gap: .5rem; min-width: 230px; }
.pd-phone { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .15rem; font-weight: 700; font-size: 1rem; color: var(--gb-ink); text-decoration: none; letter-spacing: .01em; }
.pd-phone i { color: var(--gb-red); }
.pd-phone:hover, .pd-phone:focus-visible { color: var(--gb-red); }
.pd-mini-row { display: grid; gap: .4rem; grid-template-columns: 1fr; }
.pd-mini-2 { grid-template-columns: 1fr 1fr; }
.pd-mini-3 { grid-template-columns: repeat(3, 1fr); }
.pd-mini {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 36px; padding: .3rem .55rem;
    border-radius: 10px; border: 1px solid var(--gb-border); background: var(--gb-surface); color: var(--gb-ink);
    font-size: .8rem; font-weight: 600; line-height: 1.1; white-space: nowrap; text-decoration: none; cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.pd-mini i { font-size: .9rem; color: var(--gb-red); }
.pd-mini:hover, .pd-mini:focus-visible { border-color: var(--gb-red); color: var(--gb-red-ink); background: var(--gb-blush); }
.pd-mini[aria-pressed="true"] { border-color: var(--gb-red); background: var(--gb-blush); color: var(--gb-red-ink); }
.pd-mini-call { background: var(--gb-blush); border-color: transparent; color: var(--gb-red-ink); }
.pd-mini-call:hover, .pd-mini-call:focus-visible { background: var(--gb-red); border-color: var(--gb-red); color: #fff; }
.pd-mini-call:hover i, .pd-mini-call:focus-visible i { color: #fff; }
.pd-mini-wa { background: #E7F8EE; border-color: transparent; color: #12733A; }
.pd-mini-wa i { color: #25D366; }
.pd-mini-wa:hover, .pd-mini-wa:focus-visible { background: #25D366; border-color: #25D366; color: #fff; }
.pd-mini-wa:hover i, .pd-mini-wa:focus-visible i { color: #fff; }

/* Profile details: call / WhatsApp block in the "About access" card */
.pd-contact { border-top: 1px solid var(--gb-border); padding-top: 1rem; text-align: center; }
.pd-contact-label { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--gb-gold); }
.pd-contact-no { display: inline-block; margin: .2rem 0 .8rem; font-weight: 700; font-size: 1.3rem; color: var(--gb-red-ink); text-decoration: none; }
.pd-contact-no:hover { color: var(--gb-red); }
.pd-contact-btns { display: grid; gap: .5rem; }
.btn-whatsapp { background: #25D366; border: 1px solid #25D366; color: #fff; }
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { background: #1DA851; border-color: #1DA851; color: #fff; }

/* ---- Search page (search.php) ---- */
.qsearch-panel { background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); padding: 1.5rem; box-shadow: 0 10px 30px -18px rgba(90, 20, 12, .25); }
.search-results { margin-top: 2rem; }
.search-results .results-head { margin-bottom: 1.25rem; }
.search-bar { position: relative; display: flex; gap: .5rem; align-items: stretch; }
.search-bar > i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--gb-red); font-size: 1.1rem; pointer-events: none; }
.search-bar .form-control { flex: 1 1 auto; min-height: 56px; padding-left: 3rem; font-size: 1rem; border-radius: 999px; }
.search-bar .btn-gb { min-width: 140px; border-radius: 999px; font-size: 1rem; }
@media (max-width: 575.98px) { .qsearch-panel { padding: 1.1rem; } .search-bar .btn-gb { min-width: 0; padding-inline: 1.1rem; } .search-bar .form-control { min-height: 50px; } }
.search-bar-help { margin-top: .6rem; padding: 0 .75rem; }
mark.hl { background: #FFE7A3; color: inherit; padding: 0 .1em; border-radius: 3px; }
.qs-count { color: var(--gb-red-ink); font-weight: 700; }
.qsearch-seg label i { font-size: .95em; }

/* Search result rows (partials/profile-row.php) */
.pr-list { display: flex; flex-direction: column; gap: .75rem; }
.pr-row { display: grid; grid-template-columns: minmax(200px, 1.1fr) 3fr auto; gap: 1.25rem; align-items: center; background: var(--gb-surface); border: 1px solid var(--gb-border); border-radius: var(--gb-r-lg); padding: 1rem 1.25rem; transition: border-color .2s, box-shadow .2s; }
.pr-row:hover { border-color: var(--gb-red-100, #f3c9c4); box-shadow: 0 10px 24px -18px rgba(90, 20, 12, .35); }
.pr-name { font-family: var(--gb-font-display); font-size: 1.35rem; font-weight: 600; margin: 0; line-height: 1.2; }
.pr-name a { color: var(--gb-ink); text-decoration: none; }
.pr-name a:hover { color: var(--gb-red-ink); }
.pr-sub { display: flex; flex-wrap: wrap; gap: .2rem .6rem; margin: .25rem 0 0; font-size: .82rem; color: var(--gb-red-ink); font-weight: 600; }
.pr-id { color: var(--gb-muted); font-weight: 600; }
.pr-new { background: var(--gb-red); color: #fff; border-radius: 999px; padding: 0 .5rem; font-size: .7rem; line-height: 1.6; }
.pr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1.25rem; margin: 0; }
.pr-facts dt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gb-muted); margin-bottom: .15rem; }
.pr-facts dd { margin: 0; font-size: .88rem; color: var(--gb-ink); }
.pr-actions { display: flex; align-items: center; gap: .5rem; }
.pr-actions .btn { white-space: nowrap; }
@media (max-width: 991.98px) { .pr-row { grid-template-columns: 1fr auto; } .pr-facts { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 575.98px) { .pr-facts { grid-template-columns: 1fr; gap: .5rem; } .pr-row { padding: .9rem 1rem; } }
.load-more { text-align: center; margin-top: 1.5rem; }
.load-more .btn { min-width: 200px; }
