@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&display=swap");

.hbgmc-form {
    /* font-family: "Barlow", sans-serif; */
    font-family: inherit;
    max-width: 900px;
    margin: 1rem auto;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff
}

.hbgmc-form label {
    display: block;
    font-weight: 600
}

.hbgmc-form input:not([type=checkbox]),
.hbgmc-form textarea {
    display: block;
    width: 100%;
    margin-top: .35rem;
    padding: .7rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px
}

.hbgmc-form button {
    padding: .7rem 1rem;
    border: 0;
    border-radius: 4px;
    cursor: pointer
}

.hbgmc-message.is-error {
    color: #b91c1c
}

.hbgmc-hidden,
.hbgmc-hp {
    display: none !important
}

.hbgmc-check {
    font-weight: 400 !important
}

.hbgmc-form input[aria-invalid="true"] {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px #dc26261f !important
}

.hbgmc-modal-open {
    overflow: hidden
}

.hbgmc-success-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px
}

.hbgmc-success-backdrop {
    position: absolute;
    inset: 0;
    background: #061831b8;
    backdrop-filter: blur(7px);
    animation: hbgmcFade .22s ease-out
}

.hbgmc-success-card {
    --navy: #092c60;
    --gold: #c79438;
    position: relative;
    width: min(92vw, 520px);
    padding: 42px 44px 32px;
    border: 1px solid #e9d7ae;
    border-radius: 24px;
    background: linear-gradient(145deg, #fff, #fffaf0);
    box-shadow: 0 28px 90px #00153066;
    text-align: center;
    animation: hbgmcPop .32s cubic-bezier(.2, .8, .2, 1)
}

.hbgmc-success-card:before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid #d7b66e55;
    border-radius: 17px;
    pointer-events: none
}

.hbgmc-success-icon {
    width: 82px;
    height: 82px;
    margin: -4px auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #0d3b76, #071f47);
    box-shadow: 0 0 0 8px #d8b56624;
    color: #fff
}

.hbgmc-success-icon span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 2px solid #d8b15c;
    border-radius: 50%;
    font-size: 24px
}

.hbgmc-success-eyebrow {
    margin: 0 0 8px !important;
    color: var(--gold);
    font: 700 11px/1.4 inherit;
    letter-spacing: 3px
}

.hbgmc-success-card h2 {
    margin: 0 0 14px !important;
    color: var(--navy) !important;
    font: 700 34px/1.2 inherit !important
}

.hbgmc-success-card>p:not(.hbgmc-success-eyebrow):not(.hbgmc-success-countdown) {
    margin: 0 auto 19px !important;
    max-width: 410px;
    color: #53657c;
    font: 15px/1.65 inherit;
}

.hbgmc-success-note {
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid #ead9b8;
    border-radius: 10px;
    background: #fffaf0;
    color: #76571f;
    font-size: 13px
}

.hbgmc-success-note span {
    margin-right: 6px;
    color: var(--gold)
}

.hbgmc-success-login {
    min-height: 52px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 10px;
    background: linear-gradient(110deg, #082957, #0d417e);
    box-shadow: 0 9px 22px #0829572e;
    color: #fff !important;
    font: 700 17px inherit;
    text-decoration: none !important
}

.hbgmc-success-login:hover {
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 12px 27px #0829573d
}

.hbgmc-success-login span {
    color: #e1b85f;
    font: 23px inherit;
}

.hbgmc-success-countdown {
    margin: 14px 0 0 !important;
    color: #8290a2;
    font-size: 12px
}

.hbgmc-success-countdown strong {
    color: var(--navy)
}

@keyframes hbgmcFade {
    from {
        opacity: 0
    }
}

@keyframes hbgmcPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96)
    }
}

@media(max-width:560px) {
    .hbgmc-success-card {
        padding: 36px 24px 27px;
        border-radius: 20px
    }

    .hbgmc-success-card h2 {
        font-size: 28px !important
    }

    .hbgmc-success-icon {
        width: 72px;
        height: 72px
    }
}

/* Force true vertical centering; themes may stretch grid items and children. */
html body .hbgmc-success-modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important
}

/* The modal must remain absent on the initial registration-page render.
   This selector intentionally outranks the theme-protection rule above. */
html body .hbgmc-success-modal.hbgmc-hidden,
html body .hbgmc-success-modal[hidden] {
    display: none !important
}

.hbgmc-intro-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.hbgmc-intro-modal.hbgmc-hidden,
.hbgmc-intro-modal[hidden] {
    display: none !important
}

.hbgmc-intro-backdrop {
    position: absolute;
    inset: 0;
    background: #061831b8;
    backdrop-filter: blur(7px)
}

.hbgmc-intro-card {
    position: relative;
    width: min(92vw, 460px);
    padding: 28px 28px 22px;
    border: 1px solid #e9d7ae;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff, #fffaf0);
    box-shadow: 0 28px 90px #00153066;
    text-align: left
}

.hbgmc-intro-eyebrow {
    margin: 0 0 6px !important;
    color: #c79438;
    font: 700 11px/1.3 inherit;
    letter-spacing: 2.6px
}

.hbgmc-intro-card h2 {
    margin: 0 0 6px !important;
    color: #092c60 !important;
    font: 700 26px/1.2 inherit !important
}

.hbgmc-intro-card>p {
    margin: 0 0 16px !important;
    color: #53657c;
    font: 14px/1.5 inherit;
}

.hbgmc-intro-steps {
    margin: 0 0 18px !important;
    padding: 0 !important;
    list-style: none !important;
    counter-reset: hbgmc-intro
}

.hbgmc-intro-steps li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 2px 12px;
    margin: 0 !important;
    padding: 10px 0 !important;
    border-top: 1px solid #efe4cc;
    list-style: none !important
}

.hbgmc-intro-steps li:first-child {
    border-top: 0;
    padding-top: 0 !important
}

.hbgmc-intro-steps li::before {
    content: counter(hbgmc-intro);
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0d3b76;
    color: #f3d48a;
    font: 700 13px/1 inherit;
}

.hbgmc-intro-steps li {
    counter-increment: hbgmc-intro
}

.hbgmc-intro-steps b {
    color: #0c2d62;
    font: 700 15px/1.3 inherit;
}

.hbgmc-intro-steps span {
    color: #5d7088;
    font: 13px/1.45 inherit;
}

.hbgmc-intro-known {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px !important;
    color: #3d5270;
    font: 13px/1.3 inherit;
    cursor: pointer
}

.hbgmc-intro-known input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0d3b76;
    flex: 0 0 16px
}

