/* BAL tenant variables - keep this block first in the single custom stylesheet. */
:root {
  --bal-primary-color: #A49066;
  --bal-secondary-color: #2D2D2D;
  --bal-text-color: #1E1E1E;
  /* Figma page canvas — must match theme.json palette.canvas (Core injects that at runtime). */
  --bal-body-background: #f2f2f2;
  --pp-page-background: var(--bal-body-background);
  --pp-account-info-page-background: var(--bal-body-background);
  --pp-layout-main-background: var(--bal-body-background);
  --pp-profile-view-page-background: var(--bal-body-background);
  --pp-profile-edit-page-background: var(--bal-body-background);
  --pp-offers-page-background: var(--bal-body-background);
  --bal-error-color: #FF5858;
  --bal-warning-color: #E40023;
  --bal-success-color: #399C0A;
  --bal-input-background: #151515;
  --bal-input-border-color: #BABABA;
  --bal-card-background: #FEFEFE;
  --bal-card-border-color: #BABABA;
  --bal-control-radius: 10px;
  --bal-font-sans: "Inter", Helvetica, Arial, sans-serif;
  --pp-loading-accent: #EC0000;
  --pp-loading-track: rgba(236, 0, 0, 0.25);
  --pp-color-primary: var(--bal-primary-color);
  --pp-color-primary-hover: #8a7a56;
  --pp-color-secondary: var(--bal-secondary-color);
  --pp-color-text-default: var(--bal-text-color);
  --pp-color-canvas: var(--bal-body-background);
  --pp-font-sans: "Suisse Works", Arial, sans-serif;
  --pp-radius-control: var(--bal-control-radius);
  --bal-sidebar-mobile-background: #111111;
  --bal-sidebar-width: 300px;
  --bal-mobile-header-content-height: 124px;
  --bal-mobile-header-height: calc(var(--bal-mobile-header-content-height) + env(safe-area-inset-top, 0px));
  --pp-wowbook-toolbar-color: #000000;
  --pp-digital-mailer-border-color: transparent;
  --pp-digital-mailer-header-border-color: transparent;
  --pp-digital-mailer-header-background: #000;
  --pp-digital-mailer-header-shadow: none;
  --pp-digital-mailer-background: #fff;
  --pp-digital-mailer-body-background: #fff;
  --pp-mailer-selection-title-color: #0e0e0e;
  --pp-mailer-selection-accent: #ABB1BF;
  --pp-mailer-viewer-background: #e8e8e8;
  --pp-mailer-dialog-border: none;
  --pp-mailer-dialog-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  --pp-mailer-dialog-radius: 16px;
  --pp-white-label-details-button-color: var(--pp-portal-contrast-text-color, var(--pp-portal-primary-color, #A49066));
  --pp-sidebar-background: #ffffff;
  --pp-sidebar-box-shadow: none;
  --pp-layout-background: var(--bal-body-background);
  --pp-body-background: var(--bal-body-background);
  --pp-body-outer-margin: 0;
  --pp-body-inner-padding: 0;
  --pp-body-border-radius: 0;
  --pp-navigation-background: transparent;
  --pp-nav-link-color: #111111;
  --pp-header-background: var(--bal-sidebar-mobile-background);
  --pp-nav-link-padding-y: 10px;
  --pp-nav-link-padding-x: 12px;
  --pp-nav-link-gap: 10px;
  --pp-nav-link-active-radius: 0;
  --pp-nav-link-tablet-padding-y: 14px;
  --pp-nav-link-tablet-padding-x: 16px;
  --pp-nav-link-tablet-gap: 14px;
  --pp-nav-link-tablet-active-radius: 0;
  --pp-nav-link-short-landscape-padding-y: 8px;
  --pp-nav-link-short-landscape-padding-x: 12px;
  --pp-nav-link-short-landscape-gap: 10px;
  --pp-nav-link-short-landscape-active-radius: 0;
  --pp-nav-link-ultra-short-landscape-padding-y: 6px;
  --pp-nav-link-ultra-short-landscape-padding-x: 10px;
}

/* ===== BAL theme styles ===== */
/* BAL Brand Theme - Overrides for Core design system
   ==========================================================

   BAL Breakpoint Reference:
     Phone:   0      – 767px
     Tablet:  768px  – 1180px
     Desktop: 1181px +

   Shell breakpoint (sidebar visible): 1181px
   Content breakpoints: 576px / 768px / 992px / 1200px / 1300px
   ========================================================== */

/* Self-hosted Fonts */
@font-face {
  font-family: "Suisse Works";
  src: url("../fonts/SuisseWorks-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Works";
  src: url("../fonts/SuisseWorks-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* Aliases used by v2 account styles */
@font-face {
  font-family: "Suisse Works-Regular";
  src: url("../fonts/SuisseWorks-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Works-Bold";
  src: url("../fonts/SuisseWorks-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Suisse Int'l-Regular";
  src: url("../fonts/SuisseWorks-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Suisse BP Int'l-Regular";
  src: url("../fonts/SuisseWorks-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

/* BAL CSS Variables */

/* ===== Authentication styles ===== */
/* ============================================================
   Auth Pages — GUL Brand Styling
   ============================================================ */
:root {
    --pp-grid-gap: 1px;
}

.pp-row {
    gap: 0.1px;
}
/* ----------------------------------------------------------
   1. Auth Page Wrapper
   ---------------------------------------------------------- */
html:has(.auth-page-wrapper),
body:has(.auth-page-wrapper),
#app:has(.auth-page-wrapper) {
    --pp-page-loading-background: #000;
    --pp-page-loading-text: #fff;
    background: #000;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.auth-page-wrapper {
    --pp-page-loading-background: #000;
    --pp-page-loading-text: #fff;
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent;
    font-family: var(--bal-font-sans);
}

.auth-page-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #000;
    z-index: -1;
}

/* ----------------------------------------------------------
   2. Sparkle Animation
   Scoped to the auth form container.
   ---------------------------------------------------------- */
.sparkles-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.sparkle-gold {
    position: absolute;
    opacity: 0.7;
}

.sparkle-graphic {
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent transparent rgb(169, 133, 69) transparent;
    animation: sparkle-rotateY 3000ms linear infinite, sparkle-goldColor 750ms linear infinite alternate;
    position: relative;
}

.sparkle-graphic-before,
.sparkle-graphic-after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, rgba(169, 133, 69, 0) 0%, rgba(169, 133, 69, 0.1) 40%, rgba(169, 133, 69, 0.4) 50%, rgba(169, 133, 69, 0.1) 60%, rgba(169, 133, 69, 0) 100%);
    animation: sparkle-reflect 750ms linear infinite alternate;
}

.sparkle-graphic-before {
    top: 0;
    transform: translateX(-50%);
}

.sparkle-graphic-after {
    background: linear-gradient(0deg, rgba(169, 133, 69, 0) 0%, rgba(169, 133, 69, 0.1) 40%, rgba(169, 133, 69, 0.4) 50%, rgba(169, 133, 69, 0.1) 60%, rgba(169, 133, 69, 0) 100%);
    transform: translateY(-50%);
}

@keyframes sparkle-rotateZ {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

@keyframes sparkle-rotateY {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes sparkle-goldColor {
    0% {
        border-color: transparent transparent rgb(255, 255, 255) transparent;
    }

    10% {
        border-color: transparent transparent rgb(169, 133, 69) transparent;
    }

    100% {
        border-color: transparent transparent rgb(64, 13, 14) transparent;
    }
}

@keyframes sparkle-reflect {
    0% {
        opacity: 1;
    }

    10% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ----------------------------------------------------------
   3. Auth Page Layout
   ---------------------------------------------------------- */
.auth-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

/* Desktop: single row pinned to the viewport; left form scrolls, right hero stays fixed */
@media (min-width: 1024px) {
    .auth-page-wrapper {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .auth-page {
        flex-wrap: nowrap;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
    }
}

.auth-form-col {
    position: relative;
    background: #fff;
    overflow: visible;
    padding: 0 !important;
}

@media (min-width: 1024px) {
    .auth-form-col {
        flex: 0 0 55% !important;
        width: 55% !important;
        max-width: 55% !important;
        min-width: 0;
        height: 100vh;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .auth-form-col:has(.auth-footer-dock) {
        overflow-y: hidden;
    }

    .auth-form-inner {
        min-height: 100%;
        height: 100%;
    }

    .auth-form-col::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }
}

.auth-form-inner {
    position: relative;
    min-height: calc(100dvh - 30vh);
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background: #fff;
    isolation: isolate;
}

.auth-form-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet auth: no card hero — full-height form column. */
    .auth-hero-col {
        display: none !important;
    }

    .auth-form-inner {
        min-height: 100dvh;
    }
}

@media (min-width: 1024px) {
    .auth-form-inner {
        min-height: 100%;
    }
}

.auth-form-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.25rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    /* Mobile + tablet default: black striped header (Figma). */
    background-color: #111111;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.07) 0,
        rgba(255, 255, 255, 0.07) 1px,
        transparent 1px,
        transparent 10px
    );
}

.auth-form-header::after {
    display: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .auth-form-header {
        min-height: 5.5rem;
        padding: 1.35rem 1.5rem;
    }

    .auth-logo img {
        width: min(52%, 14rem);
    }
}

/* Desktop: keep the light logo-bg treatment beside the hero panel. */
@media (min-width: 1024px) {
    .auth-form-header {
        min-height: clamp(11rem, 24vh, 15rem);
        padding: 2.5rem 2rem;
        background: url(../images/logo-bg.png) center center / cover no-repeat;
    }

    .auth-form-header::after {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: -12px;
        height: 12px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
        pointer-events: none;
        z-index: 3;
    }
}

.auth-body-wrap {
    --auth-gutter: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 2rem;
    padding-left: var(--auth-gutter);
    padding-right: var(--auth-gutter);
    background: #fff;
}

@media (min-width: 768px) {
    .auth-body-wrap {
        --auth-gutter: 3rem;
    }
}

.auth-logo {
    display: block;
    width: 100%;
    margin: 0;
    text-decoration: none;
}

    .auth-logo img {
        display: block;
        height: auto;
        width: min(72%, 18rem);
        max-width: 100%;
        object-fit: contain;
        margin: 0 auto;
    }

@media (min-width: 768px) {
    .auth-logo img {
        width: min(68%, 20rem);
    }
}

@media (min-width: 1024px) {
    .auth-logo img {
        width: 215.136px;
        max-width: 215.136px;
        height: auto;
    }
}

/* Hero column — mobile/tablet: above the form; desktop: right promo panel */
.auth-hero-col {
    position: relative;
    width: 100%;
    height: 30vh;
    min-height: 0;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0 !important;
    order: -1;
    background: #000;
    color: #fff;
}

.auth-hero-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    background-color: #000;
    background-image: url(../images/login-right-bg.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.auth-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0;
}

.auth-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 1.5rem;
    text-align: center;
}

.auth-hero-line {
    margin: 0;
    color: #fff !important;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

    .auth-hero-line + .auth-hero-line {
        margin-top: 0.2em;
    }

.auth-hero-brand {
    position: relative;
    display: block;
    width: 404px;
    max-width: 100%;
    margin: 3rem auto 0;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 45px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    /* Same technique as .rewards-status__title (account PRO STATUS):
       solid fill + stroke with paint-order so only a flat outer border shows. */
    color: #000;
    -webkit-text-stroke: 2px #fff;
    paint-order: stroke fill;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    text-shadow: none;
}

@supports not (-webkit-text-stroke: 2px #fff) {
    .auth-hero-brand {
        color: #000;
        text-shadow:
            -2px -2px 0 #fff,
             0   -2px 0 #fff,
             2px -2px 0 #fff,
            -2px  0   0 #fff,
             2px  0   0 #fff,
            -2px  2px 0 #fff,
             0    2px 0 #fff,
             2px  2px 0 #fff;
    }
}

.auth-hero-divider {
    width: 520px;
    max-width: calc(100% - 2rem);
    height: 3px;
    margin: 1rem auto 0;
    background-color: #ec0000;
    flex-shrink: 0;
}

.auth-hero-cards-frame {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.auth-hero-cards {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: top center;
    pointer-events: none;
    vertical-align: top;
}

/* Desktop (≥1024px): hero on right (45%), form on left (55%) */
@media (min-width: 1024px) {
    .auth-hero-col {
        flex: 0 0 45% !important;
        width: 45% !important;
        max-width: 45% !important;
        display: flex !important;
        flex-direction: column;
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        flex-shrink: 0;
        overflow: hidden;
        order: unset;
    }

    .auth-hero-panel {
        flex: 1;
        min-height: 0;
        padding: 0;
    }

    .auth-hero-content {
        gap: 0;
    }

    .auth-hero-copy {
        padding: 0 2rem;
    }
}

/* ----------------------------------------------------------
   4. Heading & Subtitle
   Desktop: two-line subtitle (keep <br/>). Mobile/tablet: single line, smaller text.
   ---------------------------------------------------------- */
.auth-heading {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.17px;
    margin: 0;
    padding-bottom: 1rem;
}

.auth-heading--login,
.auth-heading--portal {
    text-transform: none;
    font-size: 1.75rem;
    line-height: 1.25;
    padding-bottom: 0;
}

.auth-portal-graphic {
    display: block;
    width: 65px;
    height: 65px;
    margin: 0 auto 1.25rem;
    object-fit: contain;
}

.auth-intro--portal .auth-subtitle {
    margin-top: 0.75rem;
    margin-bottom: 0;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    color: #696969;
    font-size: 1rem;
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .auth-intro--portal .auth-subtitle {
        font-size: 1rem;
    }
}

.auth-body-wrap:has(.auth-form--login),
.auth-body-wrap:has(.auth-form--portal) {
    flex: 1;
    min-height: 0;
    padding-top: calc(2rem + 12px);
    padding-bottom: 0;
}

.auth-body-wrap:has(.auth-register-landing),
.auth-body-wrap:has(.auth-register-success) {
    flex: 1;
    min-height: 0;
    padding-top: calc(4rem + 24px);
    padding-bottom: 0;
}

.auth-body-wrap:has(.auth-forgot-password-success),
.auth-body-wrap:has(.auth-reset-password-success) {
    flex: 1;
    min-height: 0;
    padding-top: calc(4rem + 24px);
    padding-bottom: 0;
}

.auth-body-wrap:has(> .auth-footer-dock) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.auth-body-wrap > .auth-portal-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

/* Single-input outer pages (forgot/resend/reset) put intro + form in the
   scroll region so short 14" viewports can reach the submit actions while
   the right-hand hero stays fixed. */
.auth-portal-scroll > .auth-intro--portal,
.auth-portal-scroll > .auth-intro--login {
    flex-shrink: 0;
}

/* Login/portal forms size to content inside the scroll region so
   short viewports scroll instead of overlapping the footer actions. */
.auth-portal-scroll > .auth-form--login,
.auth-portal-scroll > .auth-form--portal {
    flex: 0 0 auto;
}

.auth-body-wrap > .auth-footer-dock {
    /* Sibling scroll/flex region fills remaining height — keep TPI docked to the bottom */
    margin-top: 0;
    width: 100%;
    flex-shrink: 0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    text-align: center;
}

.auth-body-wrap > .auth-footer-dock .auth-tpi-logo {
    margin-top: 0;
}

.auth-portal-scroll .auth-portal-footer-content {
    flex-shrink: 0;
    padding-bottom: 0.5rem;
}

.auth-register-landing {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-register-landing .auth-intro--portal {
    flex-shrink: 0;
    margin-bottom: 3.5rem;
}

.auth-portal-graphic--landing {
    width: 75px;
    height: 75px;
    margin: 0 auto 1.5rem;
}

.auth-register-landing .auth-heading--landing {
    max-width: 453px;
    margin: 0 auto;
    padding: 0;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 28px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.25;
    color: #1a1a1a;
}

.auth-register-landing .auth-subtitle--landing {
    max-width: 523px;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: #696969;
}

.auth-register-landing .auth-error-notification {
    margin-top: 1rem;
}

.auth-register-landing__loading {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
}

.auth-portal-landing-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 550px;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
}

.auth-portal-landing-actions .auth-login-btn.auth-login-btn--primary {
    width: 310px;
    max-width: 100%;
    min-width: 0;
    height: 55px;
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background-color: #ec0000;
    border: none;
    border-radius: 4px;
    opacity: 1;
    cursor: pointer;
}

    .auth-portal-landing-actions .auth-login-btn.auth-login-btn--primary:hover,
    .auth-portal-landing-actions .auth-login-btn.auth-login-btn--primary:focus {
        background-color: #c80000;
        opacity: 1;
    }

.auth-forgot-password-success,
.auth-reset-password-success,
.auth-register-success {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.auth-forgot-password-success .auth-intro--portal,
.auth-reset-password-success .auth-intro--portal {
    flex-shrink: 0;
    margin-bottom: 3.5rem;
}

.auth-register-success .auth-intro--portal {
    flex-shrink: 0;
    margin-bottom: 2rem;
}

.auth-portal-graphic--recovery-sent,
.auth-portal-graphic--reset-success,
.auth-portal-graphic--success {
    width: 75px;
    height: 75px;
    margin: 0 auto 1.5rem;
}

.auth-forgot-password-success .auth-heading--recovery-sent,
.auth-reset-password-success .auth-heading--reset-success,
.auth-register-success .auth-heading--success {
    max-width: 550px;
    margin: 0 auto;
    padding: 0;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 28px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.25;
    color: #1a1a1a;
}

.auth-forgot-password-success .auth-subtitle--recovery-sent,
.auth-reset-password-success .auth-subtitle--reset-success,
.auth-register-success .auth-subtitle--success {
    max-width: 601px;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: #696969;
}

.auth-portal-landing-actions--recovery-sent .auth-login-btn.auth-login-btn--primary,
.auth-portal-landing-actions--reset-success .auth-login-btn.auth-login-btn--primary {
    width: 310px;
    max-width: 100%;
}

.auth-portal-graphic--forgot {
    width: 75px;
    height: 75px;
    margin: 0 auto 1.5rem;
}

.auth-intro--portal .auth-heading--forgot {
    max-width: 550px;
    margin: 0 auto;
    padding: 0;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 28px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.25;
    color: #1a1a1a;
}

.auth-intro--portal .auth-subtitle--forgot {
    max-width: 601px;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: #696969;
}

.auth-form--portal.auth-form--forgot .auth-fields--portal,
.auth-form--portal.auth-form--reset .auth-fields--portal {
    max-width: 550px;
}

.auth-portal-actions--register.auth-portal-actions--forgot,
.auth-portal-actions--register.auth-portal-actions--reset {
    justify-content: center;
    gap: 2rem;
    max-width: 550px;
}

.auth-portal-actions--register.auth-portal-actions--forgot .auth-cancel-btn,
.auth-portal-actions--register.auth-portal-actions--forgot .auth-login-btn--primary,
.auth-portal-actions--register.auth-portal-actions--reset .auth-cancel-btn,
.auth-portal-actions--register.auth-portal-actions--reset .auth-login-btn--primary {
    flex: 0 0 262px;
    width: 262px;
    max-width: 262px;
}

/* Resend Email: 262px buttons flush with email field edges (Figma). */
.auth-form--portal .auth-portal-actions--register.auth-portal-actions--resend {
    justify-content: space-between;
    gap: 1.625rem;
    max-width: 550px;
}

.auth-form--portal .auth-portal-actions--register.auth-portal-actions--resend .auth-cancel-btn,
.auth-form--portal .auth-portal-actions--register.auth-portal-actions--resend .auth-login-btn--primary {
    flex: 0 0 262px;
    width: 262px;
    max-width: 262px;
    min-width: 0;
}

.auth-portal-actions--register.auth-portal-actions--forgot .auth-login-btn--forgot.is-active,
.auth-portal-actions--register.auth-portal-actions--reset .auth-login-btn--reset.is-active {
    background-color: #ec0000;
    opacity: 1;
}

    .auth-portal-actions--register.auth-portal-actions--forgot .auth-login-btn--forgot.is-active:hover,
    .auth-portal-actions--register.auth-portal-actions--forgot .auth-login-btn--forgot.is-active:focus,
    .auth-portal-actions--register.auth-portal-actions--reset .auth-login-btn--reset.is-active:hover,
    .auth-portal-actions--register.auth-portal-actions--reset .auth-login-btn--reset.is-active:focus {
        background-color: #c80000;
        opacity: 1;
    }

.auth-portal-graphic--reset {
    width: 75px;
    height: 75px;
    margin: 0 auto 1.5rem;
}

.auth-intro--portal .auth-heading--reset {
    max-width: 550px;
    margin: 0 auto;
    padding: 0;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 28px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.25;
    color: #1a1a1a;
}

.auth-intro--portal .auth-subtitle--reset {
    max-width: 601px;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 20px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    color: #696969;
}

.auth-portal-actions--register.auth-portal-actions--success {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    max-width: 601px;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
}

.auth-portal-actions--register.auth-portal-actions--success .auth-cancel-btn {
    flex: 0 0 262px;
    width: 262px;
    min-width: 0;
    max-width: 262px;
    height: 55px;
}

.auth-portal-actions--register.auth-portal-actions--success .auth-login-btn--success {
    flex: 0 0 262px;
    width: 262px;
    min-width: 0;
    max-width: 262px;
    height: 55px;
    background-color: #ec0000;
    opacity: 1;
}

    .auth-portal-actions--success .auth-login-btn--success:hover,
    .auth-portal-actions--success .auth-login-btn--success:focus {
        background-color: #c80000;
        opacity: 1;
    }

.auth-portal-footer-content--success {
    width: 100%;
    max-width: 550px;
    margin: 2rem auto 0.5rem;
    flex-shrink: 0;
}

.auth-portal-footer-link--contact {
    justify-content: center;
    text-align: center;
}

.auth-contact-prompt {
    color: #888;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 0.875rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
}

.auth-contact-link {
    display: inline;
    margin-left: 0.25rem;
    font-style: italic;
}

.auth-body-wrap:has(.auth-form--login) .auth-intro--login,
.auth-body-wrap:has(.auth-form--portal) .auth-intro--portal {
    flex-shrink: 0;
    margin-bottom: 2rem;
}

.auth-intro--login,
.auth-intro--portal {
    text-align: center;
    margin-bottom: 2rem;
}

    .auth-intro--login .auth-error-notification.auth-error-notification--light,
    .auth-intro--portal .auth-error-notification.auth-error-notification--light {
        text-align: left;
        margin-top: 0.75rem;
        margin-bottom: 0;
    }

@media (min-width: 768px) {
    .auth-heading {
        font-size: 2.125rem;
        padding-top: 1.25rem;
    }

    .auth-heading--login,
    .auth-heading--portal {
        font-size: 2rem;
        padding-top: 0;
    }
}

/* Tablet: smaller heading/subtitle than desktop */
@media (min-width: 768px) and (max-width: 1023px) {
    .auth-heading {
        font-size: 1.5rem;
        padding-top: 1rem;
    }

    .auth-heading--login,
    .auth-heading--portal {
        font-size: 1.625rem;
        padding-top: 0;
    }

    .auth-subtitle {
        font-size: 0.9375rem;
    }
}

.auth-subtitle {
    color: #4a4a4a;
    font-size: 1.125rem;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.2px;
    line-height: 1.4;
    margin: 0 0 2rem 0;
}

@media (min-width: 1024px) {
    .auth-subtitle {
        font-size: 1.25rem;
    }
}

/* Mobile/tablet: single-line subtitle (hide <br/>) */
@media (max-width: 1023px) {
    .auth-subtitle br {
        display: none;
    }
}

/* ----------------------------------------------------------
   5. Form Structure
   ---------------------------------------------------------- */
.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 0;
}

.auth-fields {
    padding: 0;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.auth-field {
    margin-bottom: 1.25rem;
}

    .auth-field:last-child {
        margin-bottom: 0;
    }

/* ----------------------------------------------------------
   6. Labels
   ---------------------------------------------------------- */
.auth-label {
    user-select: none;
    cursor: pointer;
    display: inline-block;
    line-height: 1.1;
    color: #333;
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 0.625rem;
}

@media (min-width: 768px) {
    .auth-label {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }
}

/* ----------------------------------------------------------
   7. Native HTML Input Styling
   ---------------------------------------------------------- */
.auth-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
    display: block;
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 1.25rem;
    height: 3.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.3;
    color: rgba(210, 210, 210, 1);
    background: rgba(21, 21, 21, 1);
    border: 2px solid #808080;
    border-radius: var(--bal-control-radius, 10px);
    outline: none;
    transition: border-color 0.3s ease-in-out;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .auth-input {
        font-size: 1.25rem;
        height: 3.75rem;
    }
}

.auth-input::placeholder {
    color: #6B6B6B;
    font-weight: normal;
}

.auth-input:hover {
    border-color: var(--bal-primary-color, #D9C18C);
}

.auth-input:focus {
    border-color: var(--bal-primary-color, #D9C18C);
}

.auth-input.has-error {
    border-color: #FF5858;
}

    .auth-input.has-error:hover,
    .auth-input.has-error:focus {
        border-color: #FF5858;
    }

/* Browser autofill override — prevent white background on saved credentials */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(21, 21, 21, 1) inset !important;
    box-shadow: 0 0 0 1000px rgba(21, 21, 21, 1) inset !important;
    -webkit-text-fill-color: rgba(210, 210, 210, 1) !important;
    caret-color: rgba(210, 210, 210, 1);
    transition: background-color 5000s ease-in-out 0s;
}

/* ----------------------------------------------------------
   8. Password Toggle
   ---------------------------------------------------------- */
.auth-input-wrap {
    position: relative;
}

    .auth-input-wrap .auth-input {
        padding-right: 3.5rem;
    }

.auth-pw-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #D1D1D1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    z-index: 2;
}

/* Login page — Figma light form fields */
.auth-form--login .auth-label,
.auth-form--portal .auth-label {
    color: #696969;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 1rem;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 0.5rem;
}

.auth-input--light,
.auth-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 3rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    font-family: inherit;
    line-height: 1.3;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-sizing: border-box;
}

.auth-input--light::placeholder {
    color: #999;
    font-weight: 400;
}

.auth-input--light:hover,
.auth-select:hover {
    border-color: #999;
}

.auth-input--light:focus,
.auth-select:focus {
    border-color: #666;
    box-shadow: 0 0 0 1px #666;
}

.auth-input--light.has-error,
.auth-select.has-error {
    border-color: #d64545;
}

.auth-input--light:-webkit-autofill,
.auth-input--light:-webkit-autofill:hover,
.auth-input--light:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    caret-color: #1a1a1a;
}

.auth-select-wrap {
    position: relative;
}

    .auth-select-wrap::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 1rem;
        width: 0.5rem;
        height: 0.5rem;
        border-right: 2px solid #888;
        border-bottom: 2px solid #888;
        transform: translateY(-65%) rotate(45deg);
        pointer-events: none;
        z-index: 1;
    }

.auth-select {
    padding-right: 2.5rem;
    cursor: pointer;
    color: #999;
}

    .auth-select.has-value {
        color: #1a1a1a;
    }

/* Property selector — match the light authentication inputs. */
.auth-select-wrap .auth-property-dropdown.pp-select,
.auth-form--login .auth-property-dropdown.pp-select {
    display: inline-flex !important;
    width: 100%;
    height: 3rem;
    min-height: 3rem;
}

.auth-select-wrap .auth-property-dropdown .pp-select__trigger,
.auth-form--login .auth-property-dropdown .pp-select__trigger {
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 0 !important;
    font-size: 1rem;
    font-weight: 400;
    font-family: var(--bal-font-sans, "Inter", Helvetica, Arial, sans-serif) !important;
    line-height: normal !important;
    color: #999;
    background: #fff !important;
    border: 1px solid #c8c8c8 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.auth-select-wrap .auth-property-dropdown:not(:has(.is-placeholder)) .pp-select__trigger,
.auth-form--login .auth-property-dropdown:not(:has(.is-placeholder)) .pp-select__trigger {
    color: #1a1a1a;
}

.auth-select-wrap .auth-property-dropdown .pp-select__trigger:hover,
.auth-form--login .auth-property-dropdown .pp-select__trigger:hover {
    border-color: #999 !important;
}

.auth-select-wrap .auth-property-dropdown .pp-select__trigger:focus-visible,
.auth-form--login .auth-property-dropdown .pp-select__trigger:focus-visible {
    border-color: #666 !important;
    box-shadow: 0 0 0 1px #666 !important;
}

/* Left-align selected value with the same 1rem padding used by option items */
.auth-select-wrap .auth-property-dropdown .pp-select__value,
.auth-form--login .auth-property-dropdown .pp-select__value {
    display: block !important;
    text-align: start !important;
    padding-block: 0 !important;
    margin-block: 0 !important;
    padding-inline-start: 1rem !important;
    padding-inline-end: 2.5rem !important;
    font-family: var(--bal-font-sans, "Inter", Helvetica, Arial, sans-serif) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: normal !important;
    height: auto !important;
    color: inherit;
    background: transparent !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-select-wrap .auth-property-dropdown .is-placeholder,
.auth-form--login .auth-property-dropdown .is-placeholder {
    color: #999;
    font-family: var(--bal-font-sans, "Inter", Helvetica, Arial, sans-serif) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
}

.auth-select-wrap .auth-property-dropdown .pp-select__chevron,
.auth-form--login .auth-property-dropdown .pp-select__chevron {
    display: none !important;
}

/* Popup is portaled to body — match selected-value Inter 400 / 1rem */
.pp-select__panel {
    font-family: var(--bal-font-sans, "Inter", Helvetica, Arial, sans-serif) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pp-select__panel .pp-select__item {
    font-family: var(--bal-font-sans, "Inter", Helvetica, Arial, sans-serif) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    padding: 0.75rem 1rem !important;
    text-align: start !important;
}

@media (min-width: 768px) {
    .auth-input--light,
    .auth-select {
        height: 3.125rem;
        font-size: 1rem;
    }

    .auth-select-wrap .auth-property-dropdown.pp-select,
    .auth-form--login .auth-property-dropdown.pp-select {
        height: 3.125rem;
        min-height: 3.125rem;
    }
}

.auth-pw-toggle--light {
    color: #888;
}

.auth-help-link--login {
    margin-top: 0.625rem;
}

    .auth-help-link--login a {
        color: #888;
        font-size: 0.875rem;
        font-style: italic;
        text-decoration: none;
    }

        .auth-help-link--login a:hover,
        .auth-help-link--login a:focus {
            color: #555;
            text-decoration: underline;
        }

.auth-pw-toggle:hover {
    color: #fff;
}

.auth-pw-toggle--light:hover {
    color: #555;
}

/* ----------------------------------------------------------
   9. Help Link
   ---------------------------------------------------------- */
.auth-help-link {
    text-align: right;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

    .auth-help-link a {
        font-family: inherit;
        font-weight: 400;
        font-style: italic;
        color: #666;
        font-size: 1rem;
        text-decoration: underline;
        transition: color 0.2s ease;
    }

        .auth-help-link a:hover {
            color: var(--bal-primary-color, #D9C18C);
        }

/* ----------------------------------------------------------
   10. Error Notification
   ---------------------------------------------------------- */
.auth-error-notification {
    background: #151515;
    backdrop-filter: blur(1.4rem);
    -webkit-backdrop-filter: blur(1.4rem);
    border-radius: var(--bal-control-radius, 10px);
    border: 1px solid #FF5858;
    color: #fff;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.auth-error-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-error-title {
    font-size: 1rem;
    font-weight: 700;
    color: #FF5858;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.auth-error-description {
    font-size: 1rem;
    font-weight: 400;
    color: #D2D2D2;
    letter-spacing: 1px;
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.auth-error-notification.auth-error-notification--light {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    row-gap: 0.375rem;
    align-content: start;
    width: 100%;
    max-width: 591px;
    box-sizing: border-box;
    padding: 1rem 1.25rem;
    margin-left: auto;
    margin-right: auto;
    background: #fff5f5;
    border: 1px solid #b82132;
    border-radius: 8px;
    color: #1a1a1a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

    .auth-error-notification.auth-error-notification--light .auth-error-header {
        display: contents;
    }

    .auth-error-notification.auth-error-notification--light .auth-error-icon {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        margin-top: 0.0625rem;
    }

    .auth-error-notification.auth-error-notification--light .auth-error-title {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
        color: #b82132;
        letter-spacing: normal;
        text-shadow: none;
    }

    .auth-error-notification.auth-error-notification--light .auth-error-description {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        font-family: var(--bal-font-sans, "Inter", sans-serif);
        font-size: 1rem;
        font-weight: 400;
        font-style: normal;
        color: #696969;
        line-height: 1.5;
        letter-spacing: normal;
        text-shadow: none;
    }

/* Shown only for the browser-verification (App Check) failure, which the player can retry. */
.auth-error-retry {
    margin-top: 0.75rem;
    padding: 0.5rem 1.25rem;
    font: inherit;
    font-weight: 700;
    color: #FFFFFF;
    background: #b82132;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.auth-error-retry:disabled {
    opacity: 0.6;
    cursor: default;
}

.auth-error-retry:focus-visible {
    outline: 2px solid #b82132;
    outline-offset: 2px;
}

.auth-error-notification.auth-error-notification--light .auth-error-retry {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
}

.auth-login-error-label {
    display: block;
    width: 100%;
    max-width: 506px;
    white-space: normal;
}

.auth-error-icon--login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border: 1.5px solid #b82132;
    border-radius: 4px;
    color: #b82132;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

/* ----------------------------------------------------------
   11. Bottom Gradient Section
   ---------------------------------------------------------- */
.auth-bottom-gradient {
    margin-top: auto;
    margin-left: calc(-1 * var(--auth-gutter, 2rem));
    margin-right: calc(-1 * var(--auth-gutter, 2rem));
    position: relative;
    flex-shrink: 0;
    border-radius: 40px 40px 0 0;
    border: none;
    background: linear-gradient(180deg, rgba(21, 21, 21, 0.66) 36.67%, rgba(164, 144, 102, 0.66) 203.67%);
}

    .auth-bottom-gradient::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 1px;
        border-radius: 40px 40px 0 0;
        background: linear-gradient(270deg, rgba(153, 153, 153, 0.1) 0%, rgba(187, 187, 187, 0.3) 22%, rgba(207, 207, 207, 0.4) 50%, rgba(228, 228, 228, 0.3) 79%, rgba(255, 255, 255, 0.1) 100%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        z-index: 1;
        pointer-events: none;
    }

.auth-bottom-content {
    padding: 1.5rem 2rem 0.5rem;
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
}

/* ----------------------------------------------------------
   12. Login Button
   ---------------------------------------------------------- */
.auth-login-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    width: auto;
    min-width: 10.5rem;
    max-width: min(100%, 16rem);
    margin-left: auto;
    margin-right: auto;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    font-family: inherit;
    color: #fff;
    background-color: #A49066;
    border: 2px solid #A49066;
    border-radius: var(--bal-control-radius, 10px);
    cursor: default;
    opacity: 0.45;
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
    line-height: 1.5;
    white-space: nowrap;
    user-select: none;
    height: 50px;
}

@media (min-width: 768px) {
    .auth-login-btn {
        font-size: 1.125rem;
        padding: 1rem 0.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .auth-login-btn {
        width: 70%;
        min-width: 0;
        max-width: none;
        height: 3.5rem;
        padding: 1rem 1.25rem;
        font-size: 1.1875rem;
    }
}

@media (min-width: 1200px) {
    .auth-login-btn {
        font-size: 1.25rem;
    }
}

.auth-login-btn.is-active {
    opacity: 1;
    cursor: pointer;
}

    .auth-login-btn.is-active:hover,
    .auth-login-btn.is-active:focus {
        opacity: 0.8;
    }

@media (min-width: 1024px) {
    .auth-login-btn {
        width: 70%;
        min-width: 0;
        max-width: none;
        height: 3.75rem;
        padding: 1rem 1.75rem;
        font-size: 1.25rem;
    }
}

/* ----------------------------------------------------------
   13. Create Account & TPI Logo
   ---------------------------------------------------------- */
.auth-create-account {
    color: #D1D1D1;
    font-size: 1.125rem;
    font-weight: 400;
    margin: 1.5rem 0 0 0;
    text-align: center;
}

@media (min-width: 768px) {
    .auth-create-account {
        font-size: 1.25rem;
    }
}

.auth-create-account a {
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}

    .auth-create-account a:hover {
        text-decoration: none;
    }

.auth-tpi-logo {
    margin-top: 1.5rem;
    text-align: center;
}

    .auth-tpi-logo img {
        display: block;
        width: 150px;
        height: auto;
        object-fit: contain;
        margin: 0 auto 0.75rem;
    }

/* Login & registration — shared light portal form layout */
.auth-form--login,
.auth-form--portal {
    gap: 0;
}

.auth-form--login .auth-fields,
.auth-form--portal .auth-fields,
.auth-form--portal .auth-fields--portal {
    width: 100%;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    overflow: visible;
}

.auth-form--portal .auth-portal-actions--register {
    display: flex;
    justify-content: stretch;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
    max-width: 550px;
    margin: 0 auto 2rem;
    padding-top: 0;
}

.auth-form--login .auth-login-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 550px;
    margin: 0 auto 2rem;
    padding-top: 0;
}

.auth-form--login .auth-login-divider,
.auth-form--portal .auth-login-divider,
.auth-body-wrap > .auth-portal-footer-content .auth-login-divider,
.auth-portal-scroll .auth-portal-footer-content .auth-login-divider {
    height: 1px;
    margin: 0 0 1.5rem;
    background: #d9d9d9;
}

.auth-form--login .auth-login-secondary,
.auth-body-wrap > .auth-portal-footer-content .auth-login-secondary,
.auth-portal-scroll .auth-portal-footer-content .auth-login-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-bottom: 0;
}

.auth-body-wrap > .auth-portal-footer-content .auth-portal-footer-link,
.auth-portal-scroll .auth-portal-footer-content .auth-portal-footer-link {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.auth-portal-footer-content {
    width: 100%;
    max-width: 550px;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
}

/* Registration: CANCEL + REGISTER share the full form width (Figma). */
.auth-form--portal .auth-portal-actions--register:not(.auth-portal-actions--forgot):not(.auth-portal-actions--reset):not(.auth-portal-actions--resend):not(.auth-portal-actions--success) .auth-cancel-btn,
.auth-form--portal .auth-portal-actions--register:not(.auth-portal-actions--forgot):not(.auth-portal-actions--reset):not(.auth-portal-actions--resend):not(.auth-portal-actions--success) .auth-login-btn--primary {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.auth-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 272px;
    max-width: 100%;
    min-width: 0;
    height: 55px;
    padding: 0 1.25rem;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 1.125rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: normal;
    text-transform: uppercase;
    text-decoration: none;
    color: #101010;
    background: #fff;
    border: 2px solid #101010;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .auth-cancel-btn:hover,
    .auth-cancel-btn:focus {
        background: #f5f5f5;
        color: #101010;
        text-decoration: none;
    }

.auth-form--portal .auth-portal-actions--register .auth-login-btn--primary {
    width: auto;
}

.auth-login-btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 310px;
    max-width: 100%;
    min-width: 0;
    height: 55px;
    margin: 0;
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    background-color: #e88888;
    border: none;
    border-radius: 4px;
    opacity: 0.55;
    cursor: not-allowed;
}

/* Figma brand red when the primary action is ready (login / register / resend / etc.) */
.auth-login-btn--primary.is-active:not(:disabled) {
    background-color: #ec0000;
    opacity: 1;
    cursor: pointer;
}

.auth-login-btn--primary.is-active:not(:disabled):hover,
.auth-login-btn--primary.is-active:not(:disabled):focus,
.auth-login-btn--primary.is-active:not(:disabled):focus-visible {
    background-color: #c80000;
    opacity: 1;
}

.auth-login-divider {
    height: 1px;
    margin: 0 0 1.5rem;
    background: #d9d9d9;
}

.auth-login-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-bottom: 2rem;
}

.auth-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 272px;
    max-width: 100%;
    min-width: 0;
    height: 55px;
    padding: 0 1.25rem;
    font-family: var(--bal-font-sans, "Inter", sans-serif);
    font-size: 1.125rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: normal;
    text-transform: uppercase;
    text-decoration: none;
    color: #101010;
    background: #fff;
    border: 2px solid #101010;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .auth-register-btn:hover,
    .auth-register-btn:focus {
        background: #f5f5f5;
        color: #101010;
        text-decoration: none;
    }

.auth-login-or {
    color: #888;
    font-size: 0.9375rem;
    font-weight: 400;
}

.auth-resend-link {
    color: #888;
    font-size: 0.875rem;
    font-style: italic;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .auth-resend-link:hover,
    .auth-resend-link:focus {
        color: #555;
        text-decoration: underline;
    }

.auth-tpi-logo--login {
    margin-top: 0;
}

    .auth-tpi-logo--login img {
        width: 150px;
        margin-bottom: 0;
    }

.auth-footer-dock .auth-tpi-logo {
    margin-top: 0;
    padding-bottom: 8px;
}

.auth-footer-dock .auth-tpi-logo img {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .auth-login-secondary {
        flex-direction: column;
        gap: 0.875rem;
    }

    .auth-login-btn--primary {
        width: min(310px, 100%);
    }

    .auth-register-btn {
        width: min(272px, 100%);
    }

    /* Figma mobile: primary (red) on top, secondary (outline) below — full width + full 55px height */
    .auth-form--portal .auth-portal-actions--register,
    .auth-portal-actions--register.auth-portal-actions--success {
        flex-direction: column-reverse;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        flex-shrink: 0;
        gap: 0.75rem;
    }

    .auth-form--portal .auth-portal-actions--register .auth-cancel-btn,
    .auth-form--portal .auth-portal-actions--register .auth-login-btn--primary,
    .auth-portal-actions--register.auth-portal-actions--forgot .auth-cancel-btn,
    .auth-portal-actions--register.auth-portal-actions--forgot .auth-login-btn--primary,
    .auth-portal-actions--register.auth-portal-actions--reset .auth-cancel-btn,
    .auth-portal-actions--register.auth-portal-actions--reset .auth-login-btn--primary,
    .auth-form--portal .auth-portal-actions--register.auth-portal-actions--resend .auth-cancel-btn,
    .auth-form--portal .auth-portal-actions--register.auth-portal-actions--resend .auth-login-btn--primary,
    .auth-portal-actions--register.auth-portal-actions--success .auth-cancel-btn,
    .auth-portal-actions--register.auth-portal-actions--success .auth-login-btn--primary,
    .auth-portal-actions--register.auth-portal-actions--success .auth-login-btn--success {
        flex: 0 0 auto;
        flex-shrink: 0;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 55px;
        min-height: 55px;
        font-size: 0.875rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Long auth forms: grow with content and scroll the page — don't compress buttons */
    .auth-form-inner:has(.auth-portal-scroll) {
        overflow: visible;
        min-height: auto;
        height: auto;
    }

    .auth-form-content:has(.auth-portal-scroll) {
        min-height: auto;
    }

    .auth-body-wrap:has(> .auth-portal-scroll) {
        overflow: visible;
    }

    .auth-body-wrap > .auth-portal-scroll {
        flex: 0 0 auto;
        overflow: visible;
        padding-bottom: 1.5rem;
    }

    /* Success / landing: fill the pane, dock TPI, scroll intro → Contact Us */
    .auth-form-inner:has(.auth-register-success),
    .auth-form-inner:has(.auth-forgot-password-success),
    .auth-form-inner:has(.auth-reset-password-success),
    .auth-form-inner:has(.auth-register-landing) {
        overflow: hidden;
        min-height: calc(100dvh - 30vh);
        height: auto;
    }

    .auth-body-wrap:has(> .auth-register-success),
    .auth-body-wrap:has(> .auth-forgot-password-success),
    .auth-body-wrap:has(> .auth-reset-password-success),
    .auth-body-wrap:has(> .auth-register-landing) {
        overflow: hidden;
    }

    .auth-resend-link {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .auth-login-btn--primary {
        font-size: 1.0625rem;
    }
}

/* ----------------------------------------------------------
   14. Password Requirements
   ---------------------------------------------------------- */
.password-requirements {
    border-radius: 18px;
    padding: 1rem 1.125rem;
    border: 1px solid transparent;
}

.password-requirements__header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.password-requirements__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.password-requirements__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
}

.password-requirements__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.password-requirements__item {
    position: relative;
    padding-left: 1.5rem;
    font-size: 14px;
    line-height: 19px;
}

.password-requirements__item::before {
    content: "\2022";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: inherit;
}

.password-requirements__item.is-met::before {
    content: "\2713";
}

.password-requirements--dark {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(217, 193, 140, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.password-requirements--dark .password-requirements__badge {
    background: #000;
    border: 2px solid #fff;
    color: #fff;
}

.password-requirements--dark .password-requirements__title {
    color: #fff;
}

.password-requirements--dark .password-requirements__item.is-pending {
    color: #D9C18C;
}

.password-requirements--dark .password-requirements__item.is-pending::before {
    color: #D9C18C;
}

.password-requirements--dark .password-requirements__item.is-met {
    color: #5AD58E;
}

.password-requirements--dark .password-requirements__item.is-met::before {
    color: #5AD58E;
}

.password-requirements--light {
    background: linear-gradient(180deg, #fffdf7 0%, #f9f2e1 100%);
    border-color: #e4d2a4;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.password-requirements--light .password-requirements__badge {
    background: #e6d5a8;
    color: #7a6a3e;
}

.password-requirements--light .password-requirements__title {
    color: #1a2a44;
}

.password-requirements--light .password-requirements__item.is-pending {
    color: #5c5c5c;
}

.password-requirements--light .password-requirements__item.is-pending::before {
    color: #8a8a8a;
}

.password-requirements--light .password-requirements__item.is-met {
    color: #188a51;
}

.password-requirements--light .password-requirements__item.is-met::before {
    color: #188a51;
}

.auth-password-control {
    position: relative;
}

.auth-password-control.is-open .auth-input--light {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Informational popover: it overlays the next field and the actions, so it
   must never take the click meant for them (one click focuses Confirm
   Password / presses SAVE or CANCEL). js/portal-scroll.js scrolls it into
   view when it opens so the last rule is never clipped by the scroll area. */
.auth-password-requirements-float {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    pointer-events: none;
}

/* Transparent spacer below the popover: it extends the scrollable area so the
   popover (and its shadow) can be scrolled clear of the footer dock. */
.auth-password-requirements-float::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 1rem;
}

.password-requirements--portal {
    background: #eee;
    border: 1px solid #c8c8c8;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 0.875rem 1rem;
    margin: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

    .password-requirements--portal .password-requirements__header {
        margin-bottom: 0.25rem;
    }

    .password-requirements--portal .password-requirements__list {
        gap: 0;
    }

    .password-requirements--portal .password-requirements__badge {
        width: 1.25rem;
        height: 1.25rem;
        border-radius: 4px;
        border: 1.5px solid #101010;
        background: transparent;
        color: #101010;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .password-requirements--portal .password-requirements__title {
        font-family: var(--bal-font-sans, "Inter", sans-serif);
        font-size: 1rem;
        font-weight: 700;
        font-style: normal;
        line-height: 1.25;
        color: #000;
        text-decoration: none;
    }

    .password-requirements--portal .password-requirements__item {
        font-family: var(--bal-font-sans, "Inter", sans-serif);
        font-size: 0.875rem;
        font-weight: 400;
        font-style: normal;
        line-height: 1.2;
        color: #000;
        padding-left: 1rem;
        margin: 0;
    }

    .password-requirements--portal .password-requirements__item.is-pending {
        color: #000;
    }

    .password-requirements--portal .password-requirements__item.is-pending::before {
        content: "\2022";
        color: #000;
        font-weight: 700;
    }

    .password-requirements--portal .password-requirements__item.is-met {
        color: #1f8a4c;
    }

    .password-requirements--portal .password-requirements__item.is-met::before {
        content: "\2713";
        color: #1f8a4c;
        font-weight: 700;
    }

.auth-field-error {
    color: #FF5858;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1rem;
    visibility: hidden;
}

.auth-field-error.is-visible {
    visibility: visible;
}


/* ----------------------------------------------------------
   15. Mobile Responsive
   ---------------------------------------------------------- */
@media (max-width: 767px) {
    .auth-form-header {
        min-height: 4.75rem;
        padding: 1.1rem 1.25rem;
        text-align: center;
    }

    .auth-logo img {
        width: min(58%, 12.5rem);
    }

    .auth-body-wrap {
        padding-top: 1.5rem;
    }

    .auth-body-wrap:has(.auth-form--login),
    .auth-body-wrap:has(.auth-form--portal) {
        padding-top: calc(1.5rem + 12px);
    }

    .auth-intro--login,
    .auth-intro--portal {
        margin-bottom: 1.5rem;
    }

    .auth-body-wrap {
        --auth-gutter: 1.25rem;
    }

    .auth-heading {
        font-size: 20px;
    }

    .auth-heading--login,
    .auth-heading--portal {
        font-size: 1.25rem;
    }

    .auth-subtitle {
        font-size: 15px;
    }

    .auth-input {
        font-size: 1rem;
        height: 3.125rem;
    }

    .auth-help-link a {
        font-size: 0.875rem;
    }

    .auth-bottom-content {
        padding: 1.5rem 1.25rem 1rem;
        padding-top: 10px;
    }

    .auth-create-account {
        font-size: 0.9375rem;
    }

    .password-requirements {
        padding: 0.9375rem 1rem;
        border-radius: 16px;
    }

}

@media (max-width: 1023px) {
    .auth-password-requirements-field {
        display: none;
    }

    .auth-fields:has(.auth-password-field .auth-input.has-error) .auth-password-requirements-field,
    .auth-fields:has(.auth-password-field .auth-field-error.is-visible) .auth-password-requirements-field {
        display: block;
    }
}

/* ----------------------------------------------------------
   16. iOS Safe Area
   ---------------------------------------------------------- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .auth-bottom-gradient {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    .auth-page-wrapper::before {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }

    .auth-form-inner {
        min-height: calc(100dvh - 30vh);
    }

    @media (max-width: 767px) {
        .auth-form-inner {
            min-height: -webkit-fill-available;
        }
    }

    @media (min-width: 768px) and (max-width: 1023px) {
        .auth-form-inner {
            min-height: -webkit-fill-available;
        }
    }

    @media (min-width: 1024px) {
        .auth-form-inner {
            min-height: -webkit-fill-available;
        }
    }

    .auth-bottom-gradient {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* ----------------------------------------------------------
   17. Confirm / Landing Page Icons
   ---------------------------------------------------------- */
.auth-confirm-icon {
    display: block;
    width: 80px;
    height: 80px;
    margin: 2.5rem auto 0;
    opacity: 0.9;
    object-fit: contain;
}

@media (max-width: 767px) {
    .auth-confirm-icon {
        width: 64px;
        height: 64px;
        margin-top: 1.5rem;
    }
}

/* ----------------------------------------------------------
   18. Small height screens
   ---------------------------------------------------------- */
@media (max-height: 900px) {
    .auth-error-description:not(.auth-login-error-label) {
        font-size: 0.75rem;
    }

    .auth-error-title {
        font-size: 0.875rem;
    }

    .auth-heading {
        font-size: 1.875rem;
        padding-bottom: 0.75rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }

    .auth-help-link a {
        font-size: 0.875rem;
    }

    .auth-tpi-logo {
        margin-top: 0.625rem;
    }
}

@media (min-width: 768px) {
    .password-requirements {
        padding: 1.125rem 1.25rem;
    }
}

@media (min-width: 1024px) {
    .password-requirements {
        padding: 1.25rem 1.375rem;
    }
}

/* ===== Inner page shell styles ===== */
/* ============================================================
   Inner Page Shell
   Core layout shell + custom sidebar nav matching GUL design

   Shell Breakpoints:
     Phone:   0      – 767px   (hamburger, full-screen sidebar overlay)
     Tablet:  768px  – 1180px  (hamburger, full-screen sidebar overlay)
     Desktop: 1181px +         (always-visible 300px sidebar)

   Content Breakpoints (used by page CSS, not this file):
     576px  – wider-than-phone content padding
     768px  – content typography and grid adjustments
     1200px – wide desktop content padding
     1300px – max content width cap
   ============================================================ */

/* --- Core Layout --- */
.bal-layout {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--bal-body-background) !important;
}

/* Desktop: pin sidebar to full viewport height so layout canvas stays under content. */
@media (min-width: 1181px) {
    .pp-layout.bal-layout,
    .bal-layout {
        /* Sidebar is position:fixed; body is the only in-flow grid child. */
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr !important;
        grid-template-areas: "pp-body" !important;
        background: var(--bal-body-background) !important;
    }

    .bal-mobile-header,
    .pp-layout.bal-layout > .pp-header.bal-mobile-header {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .pp-sidebar.bal-sidebar,
    .bal-sidebar {
        display: block !important;
        visibility: visible !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: var(--bal-sidebar-width) !important;
        min-width: var(--bal-sidebar-width) !important;
        max-width: var(--bal-sidebar-width) !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        background: #ffffff !important;
        background-image: none !important;
        border-radius: 0 !important;
        border-right: 1px solid #e6e6e6 !important;
        z-index: 1001 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .bal-body,
    .pp-body.bal-body,
    .pp-layout.bal-layout .pp-body,
    .pp-layout.bal-layout:not(:has(>.pp-sidebar:nth-of-type(2))) .pp-body {
        grid-area: pp-body !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        margin-left: var(--bal-sidebar-width) !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: var(--bal-body-background) !important;
        position: relative !important;
        z-index: 0 !important;
    }
}

/* iOS/Mac: prevent overscroll so layout/sidebar background doesn't appear to move */
@supports (-webkit-touch-callout: none) {
    .bal-layout {
        min-height: -webkit-fill-available;
    }
}

/* --- Core Header (Phone + Tablet Only) --- */
.bal-mobile-header {
    background-color: var(--bal-sidebar-mobile-background);
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.07) 0,
        rgba(255, 255, 255, 0.07) 1px,
        transparent 1px,
        transparent 10px
    );
    height: var(--bal-mobile-header-height);
    min-height: var(--bal-mobile-header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    /* Above Core's drawer scrim (z-index 1020) so the header toggle stays clickable. */
    z-index: 1030;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    padding: env(safe-area-inset-top, 0px) 0 0;
    box-sizing: border-box;
}

@media (min-width: 1181px) {
    .bal-mobile-header {
        display: none !important;
    }
}

.bal-mobile-logo-link {
    position: absolute;
    left: 50%;
    top: calc(50% + (env(safe-area-inset-top, 0px) / 2));
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: none;
    margin: 0;
    z-index: 1030;
}

.bal-mobile-logo {
    width: 171px;
    height: 108px;
    max-width: 171px;
    max-height: 108px;
    object-fit: contain;
}

/* --- Hamburger / close (left side of mobile header) --- */
.bal-hamburger {
    position: absolute;
    left: calc(12px + env(safe-area-inset-left, 0px));
    right: auto;
    top: calc(50% + (env(safe-area-inset-top, 0px) / 2));
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1031;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

/* Drive close/hamburger visuals from layout drawer state, not aria-expanded.
   After nav-link routing the hamburger can keep a stale aria-expanded=true
   (cascaded Layout instance identity does not change), which left the X up. */
.pp-layout.is-drawer-open .bal-hamburger {
    width: 38px;
    height: 38px;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    background: transparent url("/images/close_x.png") center / contain no-repeat;
    position: absolute;
}

.pp-layout.is-drawer-open .bal-hamburger .pp-icon {
    display: none;
}

.pp-layout:not(.is-drawer-open) .bal-hamburger {
    background: none;
}

.pp-layout:not(.is-drawer-open) .bal-hamburger .pp-icon {
    display: inline-flex;
}

.bal-hamburger .pp-icon {
    color: #ffffff;
    fill: currentColor;
}

@media (min-width: 1181px) {
    .bal-hamburger {
        display: none;
    }
}

/* --- Core Sidebar --- */
.bal-sidebar,
.pp-sidebar.bal-sidebar {
    background: #ffffff !important;
    background-image: none !important;
    z-index: 1001;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    transition: opacity 0.3s ease-in-out;
    border-right: 1px solid #e6e6e6;
}

/* Desktop: sidebar always visible regardless of Core Expanded state */
@media (min-width: 1181px) {
    .bal-sidebar,
    .pp-sidebar.bal-sidebar {
        /* Full-height fixed sidebar rules live in the Core Layout desktop block above. */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Phone + Tablet: base sidebar — hidden by default, full-screen under the header */
@media (max-width: 1180.98px) {
    /* Full-screen menu covers the page; Core's dimming scrim is not needed.
       Keep it non-interactive even if display rules fail — Core scrim is z-index 1020
       and would otherwise sit above a lower sidebar and swallow nav taps. */
    .pp-layout.is-drawer-open .pp-sidebar__scrim,
    .bal-layout .pp-sidebar__scrim {
        display: none !important;
        pointer-events: none !important;
    }

    .bal-sidebar,
    .pp-sidebar.bal-sidebar {
        display: none !important;
        /* Above Core scrim (1020); below sticky mobile header (1030). */
        z-index: 1021;
        position: fixed !important;
        left: 0 !important;
        top: var(--bal-mobile-header-height) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        height: calc(100vh - var(--bal-mobile-header-height)) !important;
        height: calc(100dvh - var(--bal-mobile-header-height)) !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s;
        box-shadow: none;
        border-right: none;
    }

    .bal-body,
    .pp-body.bal-body {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Close control lives in the sticky header bar. */
    .sidebar__toggle {
        display: none !important;
    }

    /* Logo lives in the header bar on phone/tablet. */
    .sidebar__hero-logo-btn {
        display: none !important;
    }

    .sidebar__hero {
        /* Mobile _menu banners are 510×280. */
        aspect-ratio: 510 / 280;
        height: auto;
        min-height: 0;
        --sidebar-logo-gap: 0px;
    }

    .sidebar__hero-img {
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .bal-sidebar .sidebar__main,
    .bal-sidebar .sidebar__header,
    .bal-sidebar .sidebar__hero {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* Keep the striped header visible while the full-screen menu is open.
   Core owns drawer state through is-drawer-open / pp-sidebar--open. */
.pp-layout.is-drawer-open .bal-sidebar,
.pp-layout.is-drawer-open .pp-sidebar.bal-sidebar,
.bal-sidebar.pp-sidebar--open,
.pp-sidebar.bal-sidebar.pp-sidebar--open,
body.mobile-nav-open .bal-sidebar,
body.mobile-nav-open .pp-sidebar.bal-sidebar {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    left: 0 !important;
    top: var(--bal-mobile-header-height) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: calc(100vh - var(--bal-mobile-header-height)) !important;
    height: calc(100dvh - var(--bal-mobile-header-height)) !important;
    z-index: 1021 !important;
    transform: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    overflow-y: auto !important;
}

.pp-layout.is-drawer-open .bal-body,
body.mobile-nav-open .bal-body {
    margin-left: 0 !important;
}

/* --- Sidebar Main Container --- */
.sidebar__main {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
    padding: 0;
    background: #ffffff;
    color: #111111;
}

@media (max-width: 1180.98px) {
    .sidebar__main {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

@media (min-width: 1181px) {
    .sidebar__main {
        overflow-y: auto;
    }
}

/* --- Sidebar Header (hero + property selector) --- */
.sidebar__header {
    display: block;
    margin: 0;
    position: relative;
    flex-shrink: 0;
    z-index: 4;
}

.sidebar__hero {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 400px;
    overflow: hidden;
    background: #000000;
    --sidebar-property-bottom: 12px;
    --sidebar-property-height: 58px;
    --sidebar-logo-gap: 32px;
}

.sidebar__hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #000000;
}

/* Slide-out: property art opens that property's ExternalUrl. */
.sidebar__hero-media--link {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background-color: #000000;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.sidebar__hero-media--link:disabled {
    cursor: default;
}

.sidebar__hero-media--link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}

/* Desktop rail: keep property art decorative; logo button owns the property link. */
@media (min-width: 1181px) {
    .sidebar__hero-media--link {
        pointer-events: none;
        cursor: default;
    }
}

/* Scale to sidebar width; top-anchor keeps property headers high in frame. */
.sidebar__hero-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
}

.sidebar__hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 18%,
        rgba(0, 0, 0, 0.18) 38%,
        rgba(0, 0, 0, 0.55) 58%,
        rgba(0, 0, 0, 0.82) 72%,
        rgba(0, 0, 0, 0.96) 84%,
        #000000 92%,
        #000000 100%
    );
    z-index: 1;
    pointer-events: none;
}

.sidebar__hero-logo-btn {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: calc(var(--sidebar-property-bottom) + var(--sidebar-property-height) + var(--sidebar-logo-gap));
    transform: translateX(-50%);
    z-index: 2;
    width: 149px;
    height: 77px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.sidebar__hero-logo-btn:disabled {
    cursor: default;
}

.sidebar__hero-logo-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.sidebar__hero-logo {
    display: block;
    width: 149px;
    height: 77px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

/* --- Close Button (phone + tablet only, inside sidebar overlay) --- */
.sidebar__toggle {
    background: rgba(0, 0, 0, 0.55);
    border: 1.5px solid #ffffff;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    position: absolute;
    left: 12px;
    right: auto;
    top: calc(12px + env(safe-area-inset-top, 0px));
    transform: none;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.sidebar__toggle .sidebar__toggle-icon,
.sidebar__toggle .pp-icon {
    color: #ffffff;
    fill: currentColor;
}

@media (min-width: 1181px) {
    .sidebar__toggle {
        display: none;
    }
}

/* --- Property selector --- */
.sidebar__property {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: var(--sidebar-property-bottom);
    margin: 0;
    z-index: 3;
}

.sidebar__property-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--sidebar-property-height);
    padding: 9px 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    cursor: pointer;
    text-align: left;
    font-family: var(--bal-font-sans);
}

.sidebar__property-pin {
    display: inline-flex;
    flex: none;
    width: 16px;
    justify-content: center;
}

.sidebar__property-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sidebar__property-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.sidebar__property-subtitle {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.82);
}

.sidebar__property-chevron {
    display: inline-flex;
    flex: none;
    transition: transform 0.2s ease;
}

.sidebar__property.is-open .sidebar__property-chevron {
    transform: rotate(180deg);
}

.sidebar__property-menu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    z-index: 6;
}

.sidebar__property-option {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 16px 12px 44px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    font-family: var(--bal-font-sans);
}

.sidebar__property-option:hover,
.sidebar__property-option.is-selected {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar__property-option-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.sidebar__property-option-subtitle {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.75);
}

/* --- Sidebar Body (nav container) --- */
.sidebar__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overflow-x: hidden;
    padding: 12px 8px 16px;
    position: relative;
    z-index: 1;
    background: #ffffff;
}

/* --- Sidebar Nav --- */
.sidebar__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    gap: 24px;
}

/* --- Nav List --- */
.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--bal-font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

.nav__list--footer {
    margin-top: auto;
    padding-top: 8px;
}

.nav__list:not(:last-child) {
    margin-bottom: 0;
}

/* --- Nav Item --- */
.nav__item:not(:last-child) {
    margin-bottom: 4px;
}

/* --- Nav Link --- */
.sidebar__nav .nav__link {
    color: #333333;
    display: flex;
    align-items: center;
    gap: var(--pp-nav-link-gap);
    padding: var(--pp-nav-link-padding-y) var(--pp-nav-link-padding-x);
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    font-family: "Inter", var(--bal-font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.sidebar__nav .nav__link:hover {
    background: #f3f3f3;
    color: #111111;
}

/* --- Nav Active State --- */
.sidebar__nav .nav__link.is-active {
    font-family: "Inter", var(--bal-font-sans);
    font-weight: 800;
    font-size: 18px;
    background: #111111;
    background-image: none;
    color: #ffffff;
    cursor: default;
    border: none;
    box-shadow: none;
}

.sidebar__nav .nav__link.is-active:hover {
    background: #111111;
    color: #ffffff;
}

/* --- Nav Icons --- */
.nav__icon {
    flex: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    object-fit: contain;
    opacity: 1;
}

/*
 * Plain <img> icons (not CSS masks) — device Safari was clipping
 * -webkit-mask-image / mask-mode: luminance glyphs to thin slivers.
 * Filters recolor the monochrome PNGs to match label / active state.
 */
.nav__icon--img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.nav__icon--img img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* Inactive: match dark nav label */
    filter: brightness(0);
    opacity: 0.85;
}

.sidebar__nav .nav__link.is-active .nav__icon--img img,
.sidebar__nav .nav__link:hover .nav__icon--img img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.sidebar__nav .nav__link:not(.is-active):hover .nav__icon--img img {
    /* Hover row is light gray; keep dark icon */
    filter: brightness(0);
    opacity: 1;
}

.nav__icon--material {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.nav__icon--signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    mix-blend-mode: normal !important;
    filter: none !important;
    opacity: 1 !important;
}

/* --- Nav Text --- */
.nav__text {
    flex: 1;
}

/* --- Sign Out --- */
.nav__item_exit {
    border: none;
    border-image: none;
    padding: 0;
}

.nav__link--signout {
    justify-content: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    font-family: "Inter", var(--bal-font-sans);
    font-weight: 400;
    font-size: 16px;
}

.sidebar__nav .nav__link.nav__link--signout {
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    border-radius: 0;
}

.nav__link--signout:hover,
.sidebar__nav .nav__link.nav__link--signout:hover {
    background: #111111;
    color: #ffffff;
}

.nav__link--signout:hover .nav__icon--signout {
    color: #ffffff;
}

.nav__link--signout .nav__text {
    flex: none;
}

/* --- Core Body Content Area --- */
.bal-body,
.pp-body.bal-body {
    --pp-page-loading-background: var(--bal-body-background);
    background: var(--bal-body-background);
    /* Right pane is the scroll root. Keep this explicit so dialog overflow locks
       (and Radzen no-scroll) unlock cleanly instead of leaving a stuck page. */
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    /* Core defaults body to 100vw, which paints under the sidebar and shows as a gray strip. */
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.bal-content-limit {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
    padding-left: calc(2rem + env(safe-area-inset-left));
    padding-right: calc(2rem + env(safe-area-inset-right));
    padding-bottom: 150px;
}

@media (min-width: 576px) {
    .bal-content-limit {
        width: 100%;
        padding-top: 1rem;
        padding-left: calc(1rem + env(safe-area-inset-left));
        padding-right: calc(1rem + env(safe-area-inset-right));
        padding-bottom: 150px;
    }
}

@media (min-width: 1200px) {
    .bal-content-limit {
        padding-top: 2rem;
        padding-left: calc(2rem + env(safe-area-inset-left));
        padding-right: calc(2rem + env(safe-area-inset-right));
        padding-bottom: 150px;
    }
}

/* --- Tablet (portrait + tall landscape) --- */
@media (min-width: 768px) and (max-width: 1180.98px) {
    :root {
        --bal-mobile-header-content-height: 124px;
    }

    .bal-hamburger {
        left: calc(16px + env(safe-area-inset-left, 0px));
        right: auto;
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .bal-hamburger .pp-icon {
        width: 28px;
        height: 28px;
    }

    .sidebar__hero {
        aspect-ratio: 510 / 280;
        height: auto;
        min-height: 0;
    }

    .nav__link {
        font-size: 16px;
    }

    .nav__link.is-active {
        font-size: 18px;
    }

    .nav__icon {
        width: 26px;
        height: 26px;
    }
}

/* --- Short Phone Landscape --- */
@media (max-width: 1180.98px) and (orientation: landscape) and (max-height: 600px) {
    :root {
        --bal-mobile-header-content-height: 64px;
    }

    .bal-mobile-logo {
        width: 114px;
        height: 72px;
        max-width: 114px;
        max-height: 72px;
    }

    .bal-hamburger {
        left: calc(12px + env(safe-area-inset-left, 0px));
        right: auto;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .bal-hamburger .pp-icon {
        width: 18px;
        height: 15px;
    }

    .sidebar__hero {
        aspect-ratio: 510 / 280;
        height: auto;
        min-height: 0;
    }

    .sidebar__hero-media {
        overflow: hidden;
    }

    .sidebar__hero-img {
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .sidebar__hero-logo-btn {
        width: 149px;
        height: 77px;
    }

    .sidebar__hero-logo {
        width: 149px;
        height: 77px;
    }

    .sidebar__property {
        left: 10px;
        right: 10px;
    }

    .sidebar__property-trigger {
        padding: 8px 10px;
    }

    .sidebar__body {
        padding: 10px 10px 12px;
    }

    .nav__item:not(:last-child) {
        margin-bottom: 2px;
    }

    .nav__link {
        font-size: 13px;
    }

    .nav__icon {
        width: 20px;
        height: 20px;
    }

    .nav__icon--material {
        font-size: 18px;
    }
}

/* --- Short landscape touch devices: keep mobile shell instead of desktop nav --- */
@media (min-width: 1181px) and (orientation: landscape) and (pointer: coarse) and (max-height: 500px) {
    :root {
        --bal-mobile-header-content-height: 64px;
    }

    .bal-mobile-header {
        display: flex !important;
    }

    .bal-mobile-logo {
        width: 114px;
        height: 72px;
        max-width: 114px;
        max-height: 72px;
    }

    .bal-hamburger {
        display: inline-flex !important;
        left: calc(12px + env(safe-area-inset-left, 0px));
        right: auto;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
    }

    .bal-hamburger .pp-icon {
        width: 18px;
        height: 15px;
    }

    .bal-sidebar,
    .pp-sidebar.bal-sidebar {
        display: none !important;
        z-index: 1021;
        position: fixed !important;
        left: 0 !important;
        top: var(--bal-mobile-header-height) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: calc(100vh - var(--bal-mobile-header-height)) !important;
        height: calc(100dvh - var(--bal-mobile-header-height)) !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s;
    }

    .bal-body,
    .pp-body.bal-body {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .pp-layout.is-drawer-open .bal-sidebar,
    .pp-layout.is-drawer-open .pp-sidebar.bal-sidebar,
    .bal-sidebar.pp-sidebar--open,
    .pp-sidebar.bal-sidebar.pp-sidebar--open,
    body.mobile-nav-open .bal-sidebar,
    body.mobile-nav-open .pp-sidebar.bal-sidebar {
        display: block !important;
        width: 100vw !important;
        max-width: 100vw !important;
        top: var(--bal-mobile-header-height) !important;
        height: calc(100vh - var(--bal-mobile-header-height)) !important;
        height: calc(100dvh - var(--bal-mobile-header-height)) !important;
        z-index: 1021 !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: auto !important;
    }

    .sidebar__toggle {
        display: none !important;
    }

    .nav__link {
        font-size: 13px;
    }

    .nav__icon {
        width: 20px;
        height: 20px;
    }

    .nav__icon--material {
        font-size: 18px;
    }
}

/* Ultra-short landscape devices */
@media (max-width: 1180px) and (orientation: landscape) and (max-height: 500px) {
    .nav__link {
        font-size: 12px;
    }
}

/* --- Short viewport (desktop shell ≤800px height) --- */
@media (max-height: 800px) and (min-width: 1181px) and (min-height: 501px) {
    .sidebar__body {
        padding-top: 12px;
    }
}

/* --- iOS safe area bottom padding --- */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 1180.98px), (min-width: 1181px) and (orientation: landscape) and (pointer: coarse) and (max-height: 500px) {
        .sidebar__nav {
            padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
        }
    }
}

/* ===== Player offer styles ===== */
/* GUL personalized offers page (v2 parity) */

.bal-content-limit:has(.offers-page) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0;
}

.bal-content-limit:has(.drawing-selection-page) {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}



@media (min-width: 768px) {
    .offers-page.layout__main {
        --pp-offers-layout-main-max-height: none;
        --pp-offers-layout-main-overflow-y: visible;
    }
}


@media (min-width: 768px) {
    .offers-page .widgets {
        gap: 30px;
    }
}

.offers-page .widget {
    border-radius: var(--pp-card-radius, 0.5rem);
    background: var(--pp-card-background, #fff);
    border: 0.5px solid #a49066;
    box-shadow: var(--pp-card-shadow, none);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.offers-page .widget__header {
    font-family: "Suisse Works-Bold", Helvetica;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0;
    padding: 16px 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.48) 100%), radial-gradient(50% 76.98% at 50.24% 106.35%, rgba(164, 144, 102, 0.66) 45%, rgba(21, 21, 21, 0.66) 100%);
    color: #fff;
    border-bottom: 3px solid #a49066;
}

.offers-page .widget__heading {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .offers-page .widget__heading {
        font-size: 24px;
    }
}

.offers-page .widget__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 15px;
}

@media (min-width: 768px) {
    .offers-page .widget__body {
        padding: 30px 25px;
    }
}

.offers-page .offers {
    width: 100%;
}

@media (min-width: 768px) {
    .offers-page .offers__grid {
        gap: 32px;
    }
}

.offers-page .offers__empty {
    margin: 0;
    font-family: "Suisse Int'l-Regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #0e0e0e;
}

.offers-page .offer-card {
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ede9e0;
    color: #333;
    box-shadow: none;
}

@media (min-width: 768px) {
    .offers-page .offer-card {
        padding: 32px;
    }
}

.offers-page .offer-card__info {
    flex: 1;
    display: flex;
    align-items: center;
}

.offers-page .offer-card__details {
    min-width: 0;
}

.offers-page .offer-card__heading {
    margin: 0 0 12px;
    font-family: "Suisse Works-Bold", Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: #0e0e0e;
    font-size: 22px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .offers-page .offer-card__heading {
        font-size: 38px;
    }
}

.offers-page .offer-card__heading-text {
    font-size: 18px !important;
    font-family: "Suisse Works-Bold", Helvetica;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0;
}

/* Prefer system fonts here so date slashes are not confused with periods (Suisse solidus on some iOS layouts). */
.offers-page .offer-card__date,
.offers-page .offer-card__dates {
    font-size: 14px !important;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    color: #0e0e0e !important;
    margin-bottom: 20px;
    white-space: normal;
    word-break: normal;
}

.offers-page .stat__value-highlight {
    color: #ac5e35 !important;
}

.drawing-selection-page .offer-card__entries {
    color: #ac5e35;
    font-family: "Suisse Int'l-Regular", Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 14px;
}

.drawing-selection-page .layout__limit {
    max-width: 1180px;
}

@media (min-width: 768px) {
    .drawing-selection-page .offer-card {
        width: min(100%, 1085px);
        margin-left: auto;
        margin-right: auto;
    }
}

.offers-page .disclaimer-span {
    display: block;
    font-size: 16px !important;
    font-family: var(--bal-font-sans);
    font-style: italic;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0;
    color: #0e0e0e;
}

@media (max-width: 767px) {
    .drawing-selection-page .offer-card__entries {
        font-size: 24px;
    }

    .offers-page .disclaimer-span {
        font-size: 12px !important;
    }
}

/* ===== Profile view styles ===== */
/* GUL profile view page (v2 parity + Online Account block) */
.user-info__name {
    word-break: break-word;
    overflow-wrap: anywhere;
}
.user-info__name-line {
    word-break: break-word;
    overflow-wrap: anywhere;
}
.bal-content-limit:has(.profile-view-page) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0;
}
.user-info__preview-img {
    max-width: 100%;
    min-width: 0;
    height: auto;
}


.profile-view-page .widgets--profile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.profile-view-page .widget {
    border-radius: 0.5rem;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.profile-view-page .widget--profile .widget__header,
.profile-view-page .widget__header {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 0;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 15px;
    align-items: center;
    background: #000;
    background-image: none;
    color: #fff;
    border-bottom: none;
}

@media (min-width: 768px) {
    .profile-view-page .widget--profile .widget__header,
    .profile-view-page .widget__header {
        padding: 1.15rem 2rem;
    }
}

.profile-view-page .widget__heading {
    margin: 0;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
}

.profile-view-page .widget__body--player-info,
.profile-view-page .widget__body--portal-account {
    background-color: #fff;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(0, 0, 0, 0.035) 0,
        rgba(0, 0, 0, 0.035) 1px,
        transparent 1px,
        transparent 10px
    );
}

.profile-view-page .widget__body--portal-account {
    padding: 1.5rem 1.25rem 1.75rem;
}

.profile-view-page .widget__body--player-info {
    padding: 1.5rem 1.25rem 1.75rem;
}

@media (min-width: 768px) {
    .profile-view-page .widget__body--portal-account {
        padding: 2rem 2.5rem 2.25rem;
    }

    /* Desktop stays at the original side padding. */
    .profile-view-page .widget__body--player-info {
        padding: 2rem 2.5rem 2.25rem;
    }
}

/* Match account screen: small card left, name + rewards # on the right. */
.profile-view-page .player-balances--profile {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
}

.profile-view-page .player-balances--profile .player-balances__card {
    flex: 0 0 auto;
}

.profile-view-page .player-balances--profile .player-balances__spacer {
    flex: 1 1 auto;
    min-width: 2rem;
    align-self: stretch;
}

.profile-view-page .player-balances--profile .player-balances__card-img {
    width: 142px;
    height: 115px;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.profile-view-page .player-balances--profile .player-balances__details {
    flex: 0 1 auto;
    width: max-content;
    max-width: calc(100% - 142px - 2rem);
    min-width: 0;
    padding-right: 0.5rem;
    box-sizing: border-box;
    text-align: left;
    /* Cap the name column so long First/Last can be autoshrunk instead of clipped. */
    overflow: hidden;
}

.profile-view-page .player-balances--profile .player-balances__name {
    font-size: 22px;
}

.profile-view-page .player-balances--profile .player-balances__card-number {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.profile-view-page .player-balances--profile .player-balances__card-number-label {
    font-size: 13px;
    color: #6b6b6b;
}

.profile-view-page .player-balances--profile .player-balances__card-number-value {
    font-size: 15px;
    font-weight: 800;
    color: #111;
}

/* Tablet + desktop: Profile Player Info = Figma desktop cluster
   (large card + name grouped and centered — not the mobile edge-spacer row). */
@media (min-width: 768px) {
    .profile-view-page .player-balances--profile {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        grid-template-columns: none;
        grid-template-areas: none;
    }

    /* Desktop cluster keeps card and name together; spacer is mobile-only. */
    .profile-view-page .player-balances--profile .player-balances__spacer {
        display: none;
    }

    .profile-view-page .player-balances--profile .player-balances__card,
    .profile-view-page .player-balances--profile .player-balances__identity,
    .profile-view-page .player-balances--profile .player-balances__identity-text,
    .profile-view-page .player-balances--profile .player-balances__details {
        grid-area: auto;
    }

    .profile-view-page .player-balances--profile .player-balances__card-img {
        width: min(272px, 36vw);
        height: auto;
        aspect-ratio: 142 / 115;
        max-width: 272px;
    }

    .profile-view-page .player-balances--profile .player-balances__details {
        flex: 0 1 auto;
        width: max-content;
        max-width: none;
        padding-right: 0;
    }

    .profile-view-page .player-balances--profile .player-balances__name {
        font-size: 45px;
        line-height: 1.05;
        font-weight: 800;
    }

    .profile-view-page .player-balances--profile .player-balances__name-line {
        display: inline;
        white-space: nowrap;
    }

    .profile-view-page .player-balances--profile .player-balances__name-line + .player-balances__name-line::before {
        content: "\00a0";
    }

    .profile-view-page .player-balances--profile .player-balances__card-number {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        margin-top: 0.55rem;
    }

    .profile-view-page .player-balances--profile .player-balances__card-number-label {
        font-size: 16px;
        color: #6b6b6b;
    }

    .profile-view-page .player-balances--profile .player-balances__card-number-value {
        font-size: 20px;
        font-weight: 800;
        color: #111;
    }
}

.profile-view-page .portal-account__intro {
    margin: 0 0 1.25rem;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #6b6b6b;
    text-align: left;
}

.profile-view-page .details-grid--boxed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .profile-view-page .details-grid--boxed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.profile-view-page .details-cell__content {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-view-page .details-actions--inline {
    flex: 0 0 auto;
    margin-top: 0;
    justify-content: flex-end;
}

.profile-view-page .details-grid--boxed.is-stacked {
    grid-template-columns: minmax(0, 1fr);
}

.profile-view-page .widget--banner {
    background-color: #ede9e2;
    border-color: transparent;
    border-radius: 8px;
    box-shadow: none;
    padding: 14px 20px;
    text-align: center;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.35;
    color: #000;
}

@media (min-width: 768px) {
    .profile-view-page .widget--banner {
        font-size: 18px;
        padding: 16px 24px;
    }
}

.profile-view-page .widget--error {
    background-color: #ec0000;
    color: #fff;
    border: 1px solid #ec0000;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: "Suisse Int'l-Regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
}

.profile-view-page .widget--success {
    background-color: #1ba85f;
    color: #fff;
    border: 1px solid #1ba85f;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: "Suisse Int'l-Regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
}

.profile-view-page .user-info--card-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    min-width: 0;
    width: 100%;
    padding-inline: 8px;
    box-sizing: border-box;
}

.profile-view-page .user-info__card-text {
    flex: 1 1 24rem;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.profile-view-page .user-info__name-line {
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
    font-family: "Suisse Works-Bold", Helvetica, Arial, sans-serif;
    font-weight: 800;
    color: #0e0e0e;
    font-size: clamp(1.125rem, 2vw, 1.625rem);
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-align: left;
}

.profile-view-page .user-info__name-line .user-info__name {
    font-family: inherit;
    font-weight: inherit;
}

.profile-view-page .user-info__name-gap {
    white-space: pre;
}

.profile-view-page .user-info__divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #a49066, transparent);
    margin: 0 0 16px;
    border: none;
    flex-shrink: 0;
}

.profile-view-page .user-info__data {
    margin: 0;
}

.profile-view-page .user-info__preview {
    flex: 0 1 clamp(240px, 32vw, 350px);
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    align-self: flex-start;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.profile-view-page .user-info__preview-img {
    width: 100%;
    max-width: min(clamp(240px, 32vw, 350px), 100%);
    min-width: 0;
    height: auto;
    aspect-ratio: 350 / 220;
    margin: 0;
    display: block;
    border-radius: 22px;
    object-fit: contain;
}

.profile-view-page .data__property {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0;
    color: #6b6b6b;
}

.profile-view-page .data__value {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0e0e0e;
    line-height: 1.35;
}

.profile-view-page .data__value--password-note {
    color: #4a4a4a;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
}


.profile-view-page .details-cell {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    container-type: inline-size;
}

.profile-view-page .details-cell.details-cell--boxed {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    height: 124px;
    padding: 1rem 1.15rem;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    text-align: left;
    box-sizing: border-box;
}

/* Figma mobile: credential cards are a centered vertical stack (label/value, then EDIT). */
@media (max-width: 767.98px) {
    .profile-view-page .details-cell.details-cell--boxed {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: auto;
        min-height: 124px;
        gap: 1.1rem;
        padding: 1.35rem 1.15rem;
    }

    .profile-view-page .details-cell--boxed .details-cell__content {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .profile-view-page .details-cell--boxed .data__property,
    .profile-view-page .details-cell--boxed .data__value {
        text-align: center;
    }

    .profile-view-page .details-cell--boxed .details-actions--inline {
        justify-content: center;
        width: 100%;
        margin-top: 0;
    }

    .profile-view-page .details-cell--boxed .details-value--email {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 16px;
    }
}

/* When JS stacks for a long email on wider viewports, keep the same centered column. */
.profile-view-page .details-grid--boxed.is-stacked .details-cell--boxed {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    min-height: 124px;
}

.profile-view-page .details-grid--boxed.is-stacked .details-cell--boxed .details-cell__content {
    align-items: center;
    text-align: center;
    width: 100%;
}

.profile-view-page .details-grid--boxed.is-stacked .details-cell--boxed .details-actions--inline {
    justify-content: center;
    width: 100%;
}


/* Profile emails must remain a single uninterrupted value in row layout.
   If the real rendered width cannot fit, JS must force stacked layout before
   the user sees a shortened email. Do not remove this without replacing the
   same measured-width safeguard. */
.profile-view-page .details-value--email {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    font-size: clamp(12px, 4.5cqw, 16px);
    line-height: 1.4;
    min-width: 0;
}

/* When stacked (JS-driven or breakpoint-driven), give the email full width. */
.profile-view-page .is-stacked .details-value--email {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.profile-view-page .details-divider {
    width: 2px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, #a49066, transparent);
    opacity: 0.5;
}

.profile-view-page .details-actions {
    display: flex;
    justify-content: center;
}

.profile-view-page .details-actions--column {
    margin-top: 8px;
}

.profile-view-page .btn-edit,
.profile-edit-page .btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 10px 22px;
    border-radius: 4px;
    border: none;
    background: #a49066;
    color: #fff;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.profile-view-page .btn-edit--ghost,
.profile-view-page .btn-edit.btn-edit--ghost,
.profile-view-page .pp-btn.btn-edit--ghost {
    background: #fff !important;
    color: #6b6b6b !important;
    border: 1px solid #d0d0d0 !important;
    box-shadow: none !important;
}

.profile-view-page .btn-edit--ghost:hover,
.profile-view-page .btn-edit--ghost:focus-visible,
.profile-view-page .btn-edit.btn-edit--ghost:hover,
.profile-view-page .btn-edit.btn-edit--ghost:focus-visible,
.profile-view-page .pp-btn.btn-edit--ghost:hover,
.profile-view-page .pp-btn.btn-edit--ghost:focus-visible {
    opacity: 1;
    background: #f7f7f7 !important;
}

.profile-view-page .btn-edit:hover,
.profile-view-page .btn-edit:focus-visible,
.profile-edit-page .btn-edit:hover,
.profile-edit-page .btn-edit:focus-visible {
    opacity: 0.8;
}

/* JS-driven stacked layout for long email addresses on wide viewports */
.profile-view-page .details-grid--three.is-stacked {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-bottom: 16px;
}

.profile-view-page .details-grid--three.is-stacked > .details-cell {
    padding: 14px 0;
}

.profile-view-page .details-grid--three.is-stacked > .details-cell:first-child {
    padding-top: 0;
}

.profile-view-page .details-grid--three.is-stacked > .details-cell:last-child {
    padding-bottom: 0;
}

.profile-view-page .details-grid--three.is-stacked > .details-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #a49066, transparent);
}

.profile-view-page .details-grid--three.is-stacked + .details-actions {
    margin-top: 4px;
}

.profile-view-page .details-grid--three.is-stacked + .details-actions .btn-edit {
    width: 100%;
    max-width: 360px;
    padding: 14px 22px;
    font-size: 16px;
}

.profile-view-page .details-grid--two.is-stacked {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.profile-view-page .details-grid--two.is-stacked > .details-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #a49066, transparent);
}

/* Contact Details: stack before columns collide at narrower widths */
@media (max-width: 1299px) {
    .profile-view-page .details-grid--three {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-bottom: 16px;
    }

    .profile-view-page .details-grid--three > .details-cell {
        padding: 14px 0;
    }

    .profile-view-page .details-grid--three > .details-cell:first-child {
        padding-top: 0;
    }

    .profile-view-page .details-grid--three > .details-cell:last-child {
        padding-bottom: 0;
    }

    .profile-view-page .details-grid--three > .details-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, #a49066, transparent);
    }

    .profile-view-page .details-grid--three + .details-actions {
        margin-top: 4px;
    }

    .profile-view-page .details-grid--three + .details-actions .btn-edit {
        width: 100%;
        max-width: 360px;
        padding: 14px 22px;
        font-size: 16px;
    }

    /* Stacked by breakpoint — show the full email, never truncate. */
    .profile-view-page .details-grid--three .details-value--email {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 575px) {
    .profile-view-page .user-info--card-layout {
        gap: 16px;
    }

    .profile-view-page .user-info__card-text {
        max-width: none;
        gap: 12px;
    }

    .profile-view-page .user-info__preview {
        flex: 0 1 220px;
        max-width: 50%;
    }

    .profile-view-page .user-info__preview-img {
        max-width: min(220px, 100%);
        border-radius: 10px;
    }

    .profile-view-page .widgets > .widget:first-child .widget__header {
        padding: 1rem 1.25rem;
    }

    .profile-view-page .widgets > .widget:first-child .widget__body {
        padding: 0.875rem 0.875rem 1rem;
    }

    .profile-view-page .widgets > .widget:first-child .widget__body.widget__body--player-info {
        padding: 1.5rem 2.5rem 1.75rem;
    }

    .profile-view-page .widgets > .widget:first-child .user-info--card-layout {
        align-items: flex-start;
        gap: 12px;
    }

    .profile-view-page .widgets > .widget:first-child .user-info__card-text {
        gap: 0.5rem;
    }

    .profile-view-page .widgets > .widget:first-child .user-info__preview {
        flex: 0 1 200px;
        align-self: flex-start;
    }

    .profile-view-page .widgets > .widget:first-child .user-info__preview-img {
        max-width: min(200px, 100%);
        aspect-ratio: auto;
    }

    .profile-view-page .details-grid--two {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .profile-view-page .details-grid--two > .details-divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent, #a49066, transparent);
    }

    .profile-view-page .details-cell {
        text-align: left;
    }

    /* Stacked by breakpoint — show the full email, never truncate. */
    .profile-view-page .details-grid--two .details-value--email {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .profile-view-page .user-info--card-layout {
        gap: 20px;
    }

    .profile-view-page .user-info__card-text {
        flex-basis: 0;
    }

    .profile-view-page .user-info__preview {
        flex-basis: 280px;
    }

    .profile-view-page .user-info__preview-img {
        max-width: min(280px, 100%);
    }
}

/* Mobile / tablet: vertical gold accent left of player number; hide horizontal divider */
@media (max-width: 767.98px) {
    .profile-view-page .widgets > .widget:first-child .user-info--card-layout {
        align-items: flex-start;
    }

    .profile-view-page .widgets > .widget:first-child .user-info__preview {
        align-self: flex-start;
    }

    /* Beat later first-child body overrides — mobile-only side inset. */
    .profile-view-page .widgets > .widget:first-child .widget__body.widget__body--player-info,
    .profile-view-page .widget__body.widget__body--player-info {
        padding: 1.5rem 2.5rem 1.75rem;
    }

    .profile-view-page .user-info__divider {
        display: none;
    }

    .profile-view-page .user-info__data {
        border-left: 3px solid;
        border-image: linear-gradient(to bottom, #c9a84c, #a49066) 1;
        padding-left: 12px;
    }
}

@media (max-width: 402px) {
    .profile-view-page .user-info--card-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-view-page .user-info__card-text {
        max-width: 100%;
        flex: 0 1 auto;
    }

    .profile-view-page .user-info__preview {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        margin-left: 0;
        align-self: stretch;
        justify-content: center;
        padding-top: 2rem;
    }

    .profile-view-page .user-info__preview-img {
        max-width: 100%;
    }

    .profile-view-page .widgets > .widget:first-child .widget__body {
        padding-top: 0.75rem;
    }

    .profile-view-page .widgets > .widget:first-child .user-info--card-layout {
        gap: 0.75rem;
    }
}
/* Profile edit page */

.bal-content-limit:has(.profile-edit-page) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0;
}


@media (min-width: 768px) {
    .profile-edit-page.layout__main {
        max-height: none;
        overflow-y: visible;
    }
}


@media (min-width: 768px) {
    .profile-edit-page .widgets {
        gap: 30px;
    }
}

.profile-edit-page .widget {
    border-radius: var(--pp-card-radius, 0.5rem);
    background: var(--pp-card-background, #fff);
    border: 0.5px solid #a49066;
    box-shadow: var(--pp-card-shadow, none);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.profile-edit-page .widget__header {
    font-family: "Suisse Works-Bold", Helvetica;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0;
    padding: 16px 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.48) 100%), radial-gradient(50% 76.98% at 50.24% 106.35%, rgba(164, 144, 102, 0.66) 45%, rgba(21, 21, 21, 0.66) 100%);
    color: #fff;
    border-bottom: 3px solid #a49066;
}



.profile-edit-page .profile-edit-banner {
    background-color: #ede9e2;
    border-color: transparent;
    border-radius: 8px;
    padding: 14px 20px;
    text-align: center;
}

.profile-edit-page .profile-edit-banner__title {
    font-family: "Suisse Works-Bold", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.2;
    color: #0e0e0e;
    margin-bottom: 2px;
}

.profile-edit-page .profile-edit-banner__message {
    font-family: "Suisse Works-Bold", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    color: #0e0e0e;
}

@media (min-width: 768px) {
    .profile-edit-page .profile-edit-banner__title {
        font-size: 36px;
    }

    .profile-edit-page .profile-edit-banner__message {
        font-size: 16px;
    }
}

.profile-edit-page .profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 992px) {
    .profile-edit-page .profile-edit-columns {
        grid-template-columns: minmax(0, 1.2fr) 2px minmax(0, 1fr) 2px minmax(0, 1fr);
        gap: 16px;
    }
}

.profile-edit-page .profile-edit-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-edit-page .profile-edit-column--address .edit-input {
    margin-bottom: 2px;
}

.profile-edit-page .profile-edit-column--contact {
    height: 100%;
    justify-content: center;
}

.profile-edit-page .profile-edit-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #a49066, transparent);
    opacity: 0.5;
}

@media (min-width: 992px) {
    .profile-edit-page .profile-edit-divider {
        width: 2px;
        height: auto;
        align-self: stretch;
        background: linear-gradient(to bottom, transparent, #a49066, transparent);
    }
}

.profile-edit-page .profile-edit-note {
    margin: 0 0 6px;
    font-family: "Suisse Int'l-Regular", Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #0e0e0e;
    text-align: center;
}

.profile-edit-page .edit-label {
    font-family: "Suisse Works-Bold", Helvetica, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #0e0e0e;
    text-align: center;
    margin-bottom: 2px;
}

.profile-edit-page .edit-input {
    width: 100%;
    border: 1px solid #bababa;
    border-radius: 8px;
    padding: 11px 12px;
    font-family: "Suisse Int'l-Regular", Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #0e0e0e;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.profile-edit-page .edit-input:focus {
    border-color: #a49066;
}

.profile-edit-page .edit-input:disabled {
    background: #e9e9e9;
    color: #8a8a8a;
    border-color: #d2d2d2;
}

.profile-edit-page .edit-input.is-error {
    border-color: #ec0000;
}

.profile-edit-page .edit-input.is-error:focus {
    border-color: #ec0000;
}

.profile-edit-page .edit-error {
    font-family: "Suisse Int'l-Regular", Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #ec0000;
    text-align: center;
}

.profile-edit-page .edit-field-message {
    display: block;
    margin-top: 2px;
    min-height: 20px;
    line-height: 17px;
}

.profile-edit-page .edit-empty-text {
    font-family: "Suisse Int'l-Regular", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #0e0e0e;
    text-align: center;
    margin: 0;
}

.profile-edit-page .edit-actions {
    display: flex;
    justify-content: center;
    margin-top: 6px;
    gap: 0;
    flex-wrap: wrap;
}

.profile-edit-page .edit-actions .btn-edit {
    min-width: 260px;
}

.profile-edit-page .edit-actions .btn-edit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-edit-page .widget--error {
    background-color: #ec0000;
    color: #fff;
    border: 1px solid #ec0000;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: "Suisse Int'l-Regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}


.profile-edit-page .widget--success {
    background-color: #1ba85f;
    color: #fff;
    border: 1px solid #1ba85f;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: "Suisse Int'l-Regular", Helvetica, Arial, sans-serif;
    font-size: 16px;
}

.profile-edit-page .details-grid {
    display: grid;
    align-items: start;
}


.profile-edit-page .details-cell {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    container-type: inline-size;
}

.profile-edit-page .data__property {
    font-family: "Suisse Works-Bold", Helvetica;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    color: #0e0e0e;
}

.profile-edit-page .data__value {
    font-family: "Suisse Int'l-Regular", Helvetica;
    font-size: 16px;
    font-weight: 400;
    color: #0e0e0e;
    line-height: 1.35;
}

/* Edit page is always single-column — show the full email, never truncate. */
.profile-edit-page .details-value--email {
    overflow-wrap: anywhere;
    font-size: clamp(12px, 4.5cqw, 16px);
    line-height: 1.4;
    min-width: 0;
}


/* ===== Account widget styles ===== */
/* Account widgets aligned to v2 GUL common.css */

.bal-content-limit:has(.account-info-page) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 0;
    min-width: 0;
}

/* Keep page inset around the rounded mailer card (Figma ~50px top) */
.bal-content-limit:has(.digital-mailer-page) {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding-top: 50px;
    padding-left: calc(2rem + env(safe-area-inset-left));
    padding-right: calc(2rem + env(safe-area-inset-right));
    padding-bottom: 150px;
}

@media (min-width: 576px) {
    .bal-content-limit:has(.digital-mailer-page) {
        padding-left: calc(1rem + env(safe-area-inset-left));
        padding-right: calc(1rem + env(safe-area-inset-right));
    }
}

@media (min-width: 1200px) {
    .bal-content-limit:has(.digital-mailer-page) {
        padding-left: calc(2rem + env(safe-area-inset-left));
        padding-right: calc(2rem + env(safe-area-inset-right));
    }
}

@media (max-width: 575.98px) {
    .bal-content-limit:has(.digital-mailer-page) {
        padding-top: 1rem;
        padding-left: calc(1rem + env(safe-area-inset-left));
        padding-right: calc(1rem + env(safe-area-inset-right));
    }
}

/* --- Figma account dashboard (Player Info & Balances / Bally Rewards) --- */

.account-info-page .widgets--account {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.account-info-page .widget--account {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background: #fff;
}

.account-info-page .widget--account .widget__header {
    background: #000;
    background-image: none;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
    .account-info-page .widget--account .widget__header {
        padding: 1.15rem 2rem;
    }
}

.account-info-page .widget--account .widget__heading {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
}

.account-info-page .widget__body--player-balances {
    padding: 1.5rem 1.25rem 1.75rem;
    background-color: #fff;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(0, 0, 0, 0.035) 0,
        rgba(0, 0, 0, 0.035) 1px,
        transparent 1px,
        transparent 10px
    );
}

@media (min-width: 768px) {
    /* Desktop stays at the original side padding. */
    .account-info-page .widget__body--player-balances {
        padding: 2rem 2.5rem 2.25rem;
    }
}

.player-balances {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

/* Mobile / default: card left (142×115), name + account right; balances below. */
.player-balances__identity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    min-width: 0;
    width: 100%;
}

.player-balances__card {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.player-balances__card-img {
    width: 142px;
    height: 115px;
    max-width: none;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

/* Grows so name / "Bally Rewards Card #" sit against the right padding,
   matching the card's inset from the left. */
.player-balances__spacer {
    flex: 1 1 auto;
    min-width: 2rem;
    align-self: stretch;
}

.player-balances__identity-text {
    flex: 0 1 auto;
    width: max-content;
    max-width: calc(100% - 142px - 2rem);
    min-width: 0;
    padding-right: 0.5rem;
    box-sizing: border-box;
    /* Cap the name column so long First/Last can be autoshrunk instead of clipped. */
    overflow: hidden;
}

.player-balances__details {
    min-width: 0;
}

.player-balances__name {
    margin: 0;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #111;
    max-width: 100%;
    min-width: 0;
    /* Keep First/Last on their own lines; don't mid-word wrap when the column is narrow */
    word-break: normal;
    overflow-wrap: normal;
}

.player-balances__name-line {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.player-balances__card-number {
    margin: 0.4rem 0 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.15rem;
}

.player-balances__card-number-label {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.3;
    color: #6b6b6b;
    /* Wrap at spaces when the column is tight — don't shrink the type */
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    max-width: 100%;
}

.player-balances__card-number-value {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
    color: #111;
    white-space: nowrap;
}

.player-balances__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0;
    align-items: start;
    width: 100%;
    min-width: 0;
    container-type: inline-size;
    container-name: player-balances-stats;
}

.player-balances__stat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

@media (min-width: 576px) {
    /* Subgrid: label row + value row shared across columns so values stay
       aligned when some labels wrap, without forcing empty space under
       single-line labels. */
    .player-balances__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto auto;
        gap: 0.25rem clamp(0.35rem, 2.5cqi, 1.25rem);
        align-items: start;
    }

    .player-balances__stat {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 2;
        row-gap: 0;
    }

    .player-balances__stat-label {
        margin-bottom: 0;
    }

    .player-balances__name {
        font-size: 28px;
    }

    .player-balances__card-number-label {
        font-size: 15px;
    }

    .player-balances__card-number-value {
        font-size: 18px;
    }
}

/* Account tablet + desktop: Figma wide Player Info (large card left,
   name + card # + balances on the right). Shell stays hamburger ≤1180. */
@media (min-width: 768px) {
    .account-info-page .player-balances {
        display: grid;
        /* auto card column so name/balances keep room for desktop type on tablet */
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "card identity"
            "card details";
        column-gap: clamp(1.5rem, 4vw, 5rem);
        row-gap: 1.25rem;
        align-items: start;
    }

    .account-info-page .player-balances__identity {
        grid-area: identity;
        display: contents;
    }

    /* Account desktop grid replaces the mobile flex spacer. */
    .account-info-page .player-balances__spacer {
        display: none;
    }

    .account-info-page .player-balances__card {
        grid-area: card;
        justify-content: center;
        align-self: center;
    }

    .account-info-page .player-balances__card-img {
        /* 272px leaves room for one-line 45px name on iPad; full 320px from ~1024 up */
        width: min(272px, 34vw);
        height: auto;
        aspect-ratio: 142 / 115;
    }

    @media (min-width: 1024px) {
        .account-info-page .player-balances__card-img {
            width: min(100%, 320px);
        }
    }

    .account-info-page .player-balances__identity-text {
        grid-area: identity;
        max-width: none;
        width: auto;
        padding-right: 0;
    }

    .account-info-page .player-balances__details {
        grid-area: details;
        min-width: 0;
    }

    .account-info-page .player-balances__name {
        font-size: clamp(2rem, 5.2vw, 2.8125rem); /* 45px when width allows */
        line-height: 1.05;
        font-weight: 800;
        white-space: nowrap;
    }

    /* Desktop Figma: First Last on one line */
    .account-info-page .player-balances__name-line {
        display: inline;
        white-space: nowrap;
    }

    .account-info-page .player-balances__name-line + .player-balances__name-line::before {
        content: "\00a0";
    }

    .account-info-page .player-balances__card-number {
        margin: 0.55rem 0 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .account-info-page .player-balances__card-number-label {
        font-size: 16px;
        color: #6b6b6b;
    }

    .account-info-page .player-balances__card-number-value {
        font-size: 20px;
        font-weight: 800;
        color: #111;
    }

    .account-info-page .player-balances__stats {
        margin-top: 0.5rem;
    }
}

.player-balances__stat-label {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    /* Autosize to the stats row width so tablet 3-up columns don't collide. */
    font-size: clamp(0.6875rem, 3.6cqi, 1.125rem);
    line-height: 1.25;
    color: #6b6b6b;
    margin-bottom: 0.25rem;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.player-balances__stat-value {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(0.9375rem, 5.6cqi, 1.75rem);
    line-height: 1.1;
    color: #111;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fallback when container query units are unavailable */
@supports not (font-size: 1cqi) {
    .player-balances__stat-label {
        font-size: 18px;
    }

    .player-balances__stat-value {
        font-size: 28px;
    }

    @media (min-width: 768px) and (max-width: 1180.98px) {
        .player-balances__stat-label {
            font-size: 13px;
        }

        .player-balances__stat-value {
            font-size: 18px;
        }
    }
}

.player-balances__note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.35;
    color: #6b6b6b;
}

.player-balances__note-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin-top: 0.05rem;
    display: block;
    object-fit: contain;
}

.account-info-page .widget.widget--rewards .widget__body.widget__body--rewards {
    padding: 1.75rem 0 0;
    overflow: visible;
    background-color: #fff;
    /* Same diagonal hatch as the top card, but only from mid-card down. */
    background-image:
        linear-gradient(#fff, #fff),
        repeating-linear-gradient(
            -45deg,
            rgba(0, 0, 0, 0.035) 0,
            rgba(0, 0, 0, 0.035) 1px,
            transparent 1px,
            transparent 10px
        );
    background-size: 100% 50%, auto;
    background-position: top left, top left;
    background-repeat: no-repeat, repeat;
}

@media (min-width: 768px) {
    .account-info-page .widget.widget--rewards .widget__body.widget__body--rewards {
        padding: 2.25rem 0 0;
    }
}

.account-info-page .widget--rewards .rewards-status,
.account-info-page .widget--rewards .rewards-points,
.account-info-page .widget--rewards .rewards-tiers {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {
    .account-info-page .widget--rewards .rewards-status,
    .account-info-page .widget--rewards .rewards-points,
    .account-info-page .widget--rewards .rewards-tiers {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.rewards-status {
    box-sizing: border-box;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto 1.75rem;
    padding-inline: 0;
    text-align: center;
    overflow-wrap: anywhere;
    container-type: inline-size;
    container-name: rewards-status;
}

.rewards-status__eyebrow {
    margin: 0 auto;
    max-width: 100%;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(1.125rem, 4.8vw, 1.875rem);
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    color: #111;
}

.rewards-status__title {
    margin: 0.45rem auto 0;
    max-width: 100%;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: clamp(1.5rem, 7.2vw, 2.8125rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
    text-align: center;
    /* Opaque white fill + thicker dark stroke so outlined tiers
       (e.g. SUPERSTAR STATUS) stay readable on the striped body. */
    color: #fff;
    -webkit-text-stroke: 2px #111;
    paint-order: stroke fill;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

@supports not (-webkit-text-stroke: 2px #111) {
    .rewards-status__title {
        color: #fff;
        text-shadow:
            -2px -2px 0 #111,
             0   -2px 0 #111,
             2px -2px 0 #111,
            -2px  0   0 #111,
             2px  0   0 #111,
            -2px  2px 0 #111,
             0    2px 0 #111,
             2px  2px 0 #111,
            -1px -2px 0 #111,
             1px -2px 0 #111,
            -2px -1px 0 #111,
             2px -1px 0 #111,
            -2px  1px 0 #111,
             2px  1px 0 #111,
            -1px  2px 0 #111,
             1px  2px 0 #111;
    }
}

.rewards-status__rule {
    width: min(520px, 100%);
    max-width: 100%;
    height: 3px;
    margin: 1.35rem auto 0.85rem;
    background: #E31C23;
}

.rewards-status__period {
    margin: 0 auto;
    max-width: 100%;
    padding-inline: 0.25rem;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 500;
    /* Autosize to one line on narrow phones (cqi tracks .rewards-status width). */
    font-size: clamp(0.6875rem, calc(100cqi / 23), 1.125rem);
    line-height: 1.35;
    text-align: center;
    color: #000;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

@media (max-width: 767.98px) {
    .account-info-page .widget--rewards .rewards-status {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .rewards-status__title {
        letter-spacing: 0.02em;
        -webkit-text-stroke-width: 1.75px;
    }

    .rewards-status__rule {
        width: 318px;
        max-width: 100%;
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }

    .account-info-page .widget--rewards .rewards-points {
        width: 318px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .rewards-points__box {
        width: 100%;
        box-sizing: border-box;
    }
}

.rewards-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: 44rem;
    margin: 0 auto 2rem;
}

@media (min-width: 700px) {
    .rewards-points {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Champion (invite-only): hide points-needed and center Current Tier Points. */
.rewards-points--single {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 22rem;
}

.rewards-points--single .rewards-points__box {
    width: 100%;
}

.rewards-points__box {
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    padding: 1rem 1.15rem;
    text-align: center;
}

.rewards-points__label {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #696969;
    margin-bottom: 0.35rem;
}

.rewards-points__value {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.1;
    color: #000;
}

.rewards-tiers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    align-items: end;
    margin: 0 auto 1rem;
    max-width: 58rem;
}

/* Center a lone last-row card (e.g. Champion) in the 2-column phone grid */
@media (max-width: 767.98px) {
    .rewards-tiers > .rewards-tier:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 1rem) / 2);
    }
}

/* Tablet+: 5-across tier row like desktop Account */
@media (min-width: 768px) {
    .rewards-tiers {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1.25rem 0.75rem;
    }
}

.rewards-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.rewards-tier__img-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    min-height: 5.5rem;
    margin-bottom: 0.65rem;
}

.rewards-tier__img {
    display: block;
    height: auto;
    max-width: 100%;
}

.rewards-tier__img.is-full {
    width: min(100%, 7.5rem);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
}

.rewards-tier__img.is-small {
    width: min(100%, 4.75rem);
    opacity: 0.92;
}

.rewards-tier.is-current .rewards-tier__img.is-full {
    width: min(100%, 8.5rem);
}

.rewards-tier__scale {
    width: 100%;
    max-width: 7.5rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--tier-track, #D9D9D9);
    overflow: hidden;
    margin-bottom: 0.55rem;
}

.rewards-tier__scale-filled {
    height: 100%;
    border-radius: inherit;
    background: var(--tier-fill, #E31C23);
}

.rewards-tier__meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.rewards-tier__name {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: #000;
}

.rewards-tier__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem; /* doubles spacing below range (gap 0.2rem + 0.2rem) */
    color: #000;
}

.rewards-tier__range {
    margin: 0;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    color: #939393;
}

.rewards-tier.is-current .rewards-tier__range {
    font-weight: 700;
    color: #000;
}

.rewards-footer {
    position: relative;
    margin-top: 3.25rem;
    width: 100%;
}

.rewards-footer__bar {
    position: relative;
    background: #000;
    color: #fff;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 4.125rem 1.25rem 2.3rem;
    box-sizing: border-box;
}

.rewards-footer__logo {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: auto;
    height: clamp(3.25rem, 8vw, 4.75rem);
    max-width: min(90%, 18rem);
    object-fit: contain;
    z-index: 1;
}

.rewards-footer__legal {
    margin: 0;
    font-family: "Suisse Int'l-Regular", Helvetica, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    color: #fff;
}

.account-info-page.layout__main {
    box-sizing: border-box;
    max-width: 100%;
    background: var(--bal-body-background, #f2f2f2);
}

.account-info-page .layout__limit {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}



@media (min-width: 1200px) {
    .account-info-page .widget.is-full {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1400px) {
    .account-info-page .widgets {
        /* Side-by-side row: Player Information gets the larger share; Balances keeps a readable floor. */
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    }
}

.account-info-page .widget {
    border-radius: 12px;
    background: #fff;
    border: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.account-info-page .widget__header {
    font-family: "Suisse Works-Bold", Helvetica;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0;
    padding: 1.6rem 2.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.48) 100%), radial-gradient(50% 76.98% at 50.24% 106.35%, rgba(164, 144, 102, 0.66) 45%, rgba(21, 21, 21, 0.66) 100%);
    color: #fff;
    border-bottom: none;
}

.account-info-page .widget__heading {
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .account-info-page .widget__heading {
        font-size: 1.8rem;
    }
}

.account-info-page .widget__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
}

@media (max-width: 767.98px) {
    .account-info-page .widgets > .widget:first-child .widget__header {
        padding: 1.15rem 1.5rem;
    }

    .account-info-page .widgets > .widget:first-child .widget__body {
        padding: 1rem;
    }

    /* Beat the first-child body override above — mobile-only side inset. */
    .account-info-page .widgets > .widget:first-child .widget__body.widget__body--player-balances {
        padding: 1.5rem 2.5rem 1.75rem;
    }

    .account-info-page .widgets > .widget:first-child .user-info--card-layout {
        gap: 14px;
        padding-inline: 0;
    }

    .account-info-page .widgets > .widget:first-child .user-info__card-text {
        gap: 0.625rem;
    }
}

@media (min-width: 768px) {
    .account-info-page .widget__body {
        padding: 3rem 2.5rem;
    }

    /* Keep Player Info & Balances at the original desktop inset. */
    .account-info-page .widget__body.widget__body--player-balances {
        padding: 2rem 2.5rem 2.25rem;
    }
}

/* Player Information + Balances (the non-full first-row cards) carried heavy body
   padding — tighten it without affecting the full-width Tier Progress / Host cards. */
.account-info-page .widget:not(.is-full) .widget__body {
    padding: 1rem 1.25rem;
}

@media (min-width: 768px) {
    .account-info-page .widget:not(.is-full) .widget__body {
        padding: 1.75rem 2rem;
    }
}

.account-info-page .user-info--card-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    min-width: 0;
    width: 100%;
    padding-inline: 8px;
    box-sizing: border-box;
}

.account-info-page .user-info__card-text {
    flex: 1 1 24rem;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.account-info-page .user-info__main {
    font-family: "Suisse Works-Regular", Helvetica;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 1 auto;
    min-width: 0;
}

.account-info-page .user-info__preview {
    flex: 0 1 min(240px, 42%);
    min-width: 0;
    max-width: 42%;
    margin-left: auto;
    align-self: center;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.account-info-page .user-info__preview-img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 350 / 220;
    margin: 0;
    display: block;
    border-radius: 22px;
    box-shadow: 0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);
    object-fit: contain;
}

.account-info-page .user-info__divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #a49066, transparent);
    margin: 0.75rem 0;
    border: none;
}

@media (max-width: 767.98px) {
    .account-info-page .user-info__divider {
        display: none;
    }

    .account-info-page .user-info__data {
        border-left: 3px solid;
        border-image: linear-gradient(to bottom, #c9a84c, #a49066) 1;
        padding-left: 12px;
    }
}

@media (max-width: 575px) {
    .account-info-page .user-info--card-layout {
        gap: 16px;
    }

    .account-info-page .user-info__card-text {
        max-width: none;
        gap: 12px;
    }

    .account-info-page .user-info__preview {
        flex: 0 1 220px;
        max-width: 50%;
    }

    .account-info-page .user-info__preview-img {
        max-width: min(220px, 100%);
        border-radius: 10px;
    }

    .account-info-page .data__item {
        padding-left: 0;
    }

    .account-info-page .widgets > .widget:first-child .widget__header {
        padding: 1rem 1.25rem;
    }

    .account-info-page .widgets > .widget:first-child .widget__body {
        padding: 0.875rem 0.875rem 1rem;
    }

    .account-info-page .widgets > .widget:first-child .widget__body.widget__body--player-balances {
        padding: 1.5rem 2.5rem 1.75rem;
    }

    .account-info-page .widgets > .widget:first-child .user-info--card-layout {
        gap: 12px;
    }

    .account-info-page .widgets > .widget:first-child .user-info__card-text {
        gap: 0.5rem;
    }
}

@media (max-width: 402px) {
    .account-info-page .user-info--card-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .account-info-page .user-info__card-text {
        max-width: 100%;
        flex: 0 1 auto;
    }

    .account-info-page .user-info__preview {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        margin-left: 0;
        align-self: stretch;
        justify-content: center;
        padding-top: 4rem;
    }

    .account-info-page .user-info__preview-img {
        max-width: min(220px, 80%);
    }

    .account-info-page .widgets > .widget:first-child .widget__body {
        padding-top: 0.75rem;
    }

    .account-info-page .widgets > .widget:first-child .user-info--card-layout {
        gap: 0.75rem;
    }
}

.account-info-page .user-info__user--card-heading {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.account-info-page .user-info__name-line {
    max-width: 100%;
    font-family: "Suisse Works-Bold", Helvetica, Arial, sans-serif;
    font-weight: 800;
    color: #0e0e0e;
    font-size: clamp(2rem, 3vw, 40px);
    line-height: 1.25;
    overflow-wrap: break-word;
    text-align: left;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .account-info-page .user-info--card-layout {
        gap: 20px;
    }

    .account-info-page .user-info__card-text {
        flex: 1 1 12rem;
    }

    .account-info-page .user-info__preview {
        flex: 0 1 min(220px, 38%);
        max-width: 38%;
    }
}

    .account-info-page .user-info__name-line .user-info__name {
        display: block;
        font-family: inherit;
        font-weight: inherit;
    }

.account-info-page .user-info__data > *:not(:last-child) {
    margin-bottom: 2.5rem;
}

.account-info-page .data {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.35;
}

@media (min-width: 768px) {
    .account-info-page .data {
        font-size: 2rem;
    }
}

.account-info-page .data__item {
    padding-left: 1rem;
}

.account-info-page .data__item .data__value ~ .data__property {
    margin-top: 0.75rem;
}

.account-info-page .data__property {
    font-family: "Suisse Works-Bold", Helvetica;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    color: #0e0e0e;
}

.account-info-page .data__value {
    font-family: "Suisse Works-Regular", Helvetica;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0;
    color: #0e0e0e;
}

.account-info-page .data a {
    color: inherit;
}

    .account-info-page .data a:hover {
        text-decoration: underline;
    }

.account-info-page .form-divider-hr {
    height: 2px;
    background: linear-gradient(to right, transparent, #a49066, transparent);
    margin: 0.4rem 0;
    border: none;
}

.account-info-page .stats--balances > .form-divider-hr {
    width: 100%;
    align-self: stretch;
}

.account-info-page .widget__body--balances {
    justify-content: center;
}

.account-info-page .stats {
    width: 100%;
    min-width: 0;
}

.account-info-page .stats--balances {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.account-info-page .stats__stat:not(:last-child) {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .account-info-page .stats__stat:not(:last-child) {
        margin-bottom: 1.5rem;
    }
}


.account-info-page .stat {
    padding: 0.4rem clamp(0.5rem, 2vw, 1rem);
    line-height: 1.2;
    pointer-events: none;
    min-width: 0;
}

.account-info-page .stat--balances {
    background-color: transparent;
    border: none;
    text-align: center;
    width: 100%;
}

.account-info-page .stat__caption {
    font-family: "Suisse Works-Bold", Helvetica;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #0e0e0e;
    overflow-wrap: normal;
    word-break: normal;
}

@media (min-width: 768px) {
    .account-info-page .stat__caption {
        font-size: clamp(1rem, 1.4vw, 1.25rem);
    }
}

.account-info-page .stat__value {
    font-family: "Suisse Int'l-Regular", Helvetica !important;
    font-size: 14px;
    font-weight: 400;
    color: #0e0e0e;
}

@media (min-width: 768px) {
    .account-info-page .stat__value {
        font-size: 1.4rem;
    }
}

.account-info-page .progress-area__info {
    margin-bottom: 3rem;
    font-size: 1.25rem;
    text-align: center;
    color: #0e0e0e;
}

@media (min-width: 768px) {
    .account-info-page .progress-area__info {
        font-size: 1.6rem;
        margin-bottom: 5rem;
    }
}

@media (min-width: 1200px) {
    .account-info-page .progress-area__mob-stats {
        display: none;
    }
}


.account-info-page .progress-area__congrats {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
}

.account-info-page .progress-area__stat {
    min-width: 0;
    flex: 1;
}


.account-info-page .progress-area__footer {
    font-family: "Suisse Int'l-Regular", Helvetica;
    font-weight: 400;
    font-size: 1.25rem;
    color: #0e0e0e;
    letter-spacing: 0;
}

.account-info-page .stat__value-highlight {
    color: #AC5E35 !important;
    font-weight: 700;
}

.account-info-page .stat-card__images {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.account-info-page .stat-card__images-alt {
    display: block;
}

.account-info-page .stat-card__img-wrap {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .account-info-page .stat-card__img-wrap {
        margin-bottom: 3.5rem;
    }
}

/* Tier Progress card art: smaller on phone/tablet; ~200px cap from 1200px up (desktop tier row) */
.account-info-page .stat-card__img {
    width: 100%;
    max-width: min(100%, 9.5rem); /* ~152px — compact on small phones */
    display: block;
    height: auto;
    max-height: clamp(2.5rem, 15vw, 5.5rem); /* ~88px max on narrow viewports */
    border-radius: 0.5rem;
    aspect-ratio: 16/10.2;
    object-fit: contain;
    margin-inline: auto;
}

/* Slightly larger tier art on larger phones / tablet (still below desktop cap) */
@media (min-width: 480px) and (max-width: 1199.98px) {
    .account-info-page .stat-card__img {
        max-width: min(100%, 14.4rem); /* ~230px (~20% wider) */
        max-height: clamp(3rem, 14vw, 9rem); /* ~144px max */
    }
}

@media (min-width: 1200px) {
    .account-info-page .stat-card__img {
        max-height: 15rem; /* ~240px on desktop tier row (~20% larger) */
        max-width: min(100%, 24rem); /* ~384px — matches ~240px height at 16/10.2 */
    }
}

.account-info-page .stat-card__scale {
    margin-bottom: 1rem;
    height: 1rem;
    border: 0.1rem solid #A49066;
    position: relative;
    background: transparent;
    border-radius: 0;
}

@media (min-width: 768px) {
    .account-info-page .stat-card__scale {
        margin-bottom: 2rem;
    }
}

.account-info-page .stat-card__scale-filled {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.account-info-page .stat-card__positions {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.account-info-page .stat-card__position {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.15;
    color: #0e0e0e;
}

@media (min-width: 768px) {
    .account-info-page .stat-card__position {
        font-size: 2rem;
    }
}

.account-info-page .tier-proggress-title {
    font-family: "Suisse Works-Bold", Helvetica;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    color: #0e0e0e;
    text-align: center;
}

.account-info-page .tier-proggress-subtitle {
    font-family: "Suisse Int'l-Regular", Helvetica;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: #0E0E0E;
}

.account-info-page .contacts-area {
    width: 100%;
}

.account-info-page .contacts-area__layout,
.account-info-page .contacts-area__content-grid {
    width: 100%;
    min-width: 0;
}


.account-info-page .contacts-area__layout.pp-row,
.account-info-page .contacts-area__content-grid.pp-row {
    margin-left: 0;
    margin-right: 0;
}

.account-info-page .contacts-area__layout.pp-row {
    column-gap: 2rem !important;
    row-gap: 1.75rem !important;
}

.account-info-page .contacts-area__content-grid.pp-row {
    column-gap: 1rem !important;
    row-gap: 1rem !important;
}

.account-info-page .contacts-area__profile-col,
.account-info-page .contacts-area__content-col,
.account-info-page .contacts-area__detail-col,
.account-info-page .contacts-area__action-col {
    min-width: 0;
}

.account-info-page .contacts-area__profile-col,
.account-info-page .contacts-area__action-col {
    display: flex;
}

.account-info-page .contacts-area__action-col {
    align-items: stretch;
}

.account-info-page .contacts-area__info {
    width: 100%;
    font-size: 2rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .account-info-page .contacts-area__info {
        font-size: 2.4rem;
    }
}

.account-info-page .contacts-area__avatar {
    flex: 0 0 7rem;
    max-width: 7rem;
    height: 7rem;
    border-radius: 50%;
    border: 0.1rem solid #BABABA;
    object-fit: cover;
}

@media (min-width: 768px) {
    .account-info-page .contacts-area__avatar {
        flex: 0 0 109px;
        max-width: 109px;
        height: 109px;
    }
}

.account-info-page .contacts-area__prop {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-width: 0;
}

.account-info-page .contacts-area__prop .data__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.account-info-page .contacts-area__link-wrap {
    min-width: 0;
}

.account-info-page .contacts-area__link {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
}

.account-info-page .contacts-area__name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.account-info-page .contacts-area__action-col--email {
    justify-content: flex-start;
}

@media (max-width: 767.98px) {
    .account-info-page .contacts-area__profile-col {
        justify-content: center;
    }

    .account-info-page .contacts-area__info {
        justify-content: center;
        text-align: left;
    }
}

@media (min-width: 1200px) {
    .account-info-page .contacts-area__content-grid.pp-row {
        column-gap: 2rem !important;
    }
}

@media (min-width: 1200px) {
    .account-info-page .contacts-area__content-col {
        padding-left: 0.75rem;
    }

    .account-info-page .contacts-area__actions.pp-row {
        flex-wrap: nowrap;
        column-gap: 1.5rem !important;
    }

    .account-info-page .contacts-area__actions .contacts-area__action-col {
        flex: 1 1 0;
        max-width: none;
    }
}

.account-info-page .contacts-area__heading {
    font-family: "Suisse Works-Bold", Helvetica;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    color: #0E0E0E;
}

.account-info-page .contacts-area__subheading {
    font-family: "Suisse Int'l-Regular", Helvetica;
    font-weight: 400;
    font-size: 16px;
    color: #0E0E0E;
}

.account-info-page .contacts-area__btn {
    font-family: "Suisse Int'l-Regular", Helvetica;
    font-weight: 400;
    font-size: 20px;
}

    .account-info-page .contacts-area__btn.btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        min-height: 46px;
        height: 46px;
        padding: 12px 16px;
        border-radius: 6px;
        text-decoration: none;
        background: #A49066;
        color: #fff;
        border: none;
        cursor: pointer;
        transition: opacity 0.2s;
    }

        .account-info-page .contacts-area__btn.btn:hover,
        .account-info-page .contacts-area__btn.btn:focus {
            opacity: 0.8;
            color: #fff;
        }

.account-info-page .form-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #a49066, transparent);
    opacity: 0.5;
}


/* ===== Win loss details styles ===== */
/* Win/Loss Statement details layout */
@media (max-width: 575px) {
    .bal-body, .pp-body.bal-body {
        padding: 2px;
        margin: 0px;
    }

    .bal-content-limit {
        padding:0;
        padding-left: 4px;
        padding-right: 4px;
    }


}


/* doc__header – buttons sit ABOVE the PDF card with spacing below */



/* Buttons stretch full-width on mobile, fixed min-width on desktop */
.wl-details-page .doc__btn {
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .wl-details-page .doc__header .doc__btn {
        box-sizing: border-box;
        flex: 0 1 196px;
        width: 100%;
        max-width: 196px;
        min-width: 0;
    }
}




.wl-details-page .doc__btn.btn--primary {
    color: #fff;
    background-color: #A49066;
    border-color: #A49066;
}

.wl-details-page .doc__btn.btn--primary:not(:disabled):hover,
.wl-details-page .doc__btn.btn--primary:not(:disabled):focus {
    opacity: 0.8;
}

.wl-details-page .doc__btn.btn--primary-reverse {
    color: var(--pp-portal-primary-color, #A49066);
    border-color: var(--pp-portal-primary-color, #A49066);
    background: #fff;
}

.wl-details-page .doc__btn.btn--primary-reverse:hover,
.wl-details-page .doc__btn.btn--primary-reverse:focus {
    color: #fff;
    background: var(--pp-portal-primary-color, #A49066);
    border-color: var(--pp-portal-primary-color, #A49066);
}

.wl-details-page .btn__icon {
    fill: currentColor;
    width: 16px;
    height: 16px;
    flex: none;
    display: block;
}

.wl-details-page .btn__icon + .btn__text {
    margin-left: 0;
}

.wl-details-page .doc__btn--download.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.wl-details-page .doc__btn--download .btn__icon {
    width: 16px;
    height: 16px;
}

@media (min-width: 768px) {
    .wl-details-page .doc__btn--download.btn {
        font-size: 15px;
    }

    .wl-details-page .doc__btn--download .btn__icon {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 1200px) {
    .wl-details-page .doc__btn--download.btn {
        font-size: 16px;
    }
}

/* doc__main – the bordered card containing the PDF canvases */
.wl-details-page .doc__main {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: var(--pp-card-background, #fff);
    border: 0.2rem solid var(--pp-card-border-color, #a49066);
    box-shadow: var(--pp-card-shadow, none);
    overflow-x: auto;
}

@media (min-width: 768px) {
    .wl-details-page .doc__main {
        padding: 2rem;
    }
}

/* PDF canvas pages rendered by PDF.js */
#pdf-container {
    width: 100%;
    min-height: 60vh;
}

#pdf-container .pdf-page {
    margin-bottom: 10px;
}

#pdf-container .pdf-page:last-child {
    margin-bottom: 0;
}



.doc__empty p {
    margin: 0;
    font-family: "Suisse Int'l-Regular", "Suisse Works", Helvetica, sans-serif;
    font-size: 16px;
    color: var(--pp-color-text-default, #0E0E0E);
}

.doc__error {
    color: var(--bal-error-color, #E40023) !important;
}

/* ===== Application shell styles ===== */
h1:focus {
    outline: none;
}

html,
body,
#app {
    background: var(--bal-body-background);
}

body {
    margin: 0;
}


/* ============================================================
   Portal dialog background lock
   Core only renders the wrapper while a dialog is open, so
   these selectors automatically toggle page locking on and off.
   ============================================================ */
html:has(.portal-dialog-wrapper),
body:has(.portal-dialog-wrapper) {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body:has(.portal-dialog-wrapper) .bal-body,
body:has(.portal-dialog-wrapper) .layout__main {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body:has(.portal-dialog-wrapper) .pp-dialog-mask {
    pointer-events: auto;
    touch-action: none;
    overscroll-behavior: contain;
}

.portal-dialog-wrapper {
    touch-action: none;
    overscroll-behavior: contain;
}

.portal-dialog-wrapper .pp-dialog {
    touch-action: auto;
}

.portal-dialog-wrapper .pp-dialog__content {
    overscroll-behavior: contain;
}


/* Main content area: same as V2 GUL common.css .layout__main */
.layout__main {
    --pp-page-loading-background: var(--pp-page-background, var(--bal-body-background));
}

@media (min-width: 1024px) {
    .layout__main {
        --pp-layout-main-max-height: calc(var(--vh, 1vh) * 100);
        --pp-layout-main-overflow-y: auto;
    }
}

.error-dialog-wrapper .ped__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 8px;
}

.error-dialog-wrapper .ped__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 12px 28px;
    border: 1.5px solid #1a2a44;
    border-radius: 6px;
    background: transparent;
    color: #1a2a44;
    font-family: "Suisse Int'l-Regular", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.35;
    box-shadow: none;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s;
}

.error-dialog-wrapper .ped__btn:hover,
.error-dialog-wrapper .ped__btn:focus-visible {
    background: rgba(26, 42, 68, 0.06);
}

@media (max-width: 575px) {
    .error-dialog-wrapper .ped__actions {
        justify-content: flex-end;
    }

    .error-dialog-wrapper .ped__btn {
        min-width: 150px;
    }
}

/* ===== Consolidated former GUL scoped styles ===== */

/* ===== BAL authenticated sidebar Figma override ===== */
:root {
    --bal-sidebar-width: 300px;
}

.pp-sidebar.bal-sidebar,
.bal-sidebar {
    background: #ffffff !important;
    background-image: none !important;
    border-right: 1px solid #e6e6e6 !important;
    border-radius: 0 !important;
}

/* Desktop rail only — phone/tablet drawer must stay full-bleed. */
@media (min-width: 1181px) {
    .pp-sidebar.bal-sidebar,
    .bal-sidebar {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
    }
}

/* Kill Core's 100vw body width that paints gray under the sidebar. */
.bal-layout .pp-body.bal-body,
.bal-layout .bal-body,
.pp-layout.bal-layout .pp-body,
.pp-layout.bal-layout:not(:has(>.pp-sidebar:nth-of-type(2))) .pp-body {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    border-radius: 0 !important;
}

.bal-sidebar .sidebar__main,
.bal-sidebar > .sidebar__main,
.pp-sidebar.bal-sidebar .sidebar__main {
    height: 100% !important;
    min-height: 100% !important;
    background: #ffffff !important;
    background-image: none !important;
}

.bal-sidebar .sidebar__main {
    height: 100% !important;
    min-height: 100% !important;
    padding: 0 !important;
    background: #ffffff !important;
}

@media (min-width: 1181px) {
    .bal-sidebar .sidebar__main {
        width: 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
    }

    .bal-sidebar .sidebar__header,
    .bal-sidebar .sidebar__hero {
        width: 300px !important;
    }

    .bal-sidebar .sidebar__hero {
        height: 400px !important;
        min-height: 400px !important;
        --sidebar-logo-gap: 32px !important;
    }
}

.bal-sidebar .sidebar__body {
    background: #ffffff !important;
    flex: 1 1 auto !important;
}

.bal-sidebar .sidebar__hero {
    position: relative !important;
    overflow: hidden !important;
    background: #000000 !important;
    --sidebar-property-bottom: 18px !important;
    --sidebar-property-height: 58px !important;
    --sidebar-logo-gap: 0px !important;
}

.bal-sidebar .sidebar__hero-media {
    position: absolute !important;
    inset: 0 !important;
    overflow: hidden !important;
    background-color: #000000 !important;
}

.bal-sidebar .sidebar__hero-media--link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background-color: #000000 !important;
    cursor: pointer !important;
}

@media (min-width: 1181px) {
    .bal-sidebar .sidebar__hero-media--link {
        pointer-events: none !important;
        cursor: default !important;
    }
}

.bal-sidebar .sidebar__hero-img {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    max-width: none !important;
}

.bal-sidebar .sidebar__hero-gradient {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.06) 32%,
        rgba(0, 0, 0, 0.34) 55%,
        rgba(0, 0, 0, 0.76) 74%,
        #000000 90%,
        #000000 100%
    ) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.bal-sidebar .sidebar__hero-logo-btn {
    position: absolute !important;
    left: 50% !important;
    top: auto !important;
    bottom: calc(var(--sidebar-property-bottom) + var(--sidebar-property-height) + var(--sidebar-logo-gap)) !important;
    transform: translateX(-50%) !important;
    z-index: 2 !important;
    width: 149px !important;
    height: 77px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    line-height: 0 !important;
}

.bal-sidebar .sidebar__hero-logo {
    display: block !important;
    width: 149px !important;
    height: 77px !important;
    max-width: none !important;
    object-fit: contain !important;
    transform: none !important;
}

.bal-sidebar .sidebar__property {
    position: absolute !important;
    left: 18px !important;
    right: 18px !important;
    bottom: var(--sidebar-property-bottom) !important;
    z-index: 3 !important;
}

.bal-sidebar .sidebar__property-trigger {
    min-height: var(--sidebar-property-height) !important;
    padding: 10px 12px !important;
    background: rgba(0, 0, 0, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
}

.bal-sidebar .sidebar__body {
    padding: 16px 12px 20px !important;
}

.bal-sidebar .sidebar__nav .nav__link {
    font-family: "Inter", Helvetica, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    padding: 12px 14px !important;
    gap: 12px !important;
    color: #333333 !important;
}

.bal-sidebar .sidebar__nav .nav__link.is-active {
    font-family: "Inter", Helvetica, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    background: #111111 !important;
    color: #ffffff !important;
}

.bal-sidebar .sidebar__nav .nav__icon--img img {
    filter: brightness(0);
    opacity: 0.85;
}

.bal-sidebar .sidebar__nav .nav__link.is-active .nav__icon--img img {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}

.bal-sidebar .sidebar__nav .nav__link:not(.is-active):hover .nav__icon--img img {
    filter: brightness(0) !important;
    opacity: 1 !important;
}

.bal-sidebar .nav__link--signout,
.bal-sidebar .sidebar__nav .nav__link.nav__link--signout {
    justify-content: flex-start !important;
    font-family: "Inter", Helvetica, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #111111 !important;
    background: #ffffff !important;
    border: 1px solid #111111 !important;
    border-radius: 0 !important;
    padding: 11px 14px !important;
    gap: 10px !important;
}

.bal-sidebar .sidebar__nav .nav__link.nav__link--signout:hover {
    background: #111111 !important;
    color: #ffffff !important;
}

/* Phone + tablet hamburger drawer: full-bleed menu (Figma). Desktop rail stays 300px. */
@media (max-width: 1180.98px) {
    .pp-layout.is-drawer-open .pp-sidebar.bal-sidebar,
    .pp-layout.is-drawer-open .bal-sidebar,
    .pp-sidebar.bal-sidebar.pp-sidebar--open,
    .bal-sidebar.pp-sidebar--open,
    body.mobile-nav-open .pp-sidebar.bal-sidebar,
    body.mobile-nav-open .bal-sidebar,
    .pp-sidebar.bal-sidebar,
    .bal-sidebar {
        width: 100vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        top: var(--bal-mobile-header-height) !important;
        height: calc(100dvh - var(--bal-mobile-header-height)) !important;
    }

    .bal-sidebar .sidebar__main,
    .bal-sidebar .sidebar__header,
    .bal-sidebar .sidebar__hero {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .bal-sidebar .sidebar__main {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .bal-sidebar .sidebar__hero {
        aspect-ratio: 510 / 280 !important;
        height: auto !important;
        min-height: 0 !important;
        --sidebar-logo-gap: 0px !important;
    }

    .bal-sidebar .sidebar__hero-img {
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* ===== BAL Update Email / Password dialogs (Figma) ===== */

/* Dark + blur overlay. Core's default mask uses opacity:.5 which kills backdrop-filter. */
body:has(.update-email-dialog-wrapper) .pp-dialog-mask,
body:has(.update-pw-dialog-wrapper) .pp-dialog-mask,
.portal-dialog-wrapper:has(.update-email-dialog-wrapper) ~ .pp-dialog-mask,
.portal-dialog-wrapper:has(.update-pw-dialog-wrapper) ~ .pp-dialog-mask,
.pp-dialog-mask:has(+ .portal-dialog-wrapper .update-email-dialog-wrapper),
.pp-dialog-mask:has(+ .portal-dialog-wrapper .update-pw-dialog-wrapper) {
    opacity: 1 !important;
    background-color: rgba(20, 20, 20, 0.55) !important;
    backdrop-filter: blur(16px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(110%) !important;
}

/* Do NOT apply filter/transform to .bal-layout while dialogs are open.
   That creates a containing block and can leave the right pane unable to
   scroll after the dialog closes. Blur comes from the mask backdrop-filter. */

/* Keep dialog wrapper full-viewport and centered */
.portal-dialog-wrapper:has(.update-email-dialog-wrapper),
.portal-dialog-wrapper:has(.update-pw-dialog-wrapper),
.pp-dialog-wrapper:has(.update-email-dialog-wrapper),
.pp-dialog-wrapper:has(.update-pw-dialog-wrapper) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
    box-sizing: border-box !important;
    z-index: 1100 !important;
}

/* Override Core absolute top/left so flex centering works on all breakpoints */
.portal-dialog-wrapper:has(.update-email-dialog-wrapper) .update-email-dialog-wrapper.pp-dialog,
.portal-dialog-wrapper:has(.update-pw-dialog-wrapper) .update-pw-dialog-wrapper.pp-dialog,
.update-email-dialog-wrapper.pp-dialog,
.update-pw-dialog-wrapper.pp-dialog {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28) !important;
    overflow: hidden !important;
}

.portal-dialog-wrapper:has(.update-email-dialog-wrapper) .update-email-dialog-wrapper.pp-dialog,
.update-email-dialog-wrapper.pp-dialog {
    /* Figma: 2×365px fields + 1.25rem gap + 4.5rem side padding each */
    width: min(calc(2 * 365px + 1.25rem + 9rem), calc(100% - 2rem)) !important;
    max-width: min(calc(2 * 365px + 1.25rem + 9rem), calc(100% - 2rem)) !important;
}

.portal-dialog-wrapper:has(.update-pw-dialog-wrapper) .update-pw-dialog-wrapper.pp-dialog,
.update-pw-dialog-wrapper.pp-dialog {
    width: min(982px, 100%) !important;
    max-width: 982px !important;
}

.portal-dialog-wrapper:has(.update-pw-dialog--bal.is-success) .update-pw-dialog-wrapper.pp-dialog,
.portal-dialog-wrapper:has(.update-pw-dialog--bal.is-error-state) .update-pw-dialog-wrapper.pp-dialog,
.update-pw-dialog-wrapper.pp-dialog:has(.is-success),
.update-pw-dialog-wrapper.pp-dialog:has(.is-error-state) {
    /* Figma success/error card — wider than the old 500px standalone */
    width: min(800px, calc(100% - 2rem)) !important;
    max-width: min(800px, calc(100% - 2rem)) !important;
}

.update-email-dialog--bal {
    position: relative;
    overflow: hidden;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    color: #4a4a4a;
    padding: 2rem 4.5rem 1.75rem !important;
    background: #fff;
}

.update-email-dialog--bal.is-success,
.update-email-dialog--bal.is-error-state {
    padding: 2rem 4.5rem 3.5rem !important;
}

.update-email-dialog--bal .ued__form {
    position: relative;
}

.update-email-dialog--bal .ued__watermark {
    position: absolute;
    /* Nudge down by Confirm Email label (~13px) + field gap (6px); bottom crops off-dialog */
    top: calc(13px + 6px);
    right: -3.75rem;
    bottom: auto;
    width: auto;
    height: calc(100% + 1.75rem);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    object-fit: contain;
    object-position: right bottom;
}

/* Success/error are shorter — pin an explicit B mark to the bottom-right. */
.update-email-dialog--bal.is-success > .ued__watermark,
.update-email-dialog--bal.is-error-state > .ued__watermark {
    top: auto;
    right: -2.75rem;
    bottom: -4.5rem;
    width: 340px;
    height: auto;
    max-width: none;
    opacity: 0.05;
    object-fit: contain;
    object-position: right bottom;
}

.update-email-dialog--bal .ued__form > *:not(.ued__watermark),
.update-email-dialog--bal.is-success > *:not(.ued__watermark),
.update-email-dialog--bal.is-error-state > *:not(.ued__watermark) {
    position: relative;
    z-index: 1;
}

.update-email-dialog--bal .ued__icon {
    margin-bottom: 1rem;
    color: #9e9e9e;
}

.update-email-dialog--bal .ued__icon-img {
    width: 65px;
    height: 65px;
    display: block;
    object-fit: contain;
}

.update-email-dialog--bal .ued__icon-svg {
    width: 65px;
    height: 65px;
    display: block;
    color: #9e9e9e;
}

.update-email-dialog--bal .ued__icon svg {
    width: 48px;
    height: 40px;
    display: block;
}

.update-email-dialog--bal .ued__server-error {
    width: 100%;
    max-width: 100%;
    margin: -0.75rem 0 1.5rem;
}

.update-email-dialog--bal .ued__title-block {
    display: block;
    margin-bottom: 1.75rem;
}

.update-email-dialog--bal .ued__accent-bar {
    display: none;
}

.update-email-dialog--bal .ued__title {
    margin: 0 0 0.5rem;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    color: #4a4a4a;
    text-transform: none;
}

.update-email-dialog--bal .ued__subtitle {
    margin: 0;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    color: #6b6b6b;
}

.update-email-dialog--bal .ued__fields {
    display: grid;
    grid-template-columns: 365px 365px;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.update-email-dialog--bal .ued__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.update-email-dialog--bal .ued__label {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: #4a4a4a;
}

.update-email-dialog--bal .ued__input {
    display: block;
    width: 365px;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    border: 1px solid #ABB1BF;
    border-radius: 4px;
    padding: 0.85rem 0.95rem;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #111;
    background: #fff;
    overflow-x: auto;
    text-overflow: clip;
}

.update-email-dialog--bal .ued__input::placeholder {
    color: #b0b0b0;
    font-size: 18px;
    font-weight: 400;
}

.update-email-dialog--bal .ued__input:focus {
    border-color: #ABB1BF;
    box-shadow: none;
}

.update-email-dialog--bal .ued__input.is-error {
    border-color: #c62828;
}

.update-email-dialog--bal .ued__error {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #c62828;
}

.update-email-dialog--bal .ued__divider {
    height: 1px;
    background: #e6e6e6;
    margin: 0 0 2.7rem;
}

.update-email-dialog--bal .ued__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-start;
}

.update-email-dialog--bal .ued__actions--success {
    margin-top: 0;
}

.update-email-dialog--bal .ued__btn {
    min-width: 132px;
    padding: 0.8rem 1.35rem;
    border-radius: 2px;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.update-email-dialog--bal .ued__btn--cancel {
    border: 1px solid #4a4a4a;
    background: #fff;
    color: #4a4a4a;
}

.update-email-dialog--bal .ued__btn--cancel:hover,
.update-email-dialog--bal .ued__btn--cancel:focus-visible {
    background: #f5f5f5;
}

.update-email-dialog--bal .ued__btn--submit {
    border: none;
    background: #cfcfcf;
    color: #fff;
    min-width: 160px;
    cursor: not-allowed;
}

.update-email-dialog--bal .ued__btn--submit:not(:disabled) {
    background: #111;
    cursor: pointer;
}

.update-email-dialog--bal .ued__btn--submit:hover:not(:disabled),
.update-email-dialog--bal .ued__btn--submit:focus-visible:not(:disabled) {
    background: #000;
    opacity: 1;
}

.update-email-dialog--bal .ued__btn--submit:disabled {
    background: #cfcfcf;
    color: #fff;
    cursor: not-allowed;
    opacity: 1;
}

@media (max-width: 575.98px) {
    .update-email-dialog--bal {
        padding: 1.5rem 1.25rem 1.35rem !important;
    }

    .update-email-dialog--bal .ued__fields {
        grid-template-columns: 1fr;
    }

    .update-email-dialog--bal .ued__input {
        width: 100%;
        max-width: 365px;
    }

    .update-email-dialog--bal .ued__title {
        font-size: 18px;
    }

    .update-email-dialog--bal .ued__actions {
        flex-direction: column;
    }

    .update-email-dialog--bal .ued__btn,
    .update-email-dialog--bal .ued__btn--submit {
        width: 100%;
        min-width: 0;
    }
}

/* ===== BAL Update Password dialog (Figma — mirrors Update Email) ===== */

.update-pw-dialog--bal {
    position: relative;
    overflow: hidden;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    color: #4a4a4a;
    padding: 2rem 4.5rem 3.5rem !important;
    background: #fff;
}

.update-pw-dialog--bal.is-success,
.update-pw-dialog--bal.is-error-state {
    padding: 2.5rem 4.5rem 3.5rem !important;
    min-height: 320px;
}

.update-pw-dialog--bal .upd__form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.update-pw-dialog--bal .upd__watermark {
    position: absolute;
    top: calc(13px + 6px);
    right: -3.75rem;
    bottom: auto;
    width: auto;
    height: calc(100% + 3.5rem);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    object-fit: contain;
    object-position: right bottom;
}

.update-pw-dialog--bal.is-success > .upd__watermark,
.update-pw-dialog--bal.is-error-state > .upd__watermark {
    top: auto;
    right: -3.5rem;
    bottom: -5.5rem;
    width: 420px;
    height: auto;
    max-width: none;
    opacity: 0.05;
    object-fit: contain;
    object-position: right bottom;
}

.update-pw-dialog--bal .upd__form > *:not(.upd__watermark),
.update-pw-dialog--bal.is-success > *:not(.upd__watermark),
.update-pw-dialog--bal.is-error-state > *:not(.upd__watermark) {
    position: relative;
    z-index: 1;
}

.update-pw-dialog--bal .upd__icon {
    margin-bottom: 1rem;
    color: #9e9e9e;
}

.update-pw-dialog--bal .upd__icon-img {
    width: 65px;
    height: 65px;
    display: block;
    object-fit: contain;
}

.update-pw-dialog--bal .upd__title-block {
    display: block;
    margin-bottom: 1.75rem;
}

.update-pw-dialog--bal .upd__server-error {
    width: 100%;
    max-width: 100%;
    margin: -0.75rem 0 1.5rem;
    margin-left: 0;
    margin-right: 0;
}

.update-pw-dialog--bal .upd__accent-bar {
    display: none;
}

.update-pw-dialog--bal .upd__title {
    margin: 0 0 0.5rem;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    color: #4a4a4a;
    text-transform: none;
}

.update-pw-dialog--bal .upd__subtitle {
    margin: 0;
    font-family: "Inter", Helvetica, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    font-style: normal;
    line-height: 1.45;
    letter-spacing: 0;
    color: #6b6b6b;
}

.update-pw-dialog--bal.is-success .upd__title-block,
.update-pw-dialog--bal.is-error-state .upd__title-block {
    max-width: 28rem;
    margin-bottom: 2.25rem;
}

.update-pw-dialog--bal.is-success .upd__subtitle,
.update-pw-dialog--bal.is-error-state .upd__subtitle {
    max-width: 26rem;
}

.update-pw-dialog--bal .upd__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.update-pw-dialog--bal .upd__field--full {
    width: calc(50% - 0.625rem);
    max-width: 100%;
    margin-bottom: 1.25rem;
}

.update-pw-dialog--bal .upd__password-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "new confirm";
    gap: 1.25rem;
    margin-bottom: 3rem;
    align-items: start;
}

.update-pw-dialog--bal .upd__field--new {
    grid-area: new;
}

.update-pw-dialog--bal .upd__field--confirm {
    grid-area: confirm;
    position: relative;
}

.update-pw-dialog--bal .upd__password-section {
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
}

.update-pw-dialog--bal .upd__label {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: #4a4a4a;
}

.update-pw-dialog--bal .upd__field.is-disabled .upd__label {
    font-family: "Inter", Helvetica, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #CDCDCD !important;
}

/* One outer chrome around text + eye (Figma). Input itself has no border. */
.update-pw-dialog--bal .upd__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 3.25rem;
    border: 1px solid #ABB1BF;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.update-pw-dialog--bal .upd__input-wrap:focus-within {
    border-color: #ABB1BF;
    box-shadow: none;
    outline: none;
}

.update-pw-dialog--bal .upd__input-wrap.is-error {
    border-color: #c62828;
}

.update-pw-dialog--bal .upd__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 3.25rem;
    margin: 0;
    border: 0 !important;
    border-radius: 0;
    padding: 0.85rem 2.75rem 0.85rem 0.95rem;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    color: #111;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.update-pw-dialog--bal .upd__input::placeholder {
    color: #b0b0b0;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
}

.update-pw-dialog--bal .upd__input:focus,
.update-pw-dialog--bal .upd__input:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Beat Core .upd__input-wrap .upd__toggle (absolute without reliable centering). */
.update-pw-dialog--bal .upd__input-wrap .upd__toggle {
    position: absolute !important;
    top: 50% !important;
    right: 0.5rem !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    z-index: 1;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 4px;
    background: transparent !important;
    color: #6b6b6b;
    line-height: 0 !important;
    cursor: pointer;
    box-shadow: none !important;
    outline: none;
}

.update-pw-dialog--bal .upd__input-wrap .upd__toggle .pp-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: #6b6b6b;
}

.update-pw-dialog--bal .upd__input-wrap .upd__toggle .pp-icon > svg {
    display: block;
    width: 100%;
    height: 100%;
}

.update-pw-dialog--bal .upd__input-wrap .upd__toggle:hover,
.update-pw-dialog--bal .upd__input-wrap .upd__toggle:focus-visible,
.update-pw-dialog--bal .upd__input-wrap .upd__toggle:hover .pp-icon,
.update-pw-dialog--bal .upd__input-wrap .upd__toggle:focus-visible .pp-icon {
    color: #111;
    outline: none;
    box-shadow: none;
}

.update-pw-dialog--bal .upd__error {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #c62828;
}

/* Float below the field — separate panel, no shared “double” seam with the input.
   Informational only: clicks pass through to the fields and actions under it. */
.update-pw-dialog--bal .upd__requirements-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 5;
    min-width: 0;
    pointer-events: none;
}

.update-pw-dialog--bal .upd__requirements-panel .password-requirements {
    border-radius: 6px;
    padding: 0.85rem 1rem;
    border: 1px solid #d0d0d0;
    background: #f7f7f7;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.update-pw-dialog--bal .upd__requirements-panel .password-requirements__header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.update-pw-dialog--bal .upd__requirements-panel .password-requirements__title {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
}

.update-pw-dialog--bal .upd__requirements-panel .password-requirements__badge {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 4px;
    border: 1.5px solid #111;
    background: transparent;
    color: #111;
    font-size: 0.7rem;
    font-weight: 700;
}

.update-pw-dialog--bal .upd__requirements-panel .password-requirements__item {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.35;
    padding-left: 1.15rem;
}

.update-pw-dialog--bal .upd__requirements-panel .password-requirements__item.is-pending {
    color: #111;
}

.update-pw-dialog--bal .upd__requirements-panel .password-requirements__item.is-pending::before {
    content: "\2022";
    color: #111;
    font-weight: 700;
}

.update-pw-dialog--bal .upd__requirements-panel .password-requirements__item.is-met {
    color: #1f8a4c;
}

.update-pw-dialog--bal .upd__requirements-panel .password-requirements__item.is-met::before {
    content: "\2713";
    color: #1f8a4c;
    font-weight: 700;
}

.update-pw-dialog--bal .upd__divider {
    height: 1px;
    background: #e6e6e6;
    margin: 0 0 2.7rem;
}

.update-pw-dialog--bal .upd__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-start;
}

.update-pw-dialog--bal .upd__actions--result {
    margin-top: 0;
}

.update-pw-dialog--bal .upd__btn {
    min-width: 132px;
    padding: 0.8rem 1.35rem;
    border-radius: 2px;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Beat Core `.upd__actions .upd__btn--*` gold styles (!important) */
.update-pw-dialog--bal .upd__actions .upd__btn--cancel {
    border: 1px solid #4a4a4a !important;
    background: #fff !important;
    color: #4a4a4a !important;
}

.update-pw-dialog--bal .upd__actions .upd__btn--cancel:hover,
.update-pw-dialog--bal .upd__actions .upd__btn--cancel:focus-visible {
    background: #f5f5f5 !important;
}

.update-pw-dialog--bal .upd__actions .upd__btn--submit {
    border: none !important;
    background: #cfcfcf !important;
    color: #fff !important;
    min-width: 180px;
    cursor: not-allowed;
}

.update-pw-dialog--bal .upd__actions .upd__btn--submit:not(:disabled) {
    background: #111 !important;
    cursor: pointer;
}

.update-pw-dialog--bal .upd__actions .upd__btn--submit:hover:not(:disabled),
.update-pw-dialog--bal .upd__actions .upd__btn--submit:focus-visible:not(:disabled) {
    background: #000 !important;
    opacity: 1 !important;
}

.update-pw-dialog--bal .upd__actions .upd__btn--submit:disabled {
    background: #cfcfcf !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

@media (max-width: 575.98px) {
    .update-pw-dialog--bal {
        padding: 1.5rem 1.25rem 1.35rem !important;
    }

    .update-pw-dialog--bal .upd__password-fields {
        grid-template-columns: 1fr;
        grid-template-areas:
            "new"
            "confirm";
    }

    .update-pw-dialog--bal .upd__field--full {
        width: 100%;
    }

    .update-pw-dialog--bal .upd__title {
        font-size: 18px;
    }

    .update-pw-dialog--bal .upd__actions {
        flex-direction: column;
    }

    .update-pw-dialog--bal .upd__btn,
    .update-pw-dialog--bal .upd__btn--submit {
        width: 100%;
        min-width: 0;
    }

    .update-pw-dialog--bal .upd__requirements-panel {
        position: static;
        margin-top: 0.5rem;
    }
}

/* ===== BAL Digital Mailer (Figma) ===== */

/* Kill Core's outer .digital-mailer-page card chrome */
.digital-mailer-page.layout__main {
    box-sizing: border-box;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.digital-mailer-page .layout__limit {
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}

.digital-mailer-page .widgets--mailer {
    display: block;
    margin: 0;
    width: 100%;
}

.digital-mailer-page .widget--mailer {
    box-sizing: border-box;
    width: 100%;
    height: 591px;
    max-height: 591px;
    border-radius: 12px;
    background: #fff;
    border: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.digital-mailer-page .widget--mailer .widget__header {
    flex: 0 0 auto;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    background: #000;
    background-image: none;
    color: #fff;
    border-bottom: none;
    height: auto;
    box-shadow: none;
    gap: 0;
}

.digital-mailer-page .widget--mailer .widget__header::after {
    display: none;
}

@media (min-width: 768px) {
    .digital-mailer-page .widget--mailer .widget__header {
        padding: 1.15rem 2rem;
    }
}

.digital-mailer-page .widget--mailer .widget__heading {
    margin: 0;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
    color: #fff;
}

.digital-mailer-page .widget__body--mailer {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(0, 0, 0, 0.035) 0,
        rgba(0, 0, 0, 0.035) 1px,
        transparent 1px,
        transparent 10px
    );
}

.digital-mailer-page .mailer-selection--bal {
    flex: 1 1 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Center spinner in the mailer card body (Core PageLoadingIndicator defaults to 60vh). */
.digital-mailer-page .mailer-selection--bal .mailer-selection__loading {
    flex: 1 1 auto;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    --pp-page-loading-min-height: 0;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__loading .pp-page-loading-indicator {
    min-height: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__item {
    background: #fff;
    border: 1px solid #ABB1BF;
    border-radius: 4px;
    border-left: 1px solid #ABB1BF;
    container-type: normal;
    transition: background-color 0.15s ease;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__item:hover {
    border-left-color: #ABB1BF;
    box-shadow: none;
    transform: none;
    background: #fafafa;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__item-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 16px;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__thumb-wrap {
    display: none;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 auto;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__title {
    margin: 0;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #0e0e0e;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__subtitle {
    margin: 0;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    color: #6b6b6b;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__actions {
    flex-shrink: 0;
}

.digital-mailer-page .mailer-selection--bal .pp-btn.mailer-selection__btn,
.digital-mailer-page .mailer-selection--bal .mailer-selection__btn.pp-btn {
    min-width: 110px;
    padding: 10px 22px !important;
    border-radius: 4px !important;
    border: 1px solid #ABB1BF !important;
    background: #fff !important;
    color: #111 !important;
    font-family: "Inter", Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: none !important;
}

.digital-mailer-page .mailer-selection--bal .pp-btn.mailer-selection__btn:hover,
.digital-mailer-page .mailer-selection--bal .pp-btn.mailer-selection__btn:focus-visible {
    background: #f7f7f7 !important;
    box-shadow: none !important;
    opacity: 1;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__empty {
    margin: 0;
    padding: 1.5rem 0;
    text-align: center;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #6b6b6b;
}

.digital-mailer-page .mailer-selection--bal .mailer-selection__empty p {
    margin: 0;
}

@media (max-width: 575.98px) {
    .digital-mailer-page .widget--mailer {
        height: auto;
        max-height: none;
        min-height: 0;
    }

    .digital-mailer-page .mailer-selection--bal .mailer-selection__item-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .digital-mailer-page .mailer-selection--bal .pp-btn.mailer-selection__btn {
        width: 100%;
    }
}

/* ===== BAL Mailer flipbook dialog (Figma) ===== */

.mailer-dialog.pp-dialog {
    background: #e8e8e8 !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28) !important;
    overflow: hidden !important;
}

.mailer-dialog .pp-dialog__content {
    background: #e8e8e8 !important;
    padding: 0 !important;
}

.mailer-frame-modal--bal {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    background: #e8e8e8;
    padding: 1.5rem 1.75rem 1.75rem;
}

.mailer-frame-modal--bal .mailer-frame-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mailer-frame-modal--bal .mailer-frame-modal__close:hover,
.mailer-frame-modal--bal .mailer-frame-modal__close:focus-visible {
    background: #f5f5f5;
    color: #111;
    outline: none;
}

.mailer-frame-modal--bal .mailer-frame-modal__close-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.mailer-frame-modal--bal .mailer-frame-modal__body {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mailer-view--bal {
    background: transparent;
    gap: 0;
    height: 100%;
}

.mailer-view--bal .mailer-view__notice,
.mailer-view--bal .pp-alert {
    display: none !important;
}

.mailer-view--bal .mailer-viewer--iframe,
.mailer-view--bal .mailer-viewer--page-turner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex: 1;
    min-height: 0;
    background: transparent;
    padding: 0.5rem 0 0;
}

.mailer-view--bal .mailer-viewer__stage {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mailer-view--bal .mailer-viewer__iframe {
    width: min(100%, 920px);
    height: 100%;
    min-height: 0;
    max-height: 100%;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mailer-view--bal .mailer-viewer__controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 280px;
    max-width: 420px;
    width: min(60%, 420px);
    padding: 0.55rem 1rem;
    border-radius: 10px;
    background: #000;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.mailer-view--bal .mailer-viewer__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
}

.mailer-view--bal .mailer-viewer__control svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* WowBook real toolbar → black pill control bar */
.mailer-view--bal .mailer-wowbook-container .wowbook-toolbar-container,
.mailer-view--bal .mailer-wowbook-panel .wowbook-toolbar-container {
    display: flex !important;
    justify-content: center !important;
    padding: 12px 0 0 !important;
    background: transparent !important;
}

.mailer-view--bal .wowbook-toolbar-container,
.mailer-view--bal .wowbook-toolbar,
.mailer-view--bal .wowbook-controls {
    background-color: #000 !important;
    border-color: #000 !important;
    border-radius: 10px !important;
}

.mailer-view--bal .wowbook-controls {
    min-width: 280px !important;
    max-width: 420px !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 6px 14px !important;
    gap: 6px !important;
}

.mailer-view--bal .wowbook-control {
    color: #fff !important;
}

.mailer-view--bal .mailer-viewer--wowbook {
    background: transparent;
}
