:root {
    --pmb-ink: #15323c;
    --pmb-ink-soft: #647982;
    --pmb-teal: #0f7f87;
    --pmb-teal-deep: #0d4c59;
    --pmb-teal-dark: #092f3a;
    --pmb-gold: #d4a45e;
    --pmb-surface: #ffffff;
    --pmb-surface-soft: #f3f8f9;
    --pmb-line: rgba(25, 98, 110, 0.14);
    --pmb-shell: min(1680px, calc(100% - 48px));
    --pmb-shadow: 0 24px 68px rgba(12, 53, 63, 0.12);
}

body.pmb-scale-90 {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(23, 151, 158, 0.09), transparent 25rem),
        radial-gradient(circle at 90% 12%, rgba(212, 164, 94, 0.1), transparent 24rem),
        #f4f8f9;
    color: var(--pmb-ink);
}

/* One centered frame is shared by the navbar, public hero, and authentication pages. */
.pmb-navbar {
    top: 0;
    z-index: 1040;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(244, 248, 249, 0.88) !important;
    box-shadow: none !important;
    backdrop-filter: blur(20px);
}

.pmb-navbar-shell {
    width: var(--pmb-shell);
    max-width: 1680px !important;
    min-height: 76px;
    margin-inline: auto;
    padding: 8px 14px 8px 18px !important;
    border: 1px solid rgba(25, 98, 110, 0.13);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 46px rgba(12, 53, 63, 0.08);
}

.pmb-brand {
    min-width: 292px !important;
    gap: 12px;
    margin-right: 22px;
}

.pmb-brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pmb-brand-mark img {
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    object-fit: contain;
}

.pmb-brand-copy {
    line-height: 1.08;
}

.pmb-brand-copy small {
    margin-bottom: 4px;
    color: var(--pmb-teal) !important;
    font-size: 0.57rem !important;
    font-style: normal;
    font-weight: 800 !important;
    letter-spacing: 0.14em;
}

.pmb-brand-copy span {
    color: var(--pmb-ink);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pmb-brand-copy em {
    margin-top: 4px;
    color: #7c9097;
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 700;
}

.pmb-nav-list {
    align-items: center;
    gap: 2px !important;
}

.pmb-navbar .nav-link {
    padding: 0.68rem 0.72rem !important;
    border-radius: 12px;
    color: #52676f !important;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.pmb-navbar .nav-link::after {
    display: none !important;
}

.pmb-navbar .nav-link:hover,
.pmb-navbar .nav-link:focus,
.pmb-navbar .nav-link.active {
    background: #edf7f7;
    color: var(--pmb-teal-deep) !important;
}

.btn-back-pmb {
    min-height: 44px;
    padding: 0.72rem 1rem !important;
    border-color: rgba(25, 98, 110, 0.16) !important;
    background: linear-gradient(135deg, #f8fbfb, #edf6f7) !important;
    color: var(--pmb-teal-deep) !important;
    box-shadow: none !important;
    white-space: nowrap;
}

.btn-back-pmb i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(15, 127, 135, 0.1);
}

.pmb-login-nav {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(135deg, var(--pmb-teal-deep), var(--pmb-teal));
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(15, 127, 135, 0.2);
}

.pmb-login-nav:hover,
.pmb-login-nav:focus {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 127, 135, 0.25);
}

.pmb-navbar-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--pmb-line) !important;
    border-radius: 15px;
    background: #f0f7f8;
    box-shadow: none !important;
}

.pmb-offcanvas {
    width: min(340px, 88vw) !important;
    border: 0;
    background:
        radial-gradient(circle at top right, rgba(212, 164, 94, 0.2), transparent 14rem),
        linear-gradient(160deg, #0b3540, #0f6670) !important;
}

.pmb-offcanvas-header {
    min-height: 112px;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent !important;
}

.pmb-offcanvas-kicker {
    display: block;
    margin-bottom: 0.3rem;
    color: #9ddfe0;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.pmb-offcanvas .offcanvas-body {
    padding: 0.75rem !important;
}

.pmb-offcanvas .navbar-nav {
    padding: 0 !important;
}

.pmb-offcanvas .nav-item {
    border: 0 !important;
}

.pmb-offcanvas .nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.35rem;
    padding: 0.9rem 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 0.95rem !important;
}

.pmb-offcanvas .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