.hbgmc-intro-start {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(110deg, #082957, #0d417e);
    color: #fff;
    font: 700 15px inherit;
    cursor: pointer
}

.hbgmc-intro-start:hover {
    color: #fff
}

html body .hbgmc-success-card {
    place-self: auto !important;
    align-self: center !important;
    justify-self: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 10px !important;
    height: max-content !important;
    min-height: 0 !important
}

html body .hbgmc-success-card>.hbgmc-success-icon,
html body .hbgmc-success-card>.hbgmc-success-eyebrow,
html body .hbgmc-success-card>h2,
html body .hbgmc-success-card>p,
html body .hbgmc-success-card>.hbgmc-success-note,
html body .hbgmc-success-card>.hbgmc-success-login {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important
}

html body .hbgmc-success-card>.hbgmc-success-icon {
    align-self: center !important
}

html body .hbgmc-success-card>.hbgmc-success-note {
    width: 100% !important
}

html body .hbgmc-success-card>.hbgmc-success-login {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important
}

html body .hbgmc-success-card>.hbgmc-success-note {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    min-height: 58px !important;
    padding: 10px 44px !important
}

html body .hbgmc-success-note-text {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    transform: translateY(-1px) !important
}

html body .hbgmc-success-card>.hbgmc-success-login {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 52px !important
}

html body .hbgmc-success-login-text {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
    font-size: 16px !important;
}

html body .hbgmc-success-login-arrow {
    position: absolute !important;
    top: 50% !important;
    right: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    transform: translateY(-52%) !important
}

/* Phone verification and AI Credit activation. */
.hbgmc-credit-panel,
.hbgmc-credit-panel * {
    box-sizing: border-box
}

.hbgmc-credit-panel {
    margin: 4px 0 14px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
    overflow: hidden;
    border: 1px solid #dfc88f;
    border-radius: 16px;
    background: linear-gradient(120deg, #082b61 0%, #0d427d 54%, #fffaf0 54%);
    box-shadow: 0 12px 34px #092e6317
}

.hbgmc-credit-intro {
    padding: 12px 26px 10px;
    color: #fff
}

.hbgmc-credit-kicker {
    display: block;
    margin-bottom: 2px;
    color: #e1ba64;
    font: 700 10px/1.2 inherit;
    letter-spacing: 2.7px
}

.hbgmc-credit-intro h2 {
    margin: 0 0 2px !important;
    color: #fff !important;
    font: 700 20px/1.15 inherit !important
}

.hbgmc-credit-intro>p {
    max-width: 570px;
    margin: 0 !important;
    color: #d9e4f0;
    font-size: 12px;
    line-height: 1.35
}

.hbgmc-credit-steps {
    margin: 8px 0 0;
    padding: 0 0 14px;
    display: flex;
    align-items: flex-start;
    gap: 9px
}

.hbgmc-credit-steps>span {
    width: 24px;
    height: 24px;
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: transparent;
    font-size: 0
}

.hbgmc-credit-steps>span::before {
    content: attr(data-step);
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid #a9bad1;
    border-radius: 50%;
    color: #cbd7e6;
    font-size: 11px;
    font-weight: 700;
    background: transparent
}

.hbgmc-credit-steps>span b {
    position: absolute;
    top: 28px;
    left: 50%;
    width: max-content;
    max-width: 120px;
    transform: translateX(-50%);
    color: #aebfd4;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap
}

/* First label is long ("Tài khoản đã duyệt") — keep it from clipping the left edge. */
.hbgmc-credit-steps>span:first-child b {
    left: 0;
    transform: none;
    text-align: left
}

.hbgmc-credit-steps>span.is-done::before {
    border-color: #dfb55b;
    background: #dfb55b;
    color: #082b61
}

.hbgmc-credit-steps>span.is-done b {
    color: #f0d99f
}

.hbgmc-credit-steps>i {
    height: 1px;
    max-width: 80px;
    flex: 1;
    align-self: flex-start;
    margin-top: 12px;
    background: #7390b2
}

.hbgmc-credit-action {
    min-height: 0;
    padding: 10px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fffaf2;
    color: #153961
}

.hbgmc-credit-loading {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #667b93;
    font-size: 12px
}

.hbgmc-credit-loading .hbgmc-spinner {
    flex: 0 0 24px
}

.hbgmc-credit-phone {
    display: flex;
    align-items: center;
    gap: 12px
}

.hbgmc-credit-phone>span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8eff7;
    color: #0b3a74
}

.hbgmc-credit-phone svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hbgmc-credit-phone small {
    display: block;
    margin-bottom: 2px;
    color: #78899e;
    font-size: 10px
}

.hbgmc-credit-phone strong {
    font-size: 17px;
    letter-spacing: .5px
}

.hbgmc-credit-action [data-credit-view=unverified]>p {
    margin: 4px 0 6px !important;
    color: #8a6b2c;
    font-size: 10px
}

.hbgmc-credit-action button {
    min-height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(110deg, #c69337, #e0b35a);
    color: #102e57;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 7px 18px #a4742422
}

.hbgmc-credit-action button:disabled {
    opacity: .6;
    cursor: wait
}

.hbgmc-credit-action button span {
    margin-left: 8px
}

.hbgmc-credit-otp {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px
}

.hbgmc-credit-otp label {
    grid-column: 1/-1;
    color: #173960;
    font-size: 11px;
    font-weight: 700
}

.hbgmc-credit-otp label input {
    width: 100% !important;
    height: 46px !important;
    margin: 6px 0 0 !important;
    padding: 0 14px !important;
    border: 1px solid #cbd6e3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #0b356b !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: 8px !important;
    text-align: center
}

.hbgmc-credit-otp small {
    grid-column: 1/-1;
    color: #76879c;
    font-size: 10px;
    line-height: 1.45
}

.hbgmc-credit-otp .hbgmc-credit-resend {
    border: 1px solid #d5bc83;
    background: transparent;
    box-shadow: none;
    color: #805b19
}

.hbgmc-credit-wallet>small {
    color: #78899e;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px
}

.hbgmc-credit-wallet>strong {
    display: block;
    margin: 3px 0;
    color: #0a336b;
    font: 700 31px/1.15 inherit
}

.hbgmc-credit-wallet>strong em {
    color: #bc8b31;
    font: 700 10px inherit;
    letter-spacing: 1.5px
}

.hbgmc-credit-wallet>p {
    margin: 0 0 12px !important;
    color: #708196;
    font-size: 10px
}

.hbgmc-credit-checked {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b9d7bf;
    border-radius: 8px;
    background: #eff9f1;
    color: #28703a;
    font-size: 11px;
    font-weight: 700
}

.hbgmc-credit-message {
    min-height: 0;
    margin: 6px 0 0 !important;
    color: #28703a;
    font-size: 10px;
    line-height: 1.4
}

.hbgmc-credit-message:empty {
    display: none
}

.hbgmc-credit-message.is-error {
    color: #b42318
}

@media(max-width:850px) {
    .hbgmc-credit-panel {
        grid-template-columns: 1fr;
        background: linear-gradient(180deg, #082b61 0%, #0d427d 62%, #fffaf0 62%)
    }

    .hbgmc-credit-action {
        min-height: 0;
        border-top: 1px solid #ead9b4
    }

    .hbgmc-credit-intro {
        padding: 22px 20px 18px
    }

    .hbgmc-credit-intro h2 {
        font-size: 22px !important
    }

    /* Mobile stepper: equal columns, labels in normal flow (no absolute clip). */
    .hbgmc-credit-steps {
        margin-top: 18px;
        padding: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
        align-items: start;
        gap: 0 6px
    }

    .hbgmc-credit-steps>span {
        width: auto;
        height: auto;
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center
    }

    .hbgmc-credit-steps>span::before {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        font-size: 12px
    }

    .hbgmc-credit-steps>span b {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        max-width: none;
        transform: none;
        padding: 0 2px;
        color: #c5d3e4;
        font-size: 10px;
        line-height: 1.35;
        white-space: normal;
        text-align: center;
        text-wrap: balance
    }

    .hbgmc-credit-steps>span.is-done b {
        color: #f0d99f
    }

    .hbgmc-credit-steps>span:first-child b {
        left: auto;
        transform: none;
        text-align: center
    }

    .hbgmc-credit-steps>i {
        width: 100%;
        max-width: none;
        height: 1px;
        align-self: start;
        margin-top: 15px;
        background: #7390b2
    }
}

@media(max-width:480px) {

    .hbgmc-credit-intro,
    .hbgmc-credit-action {
        padding: 18px 16px
    }

    .hbgmc-credit-kicker {
        letter-spacing: 2px;
        font-size: 9px
    }

    .hbgmc-credit-intro h2 {
        font-size: 20px !important
    }

    .hbgmc-credit-intro>p {
        font-size: 12px
    }

    .hbgmc-credit-steps {
        margin-top: 16px;
        grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
        gap: 0 4px
    }

    .hbgmc-credit-steps>span::before {
        width: 28px;
        height: 28px;
        font-size: 11px
    }

    .hbgmc-credit-steps>span b {
        font-size: 9px;
        line-height: 1.3
    }

    .hbgmc-credit-steps>i {
        margin-top: 14px
    }

    .hbgmc-credit-phone {
        gap: 10px
    }

    .hbgmc-credit-phone strong {
        font-size: 15px;
        word-break: break-word
    }

    .hbgmc-credit-action button {
        width: 100%
    }

    .hbgmc-credit-otp {
        grid-template-columns: 1fr
    }

    .hbgmc-credit-otp button {
        width: 100%
    }

    .hbgmc-credit-otp label input {
        letter-spacing: 6px !important;
        font-size: 18px !important
    }

    .hbgmc-credit-wallet>strong {
        font-size: 26px
    }
}

/* Balanced success-popup typography and Vietnamese line wrapping. */
html .hbgmc-success-card {
    max-width: 470px !important;
    padding: 28px 34px 24px !important;
    text-align: center !important
}

html .hbgmc-success-card,
html .hbgmc-success-card * {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important
}

html .hbgmc-success-icon {
    width: 62px !important;
    height: 62px !important;
    min-height: 62px !important;
    margin: 0 auto 13px !important
}

html .hbgmc-success-icon span {
    width: 29px !important;
    height: 29px !important
}

html .hbgmc-success-eyebrow {
    margin: 0 0 6px !important;
    letter-spacing: 2.2px !important
}

html .hbgmc-success-card h2 {
    margin: 0 0 10px !important;
    font-size: 29px !important;
    line-height: 1.18 !important;
    letter-spacing: -.25px !important
}

html .hbgmc-success-card>p:not(.hbgmc-success-eyebrow):not(.hbgmc-success-countdown) {
    max-width: 380px !important;
    margin: 0 auto 14px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-wrap: balance
}

html .hbgmc-success-note {
    position: relative !important;
    min-height: 54px !important;
    margin: 0 0 16px !important;
    padding: 10px 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-wrap: balance
}

html .hbgmc-success-note-icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important
}

html .hbgmc-success-login {
    height: 48px !important;
    min-height: 48px !important;
    font-size: 15px !important
}

@media(max-width:560px) {
    html .hbgmc-success-card {
        padding: 25px 20px 21px !important
    }

    html .hbgmc-success-card h2 {
        font-size: 26px !important
    }

    html .hbgmc-success-note {
        padding: 10px 30px !important
    }

    html .hbgmc-success-note-icon {
        left: 11px !important
    }
}

.hbgmc-account {
    font-family: inherit;
    --navy: #08295f;
    --gold: #c69a43;
    --ink: #112f61;
    --line: #e5eaf0;
    max-width: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #f5f4f1;
    color: var(--ink);
    font: 14px/1.45 inherit;
}

/* WordPress often injects empty paragraphs around shortcodes. */
.site-main>p:empty,
.entry-content>p:empty,
.site-main>p:has(>br:only-child),
.entry-content>p:has(>br:only-child),
.site-main>p:has(+.hbgmc-account),
.entry-content>p:has(+.hbgmc-account),
.site-main>.hbgmc-account+p:empty,
.entry-content>.hbgmc-account+p:empty,
main#primary>p:empty,
main#primary>p:has(+.hbgmc-account) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    border: 0 !important
}

.site-main>.hbgmc-account,
.entry-content>.hbgmc-account,
main#primary>.hbgmc-account,
.wp-block-group .hbgmc-account {
    margin-top: 0 !important
}

/* If a cached page still has the <code> wrapper, don't let it paint a line. */
.hbgmc-account>code {
    display: block
}

.hbgmc-account * {
    box-sizing: border-box
}

.hbgmc-account-content {
    min-height: 100vh
}

.hbgmc-loading {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px
}

.hbgmc-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #dbe3ec;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: hs .8s linear infinite
}

@keyframes hs {
    to {
        transform: rotate(360deg)
    }
}

.hbgmc-topbar {
    height: 58px;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    box-shadow: 0 1px 6px #14274412;
    position: relative;
    z-index: 3
}

.hbgmc-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #102e5e !important;
    font: 700 26px "Barlow", sans-serif;
    letter-spacing: 1px;
    text-decoration: none !important
}

.hbgmc-brand span {
    color: var(--gold);
    font-size: 30px
}

.hbgmc-brand img {
    display: block;
    width: auto;
    height: 42px;
    object-fit: contain
}

.hbgmc-user-menu {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center
}

.hbgmc-user-trigger {
    height: 42px;
    padding: 0 4px 0 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer
}

.hbgmc-user-trigger:hover,
.hbgmc-user-menu.is-open .hbgmc-user-trigger {
    background: #f4f1ea
}

.hbgmc-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #d8b66e, #9a7332);
    color: #fff;
    font: 700 12px/1 "Barlow", sans-serif;
    letter-spacing: .4px
}

.hbgmc-user-trigger strong {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 600 14px/1.2 "Barlow", sans-serif;
    color: #16325f
}

.hbgmc-user-caret {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #61738e;
    transition: transform .2s ease
}

.hbgmc-user-caret svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hbgmc-user-menu.is-open .hbgmc-user-caret {
    transform: rotate(180deg)
}

.hbgmc-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(8, 41, 95, .16);
    z-index: 20
}

.hbgmc-user-dropdown[hidden] {
    display: none !important
}

.hbgmc-user-dropdown .hbgmc-logout {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    border-top: 0;
    background: transparent;
    color: #2d476e !important;
    font: 600 14px/1.2 "Barlow", sans-serif;
    text-align: left;
    cursor: pointer
}

.hbgmc-user-dropdown .hbgmc-logout:hover {
    background: #f6f1e7;
    color: #8a5a12 !important
}

.hbgmc-user-dropdown .hbgmc-logout .hbgmc-nav-icon {
    color: currentColor
}

.hbgmc-shell {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    min-height: calc(100vh - 58px)
}

.hbgmc-sidebar {
    padding: 37px 24px 28px;
    background: linear-gradient(180deg, #fff 0%, #fff 56%, #faf8f3);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden
}

.hbgmc-sidebar:after {
    display: none;
    content: "";
    position: absolute;
    width: 280px;
    height: 300px;
    left: -90px;
    bottom: -80px;
    background: repeating-linear-gradient(90deg, transparent 0 13px, #b89a5b14 14px 15px), linear-gradient(145deg, transparent 35%, #bd9a5120);
    transform: skewY(-12deg)
}

.hbgmc-sidebar nav {
    display: grid;
    gap: 4px
}

.hbgmc-sidebar nav a {
    min-height: 46px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #2d476e !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    text-align: left
}

.hbgmc-nav-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    color: #61738e
}

.hbgmc-nav-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hbgmc-nav-short {
    display: none
}

.hbgmc-sidebar nav a.is-active {
    background: linear-gradient(100deg, #0b2759, #0a3476);
    color: #fff !important;
    box-shadow: 2px 3px 0 #d1a448
}

.hbgmc-sidebar nav a.is-active .hbgmc-nav-icon {
    color: #f0d59a
}

@media (hover: hover) and (pointer: fine) {
    .hbgmc-sidebar nav a:hover {
        background: #f3efe6;
        color: #0b2759 !important
    }

    .hbgmc-sidebar nav a:hover .hbgmc-nav-icon {
        color: #b88934
    }

    .hbgmc-sidebar nav a.is-active:hover {
        background: linear-gradient(100deg, #0b2759, #0a3476);
        color: #fff !important
    }

    .hbgmc-sidebar nav a.is-active:hover .hbgmc-nav-icon {
        color: #f0d59a
    }
}

.hbgmc-main {
    min-width: 0;
    padding: 20px 34px 34px;
    background: radial-gradient(circle at 50% 0, #fff9, transparent 36%), linear-gradient(120deg, #f8f7f4, #f1efeb)
}

.hbgmc-hero {
    min-height: 108px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px
}

.hbgmc-welcome>span {
    font: 17px "Barlow", sans-serif
}

.hbgmc-welcome>div {
    display: flex;
    align-items: center;
    gap: 14px
}

.hbgmc-welcome h1 {
    margin: 0 !important;
    color: #0a2b61 !important;
    font: 700 36px/1.2 "Barlow", sans-serif !important
}

.hbgmc-welcome p {
    margin: 2px 0;
    color: #8490a2
}

.hbgmc-tier-badge {
    padding: 7px 13px;
    border-radius: 6px;
    background: linear-gradient(135deg, #efd18a, #d9a534);
    color: #33220b;
    text-transform: uppercase
}

.hbgmc-member-card {
    width: 294px;
    height: 112px;
    flex: none;
    padding: 20px;
    border-radius: 9px;
    background: linear-gradient(135deg, #12396e, #051c41);
    box-shadow: 0 8px 18px #07265525;
    color: #ddb965;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    overflow: hidden;
    font-family: "Barlow", sans-serif;
    letter-spacing: 1px
}

.hbgmc-member-card strong {
    font-size: 19px
}

.hbgmc-member-card i {
    position: absolute;
    width: 135px;
    height: 135px;
    right: -45px;
    bottom: -76px;
    border: 1px solid #bc9558;
    border-radius: 50%
}

.hbgmc-panel {
    margin-bottom: 15px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 13px;
    box-shadow: 0 5px 18px #18375a0a
}

.hbgmc-panel h2 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 !important;
    color: #0c2d62 !important;
    font: 700 18px/1.4 "Barlow", sans-serif !important
}

.hbgmc-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: #0d3472;
    font: 22px "Barlow", sans-serif
}

.hbgmc-heading-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hbgmc-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 6px
}

.hbgmc-profile dl {
    display: block;
    margin: 0 !important;
    padding: 0 38px 0 20px
}

.hbgmc-profile dl+dl {
    border-left: 1px solid #dde3ea;
    padding-left: 50px
}

.hbgmc-profile dl div {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    padding: 9px 0
}

.hbgmc-profile dt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #4d5d75;
    font-weight: 500;
    line-height: 1.3
}

.hbgmc-profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    background: #eef3fa;
    color: #0d3c76
}

.hbgmc-profile-icon svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hbgmc-profile dd {
    margin: 0;
    color: #0b2e66;
    font-weight: 600
}

.hbgmc-status {
    display: flex;
    align-items: center;
    gap: 7px
}

.hbgmc-status i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #43b768
}

.hbgmc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 14px
}

.hbgmc-stat {
    min-height: 92px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid;
    border-radius: 12px;
    background: #fff
}

.hbgmc-stat>span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    font-size: 26px
}

.hbgmc-stat small {
    display: block;
    color: #536a8c
}

.hbgmc-stat strong {
    display: block;
    color: #0a2b61;
    font: 700 28px/1.3 "Barlow", sans-serif
}

.hbgmc-stat>b {
    margin-left: auto;
    font-size: 28px
}

.hbgmc-stat-gold {
    border-color: #ecd9b1
}

.hbgmc-stat-gold>span {
    background: #f6eddc;
    color: #a37b32
}

.hbgmc-stat-blue {
    border-color: #c6d8ee;
    background: #f6faff
}

.hbgmc-stat-blue>span {
    background: #dfe9f6;
    color: #103f7e
}

.hbgmc-data-panel {
    padding: 12px 18px 10px
}

.hbgmc-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px
}

.hbgmc-tools {
    display: flex;
    gap: 12px
}

.hbgmc-tools label {
    width: 240px;
    height: 35px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #dce2ea;
    border-radius: 8px
}

.hbgmc-tools input {
    width: 100%;
    height: 31px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12px !important
}

.hbgmc-tools select {
    width: 180px;
    height: 35px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #dce2ea !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #334b70 !important;
    font-size: 12px !important
}