/* Public landing page: remove the old 90% zoom and keep both sides identical. */
.hero-slider-wrap,
.identity-strip,
.browser-strip,
.area-wrapper > .container {
    width: var(--pmb-shell);
    max-width: 1680px !important;
    margin-inline: auto;
}

.hero-slider-wrap,
.identity-strip,
.browser-strip {
    padding-inline: 0 !important;
}

/* Shared premium authentication system. */
.pmb-auth-page {
    width: var(--pmb-shell);
    max-width: 1680px;
    margin: 8px auto 30px;
}

.pmb-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.72fr);
    gap: 18px;
    min-height: calc(100vh - 128px);
    padding: 18px;
    border: 1px solid rgba(25, 98, 110, 0.12);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: var(--pmb-shadow);
    backdrop-filter: blur(18px);
}

.pmb-auth-visual {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: stretch;
    min-height: 680px;
    overflow: hidden;
    border-radius: 26px;
    background-image: var(--auth-image);
    background-position: center;
    background-size: cover;
}

.pmb-auth-visual::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: inherit;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.pmb-auth-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 72% 15%, rgba(212, 164, 94, 0.34), transparent 20rem),
        linear-gradient(135deg, rgba(7, 35, 44, 0.68) 0%, rgba(8, 55, 65, 0.88) 56%, rgba(10, 42, 52, 0.96) 100%);
}

.pmb-auth-visual-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 820px;
    min-height: 100%;
    padding: clamp(2rem, 5vw, 5.25rem);
    color: #fff;
}

.pmb-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #d5efec;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.pmb-auth-visual h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 4vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.pmb-auth-visual-lead {
    max-width: 650px;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.75;
}

.pmb-auth-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 2rem;
}

.pmb-auth-benefit {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 68px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.86rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.pmb-auth-benefit i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    background: rgba(151, 229, 220, 0.15);
    color: #9ce2db;
    font-size: 1rem;
}

.pmb-auth-note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.15rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.76rem;
    font-weight: 600;
}

.pmb-auth-note i {
    color: #e9c88f;
}

.pmb-auth-form-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 4rem);
    border: 1px solid rgba(25, 98, 110, 0.08);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(15, 127, 135, 0.07), transparent 18rem),
        rgba(255, 255, 255, 0.98);
}

.pmb-auth-card {
    width: 100%;
    max-width: 500px;
}

.pmb-auth-heading {
    margin-bottom: 2rem;
    text-align: center;
}

.pmb-auth-logo {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin: 0 auto 1.15rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pmb-auth-logo img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.pmb-auth-kicker {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--pmb-teal);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.pmb-auth-heading h2 {
    margin: 0;
    color: var(--pmb-ink);
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.pmb-auth-heading p {
    margin: 0.65rem 0 0;
    color: var(--pmb-ink-soft);
    font-size: 0.91rem;
    line-height: 1.65;
}

.pmb-field {
    margin-bottom: 1rem;
}

.pmb-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pmb-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.48rem;
}

.pmb-field label,
.pmb-field-label {
    display: block;
    margin: 0 0 0.48rem;
    color: #38505a;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.pmb-field-head label {
    margin: 0;
}

.pmb-field-head a {
    color: var(--pmb-teal);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.pmb-input {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    border: 1px solid rgba(25, 98, 110, 0.14);
    border-radius: 16px;
    background: #f5f9fa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pmb-input:focus-within {
    border-color: rgba(15, 127, 135, 0.58);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 127, 135, 0.09);
}

.pmb-input > i,
.pmb-input-icon {
    display: grid;
    place-items: center;
    width: 48px;
    flex: 0 0 48px;
    color: #789099;
}

.pmb-input input,
.pmb-input select {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0.85rem 0.9rem 0.85rem 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--pmb-ink);
    font-size: 0.92rem;
    font-weight: 600;
}

.pmb-input input::placeholder {
    color: #91a4ab;
    font-weight: 500;
}

.pmb-input select {
    cursor: pointer;
}

.pmb-input-action {
    display: grid;
    place-items: center;
    width: 48px;
    height: 54px;
    flex: 0 0 48px;
    border: 0;
    background: transparent;
    color: #708890;
}

.pmb-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 56px;
    margin-top: 0.35rem;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pmb-teal-deep), #14929a);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    box-shadow: 0 18px 34px rgba(15, 127, 135, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pmb-submit:hover,