.hbgmc-table-wrap {
    overflow-x: auto
}

.hbgmc-table {
    width: 100%;
    border-collapse: collapse;
    color: #334d74;
    font-size: 13px
}

.hbgmc-table th,
.hbgmc-table td {
    height: 31px;
    padding: 5px 14px;
    border: 0;
    border-bottom: 1px solid #e7ebf0;
    text-align: left;
    white-space: nowrap
}

.hbgmc-table th {
    background: #f0f3f6;
    color: #536681;
    font-size: 11px;
    text-transform: uppercase
}

.hbgmc-table td:first-child,
.hbgmc-table th:first-child {
    width: 54px
}

.hbgmc-table td.is-money {
    color: #e21e43;
    font-weight: 600
}

.hbgmc-table td:last-child {
    width: 35px;
    text-align: center;
    font-size: 18px
}

.hbgmc-empty {
    padding: 20px;
    text-align: center;
    color: #64748b
}

.hbgmc-table-footer {
    min-height: 34px;
    padding-top: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #687b97;
    font-size: 12px
}

.hbgmc-table-footer button {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #375476;
    cursor: pointer
}

.hbgmc-table-footer button.is-active {
    background: #0a3474;
    color: #fff
}

@media(max-width:1050px) {
    .hbgmc-shell {
        grid-template-columns: 78px minmax(0, 1fr)
    }

    .hbgmc-sidebar {
        padding: 28px 10px
    }

    .hbgmc-sidebar nav a {
        justify-content: center;
        padding: 0;
        min-height: 48px
    }

    .hbgmc-sidebar nav a .hbgmc-nav-text,
    .hbgmc-sidebar nav a .hbgmc-nav-short {
        display: none
    }

    .hbgmc-sidebar nav a .hbgmc-nav-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px
    }

    .hbgmc-sidebar nav a .hbgmc-nav-icon svg {
        width: 22px;
        height: 22px
    }

    .hbgmc-main {
        padding: 18px
    }

    .hbgmc-profile dl div {
        grid-template-columns: 145px 1fr
    }
}

@media(max-width:760px) {
    .hbgmc-topbar {
        height: 56px;
        padding: 0 16px;
        position: sticky;
        top: 0;
        z-index: 5;
        box-shadow: none;
        border-bottom: 0
    }

    .hbgmc-brand {
        font-size: 21px
    }

    .hbgmc-user-trigger strong {
        display: none
    }

    .hbgmc-shell {
        display: block
    }

    /* Keep tabs flush under the topbar — no orphan white strip above the nav. */
    .hbgmc-sidebar {
        margin: 0;
        padding: 0 10px 8px;
        position: sticky;
        top: 56px;
        z-index: 4;
        display: block;
        overflow: visible;
        background: #fff;
        border-bottom: 1px solid #e8edf3;
        box-shadow: 0 6px 18px rgba(10, 36, 80, .06)
    }

    .hbgmc-sidebar:after {
        display: none
    }

    .hbgmc-sidebar nav {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 4px;
        min-width: 0;
        padding: 4px;
        border-radius: 14px;
        background: #f4f6f9
    }

    .hbgmc-sidebar nav a {
        min-width: 0;
        min-height: 58px;
        flex: none;
        padding: 6px 2px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        border-radius: 10px;
        background: transparent;
        box-shadow: none !important;
        color: #5d708a !important
    }

    .hbgmc-sidebar nav a .hbgmc-nav-text {
        display: none
    }

    .hbgmc-sidebar nav a .hbgmc-nav-short {
        display: block;
        max-width: 100%;
        padding: 0 1px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 9px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -.01em;
        text-align: center
    }

    .hbgmc-sidebar nav a .hbgmc-nav-icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
        color: #6b7f99
    }

    .hbgmc-sidebar nav a .hbgmc-nav-icon svg {
        width: 20px;
        height: 20px;
        stroke-width: 1.9
    }

    .hbgmc-sidebar nav a.is-active {
        background: #fff;
        color: #0b2759 !important;
        box-shadow: 0 1px 3px rgba(11, 39, 89, .08) !important
    }

    .hbgmc-sidebar nav a.is-active .hbgmc-nav-icon {
        color: #b88934
    }

    .hbgmc-sidebar nav a.is-active .hbgmc-nav-short {
        color: #0b2759
    }

    .hbgmc-user-dropdown {
        min-width: 168px
    }

    .hbgmc-main {
        padding: 14px 10px
    }

    .hbgmc-member-card {
        display: none
    }

    .hbgmc-welcome h1 {
        font-size: 29px !important
    }

    .hbgmc-profile-grid,
    .hbgmc-stats {
        grid-template-columns: 1fr
    }

    .hbgmc-profile dl,
    .hbgmc-profile dl+dl {
        padding: 0;
        border: 0
    }

    .hbgmc-stats {
        gap: 8px
    }

    .hbgmc-panel-head {
        align-items: flex-start;
        flex-direction: column
    }

    .hbgmc-tools {
        width: 100%
    }

    .hbgmc-tools label {
        width: auto;
        flex: 1
    }

    .hbgmc-tools select {
        width: 145px
    }
}

@media(max-width:480px) {
    .hbgmc-tools {
        flex-direction: column
    }

    .hbgmc-tools select {
        width: 100%
    }

    .hbgmc-profile dl div {
        display: block
    }
}

/* Member login */
.hbgmc-login-page {
    --login-navy: #082957;
    --login-gold: #bf8a2f;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #d8c29f url('../images/login-hotel-lobby.webp') center/cover no-repeat;
    color: var(--login-navy);
    font-family: "Barlow", sans-serif
}

.hbgmc-login-page * {
    box-sizing: border-box
}

.hbgmc-login-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fffdf5ed 0%, #fffaf0cc 41%, transparent 62%), linear-gradient(0deg, #031631b8 0%, transparent 38%);
    pointer-events: none
}

.hbgmc-login-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(560px, 52%) 1fr
}

.hbgmc-login-left {
    padding: 28px clamp(36px, 7vw, 132px) 36px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.hbgmc-login-brand {
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--login-navy) !important;
    text-decoration: none !important;
    font-family: "Barlow", sans-serif
}

.hbgmc-login-brand img {
    display: block;
    width: min(100%, 340px);
    height: auto;
    max-height: 92px;
    object-fit: contain
}

.hbgmc-login-flower {
    height: 48px;
    color: var(--login-gold);
    font-size: 52px;
    line-height: .8
}

.hbgmc-login-brand strong {
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: 1px
}

.hbgmc-login-brand small {
    color: #956924;
    font: 12px "Barlow", sans-serif;
    letter-spacing: 4px
}

.hbgmc-login-page .hbgmc-login-form {
    width: min(100%, 760px);
    max-width: none;
    margin: 30px 0 0;
    padding: 38px clamp(34px, 5vw, 78px) 28px;
    border: 1px solid #fff9;
    border-radius: 26px;
    background: #fffdf8e8;
    box-shadow: 0 20px 60px #3d260b1a;
    backdrop-filter: blur(12px)
}

.hbgmc-login-heading h1 {
    margin: 0 !important;
    color: var(--login-navy) !important;
    font: 700 clamp(32px, 3vw, 48px)/1.15 "Barlow", sans-serif !important
}

.hbgmc-login-heading h2 {
    margin: 7px 0 8px !important;
    color: #93651e !important;
    font: 400 clamp(21px, 2vw, 30px)/1.25 "Barlow", sans-serif !important
}

.hbgmc-login-heading p {
    max-width: 590px;
    margin: 0 0 28px !important;
    color: #707174;
    font-size: 17px;
    line-height: 1.5
}

.hbgmc-login-field {
    margin-bottom: 16px
}

.hbgmc-login-field>label {
    display: block;
    margin-bottom: 7px;
    color: #102f5d;
    font-size: 16px;
    font-weight: 700
}

.hbgmc-login-input {
    height: 61px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 20px;
    border: 1px solid #d4d9e0;
    border-radius: 10px;
    background: #fff9;
    transition: .2s
}

.hbgmc-login-input:focus-within {
    border-color: #0b438c;
    box-shadow: 0 3px 10px #0b438c20
}

.hbgmc-login-input>span {
    width: 24px;
    color: #8a8d92;
    font-size: 24px;
    text-align: center
}

.hbgmc-login-page .hbgmc-login-input input {
    height: 58px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #16345e !important;
    font-size: 16px !important
}

.hbgmc-login-input input::placeholder {
    color: #9a9ca1
}

.hbgmc-password-toggle {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #92959a;
    font-size: 19px;
    cursor: pointer
}

.hbgmc-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 21px
}

.hbgmc-remember {
    display: flex !important;
    align-items: center;
    gap: 9px;
    color: #17355e;
    font-weight: 400 !important;
    cursor: pointer
}

.hbgmc-remember input {
    position: absolute;
    opacity: 0
}

.hbgmc-remember span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid #c1cad6;
    border-radius: 4px;
    background: #fff;
    color: transparent
}

.hbgmc-remember input:checked+span {
    border-color: #0b3268;
    background: #0b3268;
    color: #fff
}

.hbgmc-forgot,
.hbgmc-login-back {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #123565;
    font: 600 14px "Barlow", sans-serif;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer
}

.hbgmc-login-page .hbgmc-login-options {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important
}

.hbgmc-login-page .hbgmc-forgot {
    margin-left: auto
}

.hbgmc-login-submit {
    width: 100%;
    height: 62px;
    padding: 0 28px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid #d5a13f !important;
    border-radius: 11px !important;
    background: linear-gradient(110deg, #082957, #0d3c76) !important;
    color: #fff !important;
    font: 700 22px "Barlow", sans-serif;
    cursor: pointer
}

.hbgmc-login-submit b,
.hbgmc-login-submit .hbgmc-submit-arrow {
    color: #d8a540;
    font: 28px "Barlow", sans-serif
}

.hbgmc-login-submit,
.hbgmc-auth-submit {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0
}

.hbgmc-submit-label {
    line-height: 1;
    white-space: nowrap
}

.hbgmc-submit-spinner {
    display: none;
    box-sizing: border-box;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .28);
    border-top-color: #ddb14e;
    border-radius: 50%;
    font-style: normal;
    line-height: 0;
    align-self: center;
    animation: hs .75s linear infinite
}

.hbgmc-login-submit.is-loading,
.hbgmc-auth-submit.is-loading,
.hbgmc-login-submit:disabled,
.hbgmc-auth-submit:disabled {
    opacity: .78;
    cursor: wait;
    pointer-events: none
}

.hbgmc-login-submit.is-loading .hbgmc-submit-arrow,
.hbgmc-auth-submit.is-loading .hbgmc-submit-arrow {
    visibility: hidden;
    width: 0;
    margin: 0;
    overflow: hidden
}

.hbgmc-login-submit.is-loading .hbgmc-submit-spinner,
.hbgmc-auth-submit.is-loading .hbgmc-submit-spinner {
    display: block
}

.hbgmc-login-divider {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #888
}

.hbgmc-login-divider:before,
.hbgmc-login-divider:after {
    content: "";
    height: 1px;
    flex: 1;
    background: #d8d8d6
}

.hbgmc-register-link {
    margin: 0 !important;
    text-align: center;
    color: #666;
    font-size: 15px
}

.hbgmc-register-link a {
    margin-left: 8px;
    color: #a66f19 !important;
    font-weight: 700;
    text-decoration: underline !important
}

.hbgmc-login-page .hbgmc-message {
    min-height: 18px;
    margin-top: 8px;
    text-align: center
}

.hbgmc-login-otp {
    margin-top: auto !important;
    margin-bottom: auto !important
}

.hbgmc-login-back {
    display: block;
    margin: 18px auto 0
}

.hbgmc-login-promise {
    align-self: end;
    margin: 0 auto 42px;
    width: min(90%, 600px);
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px #00132d
}

.hbgmc-login-promise>div {
    padding-bottom: 20px;
    border-bottom: 1px solid #d8a94d88
}

.hbgmc-login-promise h2 {
    margin: 0 !important;
    color: #fff !important;
    font: 30px "Barlow", sans-serif !important
}

.hbgmc-login-promise h2::first-letter {
    color: #e3b95c
}

.hbgmc-login-promise p {
    margin: 5px 0 0 !important;
    color: #f2d28d;
    letter-spacing: 4px;
    font-size: 11px
}

.hbgmc-login-promise ul {
    margin: 22px 0 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none !important;
    font: 15px/1.45 "Barlow", sans-serif
}

.hbgmc-login-promise li {
    margin: 0 !important
}

.hbgmc-login-promise li span {
    display: block;
    margin-bottom: 5px;
    color: #e8ba55;
    font: 32px "Barlow", sans-serif
}

@media(max-width:1100px) {
    .hbgmc-login-layout {
        grid-template-columns: minmax(520px, 60%) 1fr
    }

    .hbgmc-login-left {
        padding-left: 35px;
        padding-right: 35px
    }

    .hbgmc-login-promise h2 {
        font-size: 23px
    }

    .hbgmc-login-promise ul {
        font-size: 12px
    }
}

@media(max-width:780px) {
    .hbgmc-login-page {
        background-position: 68% center
    }

    .hbgmc-login-shade {
        background: #fffaf2db
    }

    .hbgmc-login-layout {
        display: block
    }

    .hbgmc-login-left {
        min-height: 100vh;
        padding: 24px 16px 30px
    }

    .hbgmc-login-brand strong {
        font-size: 31px
    }

    .hbgmc-login-brand small {
        font-size: 9px
    }

    .hbgmc-login-page .hbgmc-login-form {
        margin-top: 24px;
        padding: 30px 24px 24px;
        border-radius: 20px
    }

    .hbgmc-login-heading h1 {
        font-size: 32px !important
    }

    .hbgmc-login-heading p {
        font-size: 15px
    }

    .hbgmc-login-promise {
        display: none
    }
}

@media(max-width:420px) {
    .hbgmc-login-left {
        padding-left: 10px;
        padding-right: 10px
    }

    .hbgmc-login-page .hbgmc-login-form {
        padding: 26px 18px 22px
    }

    .hbgmc-login-input {
        height: 56px;
        padding: 0 14px
    }

    .hbgmc-login-page .hbgmc-login-input input {
        height: 53px !important
    }

    .hbgmc-login-options {
        font-size: 13px
    }

    .hbgmc-login-submit {
        height: 56px;
        font-size: 19px
    }
}

/* Login proportion refinements */
@media(min-width:781px) {
    .hbgmc-login-layout {
        grid-template-columns: minmax(500px, 48%) 1fr
    }

    .hbgmc-login-left {
        justify-content: flex-start;
        padding: 30px clamp(32px, 5vw, 84px) 34px
    }

    .hbgmc-login-brand {
        flex: 0 0 auto
    }

    .hbgmc-login-flower {
        height: 37px;
        font-size: 42px
    }

    .hbgmc-login-brand strong {
        font-size: 34px;
        letter-spacing: .5px
    }

    .hbgmc-login-brand small {
        font-size: 10px;
        letter-spacing: 3.5px
    }

    .hbgmc-login-page .hbgmc-login-form {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        width: min(100%, 620px);
        margin: 25px auto 0;
        padding: 34px clamp(34px, 4vw, 54px) 27px;
        border-radius: 22px
    }

    .hbgmc-login-heading h1 {
        white-space: nowrap;
        font-size: clamp(32px, 2.7vw, 42px) !important;
        letter-spacing: -.5px
    }

    .hbgmc-login-heading h2 {
        margin-top: 5px !important;
        font-size: clamp(20px, 1.8vw, 26px) !important
    }

    .hbgmc-login-heading p {
        margin-bottom: 23px !important;
        font-size: 15px;
        line-height: 1.45
    }

    .hbgmc-login-field {
        margin: 0 0 15px
    }

    .hbgmc-login-field>label {
        margin: 0 0 6px;
        font-size: 14px
    }

    .hbgmc-login-input {
        height: 54px;
        padding: 0 16px;
        border-radius: 9px
    }

    .hbgmc-login-page .hbgmc-login-input input {
        height: 51px !important;
        font-size: 14px !important
    }

    .hbgmc-login-input>span {
        font-size: 20px
    }

    .hbgmc-login-options {
        margin: 1px 0 17px;
        font-size: 13px
    }

    .hbgmc-remember span {
        width: 21px;
        height: 21px
    }

    .hbgmc-login-submit {
        height: 55px;
        font-size: 19px
    }

    .hbgmc-login-divider {
        height: 36px;
        font-size: 13px
    }

    .hbgmc-register-link {
        font-size: 13px
    }

    .hbgmc-login-page .hbgmc-message {
        min-height: 16px;
        margin-top: 6px;
        font-size: 13px
    }

    .hbgmc-login-promise {
        margin-bottom: 30px;
        width: min(84%, 580px)
    }

    .hbgmc-login-promise h2 {
        font-size: 26px !important
    }

    .hbgmc-login-promise ul {
        margin-top: 17px !important;
        font-size: 13px
    }

    .hbgmc-login-promise li span {
        font-size: 27px
    }
}

@media(min-width:781px) and (max-height:760px) {
    .hbgmc-login-left {
        padding-top: 18px
    }

    .hbgmc-login-flower {
        height: 29px;
        font-size: 34px
    }

    .hbgmc-login-brand strong {
        font-size: 28px
    }

    .hbgmc-login-page .hbgmc-login-form {
        margin-top: 15px;
        padding-top: 25px;
        padding-bottom: 18px
    }

    .hbgmc-login-heading h1 {
        font-size: 31px !important
    }

    .hbgmc-login-heading h2 {
        font-size: 20px !important
    }

    .hbgmc-login-heading p {
        margin-bottom: 17px !important;
        font-size: 13px
    }

    .hbgmc-login-input {
        height: 48px
    }

    .hbgmc-login-page .hbgmc-login-input input {
        height: 45px !important
    }

    .hbgmc-login-submit {
        height: 49px
    }

    .hbgmc-login-promise {
        margin-bottom: 18px
    }
}