.pmb-submit:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(15, 127, 135, 0.28);
}

.pmb-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.pmb-auth-switch {
    margin: 1.25rem 0 0;
    color: #72858c;
    font-size: 0.82rem;
    text-align: center;
}

.pmb-auth-switch a {
    color: var(--pmb-teal-deep);
    font-weight: 800;
    text-decoration: none;
}

.pmb-route-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.78rem;
    border-radius: 999px;
    background: #eaf7f7;
    color: var(--pmb-teal-deep);
    font-size: 0.72rem;
    font-weight: 800;
}

.pmb-auth-rich-copy {
    max-height: none;
    margin-top: 1.35rem;
    padding-right: 0;
    overflow: visible;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.7;
}

.pmb-auth-rich-copy strong,
.pmb-auth-rich-copy b {
    color: #fff;
}

.pmb-requirements {
    display: grid;
    gap: 8px;
    margin-top: 1.25rem;
}

.pmb-requirement {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.065);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 650;
}

.pmb-requirement i {
    color: #a4e2dc;
}

.pmb-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(25, 98, 110, 0.12) !important;
    border-radius: 26px !important;
    box-shadow: var(--pmb-shadow) !important;
}

@media (max-width: 1320px) {
    .pmb-brand {
        min-width: 238px !important;
    }

    .pmb-brand-copy small {
        display: none;
    }

    .pmb-navbar .nav-link {
        padding-inline: 0.56rem !important;
        font-size: 0.82rem;
    }

    .pmb-auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(430px, 0.8fr);
    }
}

@media (max-width: 991.98px) {
    :root {
        --pmb-shell: min(820px, calc(100% - 24px));
    }

    .pmb-navbar {
        padding-top: 8px !important;
    }

    .pmb-navbar-shell {
        min-height: 68px;
        padding: 7px 9px 7px 12px !important;
        border-radius: 20px;
    }

    .pmb-brand {
        min-width: 0 !important;
        margin-right: 8px;
    }

    .pmb-brand-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .pmb-brand-mark img {
        width: 37px !important;
        height: 37px !important;
    }

    .pmb-brand-copy span {
        font-size: 0.9rem;
    }

    .pmb-auth-page {
        margin-top: 4px;
    }

    .pmb-auth-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 12px;
        border-radius: 28px;
    }

    .pmb-auth-visual {
        min-height: 360px;
        border-radius: 22px;
    }

    .pmb-auth-visual-content {
        padding: 2.25rem;
    }

    .pmb-auth-visual h1 {
        font-size: clamp(2.15rem, 8vw, 3.4rem);
    }

    .pmb-auth-form-pane {
        padding: 2.25rem;
        border-radius: 22px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --pmb-shell: calc(100% - 16px);
    }

    .pmb-navbar-shell {
        border-radius: 18px;
    }

    .pmb-brand-copy small,
    .pmb-brand-copy em {
        display: none;
    }

    .pmb-brand-copy span {
        max-width: 188px;
        overflow: hidden;
        font-size: 0.8rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pmb-auth-page {
        margin-bottom: 12px;
    }

    .pmb-auth-shell {
        gap: 10px;
        padding: 8px;
        border-radius: 23px;
    }

    .pmb-auth-visual {
        min-height: 270px;
        border-radius: 18px;
    }

    .pmb-auth-visual-content {
        padding: 1.45rem;
    }

    .pmb-auth-eyebrow {
        margin-bottom: 0.85rem;
        font-size: 0.6rem;
    }

    .pmb-auth-visual h1 {
        font-size: 2rem;
    }

    .pmb-auth-visual-lead {
        margin-top: 0.8rem;
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .pmb-auth-benefits,
    .pmb-requirements,
    .pmb-auth-rich-copy {
        display: none;
    }

    .pmb-auth-note {
        margin-top: 0.9rem;
        font-size: 0.68rem;
    }

    .pmb-auth-form-pane {
        padding: 1.45rem 1rem 1.3rem;
        border-radius: 18px;
    }

    .pmb-auth-heading {
        margin-bottom: 1.5rem;
    }

    .pmb-auth-logo {
        width: 72px;
        height: 72px;
        border-radius: 22px;
    }

    .pmb-auth-logo img {
        width: 56px;
        height: 56px;
    }

    .pmb-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .pmb-input input,
    .pmb-input select {
        font-size: 16px;
    }
}