@media(min-width:781px) and (max-width:1040px) {
    .hbgmc-login-layout {
        grid-template-columns: minmax(470px, 56%) 1fr
    }

    .hbgmc-login-left {
        padding-left: 25px;
        padding-right: 25px
    }

    .hbgmc-login-page .hbgmc-login-form {
        padding-left: 38px;
        padding-right: 38px
    }

    .hbgmc-login-heading h1 {
        font-size: 34px !important
    }

    .hbgmc-login-promise {
        width: 94%
    }

    .hbgmc-login-promise h2 {
        font-size: 21px !important
    }
}

@media(max-width:780px) {
    .hbgmc-login-left {
        justify-content: flex-start
    }

    .hbgmc-login-page .hbgmc-login-form {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-width: 560px
    }

    .hbgmc-login-heading h1 {
        line-height: 1.15 !important
    }

    .hbgmc-login-field {
        margin-bottom: 14px
    }
}

/* Compact username/password-only login */
.hbgmc-field-error {
    display: block;
    margin-top: 6px;
    color: #c62828;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35
}

.hbgmc-form [aria-invalid="true"] {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 1px #c6282826 !important
}

.hbgmc-login-page {
    width: min(calc(100% - 32px), 1100px);
    min-height: 620px;
    margin: 24px auto;
    border-radius: 22px;
    box-shadow: 0 18px 55px #08295724
}

.hbgmc-login-layout {
    min-height: 620px;
    grid-template-columns: minmax(430px, 46%) 1fr
}

.hbgmc-login-left {
    padding: 22px clamp(24px, 4vw, 52px) 26px
}

.hbgmc-login-page .hbgmc-login-form {
    width: min(100%, 460px);
    margin-top: 18px;
    padding: 26px 32px 22px;
    border-radius: 18px
}

.hbgmc-login-heading h1 {
    font-size: 34px !important
}

.hbgmc-login-heading h2 {
    font-size: 21px !important
}

.hbgmc-login-heading p {
    margin-bottom: 18px !important;
    font-size: 14px
}

.hbgmc-login-options {
    justify-content: flex-start;
    margin-bottom: 15px
}

.hbgmc-login-submit {
    height: 51px;
    font-size: 18px
}

.hbgmc-login-divider {
    height: 32px
}

.hbgmc-login-promise {
    margin-bottom: 24px
}

@media(max-width:780px) {
    .hbgmc-login-page {
        width: calc(100% - 24px);
        min-height: 0;
        margin: 14px auto;
        border-radius: 17px
    }

    .hbgmc-login-layout {
        min-height: 0
    }

    .hbgmc-login-left {
        min-height: 0;
        padding: 20px 14px 24px
    }

    .hbgmc-login-page .hbgmc-login-form {
        max-width: 440px;
        margin-top: 18px;
        padding: 24px 20px 20px
    }

    .hbgmc-login-heading h1 {
        font-size: 29px !important
    }

    .hbgmc-login-heading h2 {
        font-size: 19px !important
    }
}

/* Unified premium membership auth screens */
.hbgmc-login-page,
.hbgmc-auth-page {
    --hbg-navy: #0b356b;
    --hbg-gold: #c99636;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: #fffaf2 url('../images/login-hotel-lobby.webp') center/cover no-repeat;
    box-shadow: none;
    color: var(--hbg-navy);
    font-family: "Barlow", sans-serif
}

.hbgmc-login-shade {
    background: linear-gradient(90deg, #fffaf2f5 0%, #fffaf2e8 43%, transparent 62%), linear-gradient(0deg, #041a3ab5 0%, transparent 43%)
}

.hbgmc-login-layout,
.hbgmc-auth-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 46% 54%
}

.hbgmc-login-left,
.hbgmc-auth-left {
    padding: 26px 34px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent
}

.hbgmc-login-brand,
.hbgmc-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--hbg-navy) !important;
    text-decoration: none !important;
    font-family: "Barlow", sans-serif
}

.hbgmc-auth-brand img {
    display: block;
    width: min(100%, 280px);
    height: auto;
    max-height: 76px;
    object-fit: contain
}

.hbgmc-auth-brand>span {
    height: 35px;
    color: var(--hbg-gold);
    font-size: 40px;
    line-height: .8
}

.hbgmc-auth-brand strong {
    font-size: 31px;
    line-height: 1.15;
    letter-spacing: 1px
}

.hbgmc-auth-brand small {
    color: #956924;
    font: 9px "Barlow", sans-serif;
    letter-spacing: 3px
}

.hbgmc-login-page .hbgmc-login-form,
.hbgmc-auth-page .hbgmc-register-form {
    width: min(100%, 480px);
    max-width: none;
    margin: 18px auto 0;
    padding: 26px 34px 24px;
    border: 1px solid #fff;
    border-radius: 20px;
    background: #fffdf9e8;
    box-shadow: 0 14px 42px #3d260b12
}

.hbgmc-login-heading h1,
.hbgmc-auth-heading h1 {
    margin: 0 !important;
    color: var(--hbg-navy) !important;
    font: 700 32px/1.15 "Barlow", sans-serif !important
}

.hbgmc-login-heading h2,
.hbgmc-auth-heading h2 {
    margin: 5px 0 7px !important;
    color: #956923 !important;
    font: 400 20px/1.25 "Barlow", sans-serif !important
}

.hbgmc-login-heading p,
.hbgmc-auth-heading p {
    margin: 0 0 20px !important;
    color: #74777c;
    font-size: 13px;
    line-height: 1.5
}

.hbgmc-auth-field {
    margin-bottom: 13px
}

.hbgmc-auth-field>label {
    display: block;
    margin-bottom: 6px;
    color: #11376b;
    font-size: 13px;
    font-weight: 700
}

.hbgmc-auth-input {
    height: 49px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #d2d9e2;
    border-radius: 9px;
    background: #fff;
    transition: .2s
}

.hbgmc-auth-input:focus-within {
    border-color: #174d8a;
    box-shadow: 0 3px 10px #0b438c18
}

.hbgmc-auth-input>span {
    width: 20px;
    color: #9299a4;
    text-align: center
}

.hbgmc-auth-page .hbgmc-auth-input input {
    height: 46px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #173960 !important;
    font-size: 13px !important
}

.hbgmc-auth-input input::placeholder {
    color: #a0a4aa
}

.hbgmc-auth-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
    margin: 2px 0 15px;
    color: #334e71;
    font-size: 12px;
    font-weight: 400 !important;
    cursor: pointer
}

.hbgmc-auth-consent input {
    position: absolute;
    opacity: 0
}

.hbgmc-auth-consent span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid #bdc7d4;
    border-radius: 4px;
    background: #fff;
    color: transparent
}

.hbgmc-auth-consent input:checked+span {
    border-color: var(--hbg-navy);
    background: var(--hbg-navy);
    color: #fff
}

.hbgmc-auth-submit {
    width: 100%;
    height: 50px;
    padding: 0 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid var(--hbg-gold) !important;
    border-radius: 10px !important;
    background: linear-gradient(110deg, #0a3266, #124985) !important;
    color: #fff !important;
    font: 700 17px "Barlow", sans-serif;
    cursor: pointer
}

.hbgmc-auth-submit b,
.hbgmc-auth-submit .hbgmc-submit-arrow {
    color: #ddb14e;
    font: 23px "Barlow", sans-serif
}

.hbgmc-auth-divider {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8b8b89;
    font-size: 12px
}

.hbgmc-auth-divider:before,
.hbgmc-auth-divider:after {
    content: "";
    height: 1px;
    flex: 1;
    background: #d9d9d4
}

.hbgmc-auth-switch {
    margin: 0 !important;
    text-align: center;
    color: #737373;
    font-size: 12px
}

.hbgmc-auth-switch a {
    margin-left: 7px;
    color: #a66f19 !important;
    font-weight: 700;
    text-decoration: underline !important
}

.hbgmc-auth-promise {
    align-self: end;
    margin: 0 auto 34px;
    width: min(86%, 610px);
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 10px #00132d
}

.hbgmc-auth-promise>div {
    padding-bottom: 17px;
    border-bottom: 1px solid #d8a94d88
}

.hbgmc-auth-promise h2 {
    margin: 0 !important;
    color: #fff !important;
    font: 27px "Barlow", sans-serif !important
}

.hbgmc-auth-promise h2::first-letter {
    color: #e3b95c
}

.hbgmc-auth-promise p {
    margin: 5px 0 0 !important;
    color: #f2d28d;
    font-size: 10px;
    letter-spacing: 4px
}

.hbgmc-auth-promise ul {
    margin: 18px 0 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none !important;
    font: 12px/1.45 "Barlow", sans-serif
}

.hbgmc-auth-promise li {
    margin: 0 !important
}

.hbgmc-auth-promise li span {
    display: block;
    margin-bottom: 4px;
    color: #e8ba55;
    font: 28px "Barlow", sans-serif
}

.hbgmc-register-page {
    min-height: 100vh
}

.hbgmc-register-page .hbgmc-auth-layout {
    min-height: 100vh
}

.hbgmc-register-form {
    width: min(100%, 540px) !important;
    padding: 23px 28px 20px !important
}

.hbgmc-register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px
}

.hbgmc-register-password {
    grid-column: 1/-1
}

.hbgmc-register-page .hbgmc-message {
    min-height: 17px;
    margin-top: 6px;
    text-align: center;
    font-size: 12px
}

@media(max-width:900px) {

    .hbgmc-login-layout,
    .hbgmc-auth-layout {
        grid-template-columns: 55% 45%
    }

    .hbgmc-login-left,
    .hbgmc-auth-left {
        padding-left: 22px;
        padding-right: 22px
    }

    .hbgmc-login-promise,
    .hbgmc-auth-promise {
        width: 94%
    }

    .hbgmc-login-promise h2,
    .hbgmc-auth-promise h2 {
        font-size: 21px !important
    }
}

@media(max-width:700px) {

    .hbgmc-login-page,
    .hbgmc-auth-page {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
        background-position: center
    }

    .hbgmc-login-layout,
    .hbgmc-auth-layout {
        display: block;
        min-height: 100vh
    }

    .hbgmc-login-left,
    .hbgmc-auth-left {
        min-height: 100vh;
        padding: 21px 13px 25px
    }

    .hbgmc-login-page .hbgmc-login-form,
    .hbgmc-auth-page .hbgmc-register-form {
        width: min(100%, 500px) !important;
        margin-top: 17px;
        padding: 24px 19px 20px !important
    }

    .hbgmc-login-promise,
    .hbgmc-auth-promise {
        display: none
    }

    .hbgmc-register-grid {
        grid-template-columns: 1fr
    }

    .hbgmc-register-password {
        grid-column: auto
    }

    .hbgmc-login-heading h1,
    .hbgmc-auth-heading h1 {
        font-size: 28px !important
    }
}

.hbgmc-login-page,
.hbgmc-auth-page {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    min-height: 100vh;
    min-height: 100dvh
}

/* A code block around the shortcode must not leave a white strip. */
body:has(.hbgmc-login-page),
body:has(.hbgmc-auth-page) {
    margin: 0;
    background: #041428
}

body:has(.hbgmc-login-page) .site-main,
body:has(.hbgmc-auth-page) .site-main,
body:has(.hbgmc-login-page) .site-main>pre,
body:has(.hbgmc-auth-page) .site-main>pre,
body:has(.hbgmc-login-page) .site-main>pre>code,
body:has(.hbgmc-auth-page) .site-main>pre>code {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    background: transparent;
    white-space: normal;
    min-height: 100vh;
    min-height: 100dvh
}

/* Keep the login form compact even when the active theme stretches form children. */
.hbgmc-login-page .hbgmc-login-left {
    justify-content: flex-start !important
}

.hbgmc-login-page form.hbgmc-login-form {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    align-self: auto !important;
    justify-content: flex-start !important;
    gap: 0 !important
}

.hbgmc-login-page form.hbgmc-login-form.hbgmc-hidden,
.hbgmc-login-page form.hbgmc-login-form[hidden] {
    display: none !important
}

.hbgmc-login-page form.hbgmc-login-form>* {
    flex: none !important
}

.hbgmc-login-page .hbgmc-login-heading {
    margin: 0 0 22px !important;
    padding: 0 !important
}

.hbgmc-login-page .hbgmc-login-heading p {
    margin-bottom: 0 !important
}

.hbgmc-login-page .hbgmc-login-field {
    display: block !important;
    min-height: 0 !important;
    margin: 0 0 18px !important;
    padding: 0 !important
}

.hbgmc-login-page .hbgmc-login-field+.hbgmc-login-field {
    margin-top: 0 !important
}

.hbgmc-login-page .hbgmc-login-field label {
    display: block !important;
    margin: 0 0 8px !important
}

.hbgmc-login-page .hbgmc-login-input {
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important
}

.hbgmc-login-page .hbgmc-login-options {
    min-height: 22px !important;
    margin: 0 0 18px !important;
    padding: 0 !important
}

.hbgmc-login-page .hbgmc-input-icon {
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #9298a0 !important;
    flex: 0 0 20px !important
}

.hbgmc-login-page .hbgmc-input-icon svg,
.hbgmc-login-page .hbgmc-password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hbgmc-login-page .hbgmc-password-toggle {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #9298a0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important
}

.hbgmc-login-page .hbgmc-password-toggle:hover,
.hbgmc-login-page .hbgmc-password-toggle:focus {
    color: var(--hbg-navy) !important;
    background: transparent !important
}

.hbgmc-login-page .hbgmc-eye-closed {
    display: none !important
}

.hbgmc-login-page .hbgmc-password-toggle.is-visible .hbgmc-eye-open {
    display: none !important
}

.hbgmc-login-page .hbgmc-password-toggle.is-visible .hbgmc-eye-closed {
    display: block !important
}

/* Final layout reset: some WordPress themes assign flex:1/height:100% to form rows. */
.hbgmc-login-page form.hbgmc-login-form {
    display: flex !important;
    flex-flow: column nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    row-gap: 16px !important
}

.hbgmc-login-page form.hbgmc-login-form>.hbgmc-login-heading,
.hbgmc-login-page form.hbgmc-login-form>.hbgmc-login-field,
.hbgmc-login-page form.hbgmc-login-form>.hbgmc-login-options,
.hbgmc-login-page form.hbgmc-login-form>.hbgmc-login-divider,
.hbgmc-login-page form.hbgmc-login-form>.hbgmc-register-link,
.hbgmc-login-page form.hbgmc-login-form>.hbgmc-message {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    inset: auto !important;
    margin: 0 !important;
    transform: none !important
}

/* Keep submit height fixed in loading state (theme reset used height:auto). */
.hbgmc-login-page form.hbgmc-login-form>.hbgmc-login-submit {
    position: static !important;
    width: 100% !important;
    height: 51px !important;
    min-height: 51px !important;
    max-height: 51px !important;
    flex: 0 0 51px !important;
    inset: auto !important;
    margin: 0 !important;
    transform: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important
}

.hbgmc-register-page form.hbgmc-register-form>.hbgmc-auth-submit,
.hbgmc-auth-page form.hbgmc-register-form>.hbgmc-auth-submit {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    flex: 0 0 50px !important;
    overflow: hidden !important;
    box-sizing: border-box !important
}

.hbgmc-login-page form.hbgmc-login-form>.hbgmc-login-heading {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important
}

.hbgmc-login-page form.hbgmc-login-form>.hbgmc-login-field {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 0 !important
}

.hbgmc-login-page form.hbgmc-login-form>.hbgmc-login-field>label {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important
}

.hbgmc-login-page form.hbgmc-login-form>.hbgmc-login-field>.hbgmc-login-input {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    flex: 0 0 52px !important
}

.hbgmc-login-page form.hbgmc-login-form>.hbgmc-login-options {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important
}

.hbgmc-login-page form.hbgmc-login-form>.hbgmc-login-divider {
    min-height: 32px !important
}

.hbgmc-login-page form.hbgmc-login-form>.hbgmc-message:empty {
    display: none !important
}

/* Consistent registration icons, independent from theme icon fonts. */
.hbgmc-register-page .hbgmc-auth-icon {
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 20px !important;
    color: #9299a4 !important
}

.hbgmc-register-page .hbgmc-auth-icon svg,
.hbgmc-register-page .hbgmc-password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hbgmc-register-page .hbgmc-password-toggle {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #9299a4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    box-shadow: none !important
}

.hbgmc-register-page .hbgmc-password-toggle:hover,
.hbgmc-register-page .hbgmc-password-toggle:focus {
    color: var(--hbg-navy) !important;
    background: transparent !important
}

.hbgmc-register-page .hbgmc-eye-closed,
.hbgmc-register-page .hbgmc-password-toggle.is-visible .hbgmc-eye-open {
    display: none !important
}

.hbgmc-register-page .hbgmc-password-toggle.is-visible .hbgmc-eye-closed {
    display: block !important
}

/* Compact success dialog protected from broad WordPress theme rules. */
html .hbgmc-success-modal {
    box-sizing: border-box !important;
    overflow: auto !important;
    padding: 24px !important
}

html .hbgmc-success-card {
    box-sizing: border-box !important;
    width: calc(100vw - 48px) !important;
    max-width: 500px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 48px) !important;
    margin: auto !important;
    padding: 34px 38px 28px !important;
    overflow: auto !important;
    border-radius: 22px !important;
    display: block !important
}

html .hbgmc-success-card:before {
    inset: 7px !important;
    border-radius: 16px !important
}

html .hbgmc-success-icon {
    width: 68px !important;
    height: 68px !important;
    min-height: 68px !important;
    margin: 0 auto 16px !important
}

html .hbgmc-success-icon span {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important
}

html .hbgmc-success-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round
}

html .hbgmc-success-eyebrow {
    margin: 0 0 7px !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
    letter-spacing: 2.6px !important
}

html .hbgmc-success-card h2 {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 31px !important;
    line-height: 1.2 !important
}

html .hbgmc-success-card>p:not(.hbgmc-success-eyebrow):not(.hbgmc-success-countdown) {
    max-width: 400px !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important
}

html .hbgmc-success-note {
    min-height: 0 !important;
    margin: 0 0 18px !important;
    padding: 11px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1.45 !important
}

html .hbgmc-success-note-icon {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    flex: 0 0 15px !important
}

html .hbgmc-success-note-icon svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: currentColor
}

html .hbgmc-success-login {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border-radius: 9px !important;
    font-size: 16px !important;
    line-height: 1 !important
}

html .hbgmc-success-countdown {
    min-height: 0 !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.4 !important
}

@media(max-width:560px) {
    html .hbgmc-success-modal {
        padding: 14px !important
    }

    html .hbgmc-success-card {
        width: calc(100vw - 28px) !important;
        max-height: calc(100vh - 28px) !important;
        padding: 28px 20px 23px !important;
        border-radius: 18px !important
    }

    html .hbgmc-success-card h2 {
        font-size: 27px !important
    }

    html .hbgmc-success-note {
        align-items: flex-start !important
    }
}

/* Compact registration layout. Some WordPress themes stretch form/grid
   children to fill the viewport, creating large gaps between labels/inputs. */
.hbgmc-register-page form.hbgmc-register-form {
    display: flex !important;
    flex-flow: column nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 4px !important;
    height: auto !important;
    min-height: 0 !important
}

.hbgmc-register-page form.hbgmc-register-form>.hbgmc-auth-heading {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    margin-bottom: 30px !important;
}

html body .hbgmc-register-page .hbgmc-auth-heading h1 {
    display: block !important;
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.08 !important;
    transform: none !important
}

html body .hbgmc-register-page .hbgmc-auth-heading h2 {
    display: block !important;
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 4px 0 3px !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    transform: none !important
}

html body .hbgmc-register-page .hbgmc-auth-heading p {
    display: block !important;
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    transform: none !important
}

.hbgmc-register-page .hbgmc-register-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: max-content !important;
    align-items: start !important;
    align-content: start !important;
    gap: 4px 12px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important
}

html body .hbgmc-register-page .hbgmc-register-grid>.hbgmc-auth-field {
    display: flex !important;
    flex-flow: column nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    align-self: start !important;
    gap: 3px !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important
}

html body .hbgmc-register-page .hbgmc-register-grid>.hbgmc-auth-field>label {
    display: block !important;
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    line-height: 1.25 !important
}

html body .hbgmc-register-page .hbgmc-register-grid>.hbgmc-auth-field>.hbgmc-auth-input {
    position: static !important;
    width: 100% !important;
    height: 49px !important;
    min-height: 49px !important;
    max-height: 49px !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    flex: 0 0 49px !important;
    transform: none !important;
    box-sizing: border-box !important
}

.hbgmc-register-page .hbgmc-auth-consent {
    min-height: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important
}

.hbgmc-register-page form.hbgmc-register-form>.hbgmc-message:empty {
    display: none !important
}

@media(max-width:900px) {
    .hbgmc-register-page .hbgmc-register-grid {
        grid-template-columns: 1fr !important
    }
}

/* ===== Quick Concept shortcode ===== */
.hbgmc-quick-concept {
    --hbgqc-navy: #0b2c5a;
    --hbgqc-gold: #c6a15b;
    --hbgqc-ink: #1f2937;
    font-family: inherit;
    width: 100%;
    max-width: 980px;
    margin: 1.5rem auto;
    box-sizing: border-box;
}

.hbgmc-quick-concept.hbgmc-qc-width-container {
    width: 100%;
    max-width: none;
}

.hbgmc-quick-concept.hbgmc-qc-width-custom {
    margin-left: auto;
    margin-right: auto;
}

.hbgmc-qc-card {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 560px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e8eef6;
    box-shadow: 0 18px 40px rgba(11, 44, 90, .08);
}

.hbgmc-qc-visual {
    position: relative;
    min-height: 560px;
    height: 100%;
    align-self: stretch;
    background:
        linear-gradient(160deg, rgba(11, 44, 90, .35), rgba(11, 44, 90, .12)),
        #dbe5f2;
}

.hbgmc-qc-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hbgmc-qc-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 560px;
    padding: 1.6rem 1.5rem 1.4rem;
}

.hbgmc-qc-step {
    width: 100%;
}

.hbgmc-qc-heading h2 {
    margin: 0 0 .35rem;
    color: var(--hbgqc-navy);
    font-size: var(--hbgmc-qc-title-size, 1.65rem);
    font-weight: 800;
    letter-spacing: .01em;
}

.hbgmc-qc-heading p {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: var(--hbgmc-qc-text-size, 1rem);
    line-height: 1.45;
}

.hbgmc-qc-eyebrow {
    margin: 0 0 .35rem !important;
    color: var(--hbgqc-gold) !important;
    font-size: calc(var(--hbgmc-qc-text-size, 1rem) * .8);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hbgmc-qc-form {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.hbgmc-qc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem .9rem;
}

.hbgmc-qc-grid-stack {
    grid-template-columns: 1fr;
}

.hbgmc-qc-password {
    grid-column: 1 / -1;
}

.hbgmc-quick-concept .hbgmc-auth-field label {
    color: var(--hbgqc-navy);
    font-size: .9rem;
}

.hbgmc-quick-concept .hbgmc-auth-input {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: .35rem;
    padding: 0 .75rem;
    min-height: 46px;
    border: 1px solid #d7e0ec;
    border-radius: 10px;
    background: #fff;
}

.hbgmc-quick-concept .hbgmc-auth-input input {
    margin: 0;
    padding: .65rem 0;
    border: 0;
    outline: none;
    background: transparent;
    width: 100%;
}

.hbgmc-quick-concept .hbgmc-auth-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex: 0 0 auto;
}

.hbgmc-quick-concept .hbgmc-auth-icon svg,
.hbgmc-quick-concept .hbgmc-password-toggle svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hbgmc-quick-concept .hbgmc-password-toggle {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 40px !important;
    box-shadow: none !important;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.hbgmc-quick-concept .hbgmc-password-toggle:hover,
.hbgmc-quick-concept .hbgmc-password-toggle:focus {
    color: var(--hbgqc-navy) !important;
    background: transparent !important;
}

.hbgmc-quick-concept .hbgmc-eye-closed,
.hbgmc-quick-concept .hbgmc-password-toggle.is-visible .hbgmc-eye-open {
    display: none !important;
}

.hbgmc-quick-concept .hbgmc-password-toggle.is-visible .hbgmc-eye-closed {
    display: block !important;
}

.hbgmc-quick-concept .hbgmc-auth-consent {
    position: relative;
    display: flex !important;
    align-items: flex-start;
    gap: .55rem;
    margin: 1rem 0 .9rem;
    color: #475569;
    font-size: .92rem;
    font-weight: 400 !important;
    cursor: pointer;
    z-index: 1;
}

.hbgmc-quick-concept .hbgmc-auth-consent input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.hbgmc-quick-concept .hbgmc-auth-consent span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid #bdc7d4;
    border-radius: 4px;
    background: #fff;
    color: transparent;
    line-height: 1;
    font-size: 12px;
}

.hbgmc-quick-concept .hbgmc-auth-consent input:checked+span {
    border-color: var(--hbgqc-navy);
    background: var(--hbgqc-navy);
    color: #fff;
}

.hbgmc-quick-concept .hbgmc-auth-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b2c5a, #163e78);
    color: #fff;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hbgmc-qc-switch,
.hbgmc-qc-fallback {
    margin: .75rem 0 0;
    color: #64748b;
    font-size: .92rem;
}

.hbgmc-qc-resend {
    display: inline-block;
    margin-top: .75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hbgqc-navy);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.hbgmc-qc-credit-actions {
    margin-bottom: .75rem;
}

.hbgmc-qc-ai .hbg-ai-widget {
    margin: 0;
}

.hbgmc-qc-actions {
    display: grid;
    gap: .75rem;
    margin-top: .25rem;
}

.hbgmc-qc-actions-inline {
    grid-template-columns: 1fr 1fr;
    margin-top: .85rem;
}

.hbgmc-qc-ai .hbg-ai-open,
.hbgmc-qc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    min-height: 52px;
    padding: .85rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #d8b56a, #b8893d);
    color: #111827;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(184, 137, 61, .28);
}

.hbgmc-qc-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    min-height: 48px;
    padding: .75rem 1.1rem;
    border: 1.5px solid #0b2c5a;
    border-radius: 999px;
    background: #fff;
    color: #0b2c5a;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.hbgmc-qc-login:hover,
.hbgmc-qc-login:focus-visible {
    background: #f4f7fb;
}

.hbgmc-qc-ai .hbg-ai-modal {
    z-index: 100050;
}

@media (max-width: 860px) {
    .hbgmc-qc-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hbgmc-qc-visual {
        min-height: 240px;
        height: 240px;
    }

    .hbgmc-qc-body {
        min-height: 0;
        justify-content: flex-start;
    }

    .hbgmc-qc-grid {
        grid-template-columns: 1fr;
    }

    .hbgmc-qc-actions-inline {
        grid-template-columns: 1fr;
    }
}