/* TRU-Rewards: white and black app surfaces, with gold on membership cards. */
:root {
    --tru-ink: #151515;
    --tru-muted: #686868;
    --tru-line: #e6e6e6;
    --tru-gold: #c79c4a;
    --loyalty-start: #bb8731;
    --loyalty-mid: #efd492;
    --loyalty-end: #bd8b39;
    --loyalty-muted: #413112;
    --home-ink: #171717;
    --home-muted: #696969;
    --home-line: #e5e5e5;
    --home-blue: #171717;
    --home-blue-dark: #333;
    --home-violet: #333;
    --home-shadow: 0 12px 30px rgba(0,0,0,.06);
    --bs-primary: #171717;
    --bs-primary-rgb: 23,23,23;
    --bs-link-color: #171717;
    --bs-link-hover-color: #484848;
}
body.tru-authenticated, body.tru-public { background: #fff; color: var(--tru-ink); }
body.tru-public { margin-bottom: 0; }
a { color: #171717; }
a:hover { color: #484848; }
:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
.form-control:focus, .form-select:focus, .barcode-input:focus {
    border-color: #333 !important;
    box-shadow: 0 0 0 .2rem rgba(0,0,0,.10) !important;
}
.form-control, .form-select, .input-wrap input { font-size: max(16px, 1rem); }
.form-check-input:checked { background-color: #171717; border-color: #171717; }
.btn-primary, .btn-primary:hover, .login-btn { color: #fff; background: #171717; border-color: #171717; }
.btn-outline-primary { color: #171717; border-color: #171717; }
.btn-outline-primary:hover { color: #fff; background: #171717; border-color: #171717; }

/* Sign in: give the wordmark, stores and greeting separate visual space. */
body.tru-public .portal-content { max-width: 960px; padding: 0 1.25rem 3rem; }
.tru-login { max-width: 690px; margin: 0 auto; padding: clamp(2.75rem, 7vw, 5rem) 0 2rem; }
.tru-login-hero { text-align: center; }
.tru-wordmark { display: flex; flex-direction: column; align-items: center; color: #080808; line-height: 1; }
.tru-wordmark strong { font-size: clamp(5.25rem, 19vw, 8.5rem); font-weight: 520; letter-spacing: .16em; padding-left: .16em; }
.tru-wordmark span { margin-top: .22rem; font-size: clamp(1.35rem, 5.6vw, 2.35rem); letter-spacing: .58em; padding-left: .58em; font-weight: 500; }
.tru-tagline { margin: 2.25rem 0 .7rem; font-size: clamp(.85rem, 2.8vw, 1.15rem); font-weight: 650; letter-spacing: .4em; }
.tru-subline { margin: 0; font-size: clamp(.62rem, 2vw, .82rem); letter-spacing: .26em; }
.tru-store-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: center; gap: clamp(1rem,3vw,2rem); margin: 2.8rem auto 4rem; }
.tru-store { display: flex; align-items: center; justify-content: center; min-width: 0; height: 58px; }
.tru-store img { display: block; width: 100%; max-width: 150px; height: 52px; object-fit: contain; }
.tru-store img[alt="LEX"] { height: 48px; object-fit: cover; object-position: center; }
.tru-login-form { text-align: center; }
.tru-login-form h1 { margin: 0; font-size: clamp(2rem,5vw,2.6rem); font-weight: 750; letter-spacing: -.04em; }
.tru-login-form > p { margin: .45rem 0 2.4rem; color: #676767; font-size: clamp(1rem,3vw,1.2rem); }
.tru-login-form form { text-align: left; }
.tru-login .input-wrap { height: 64px; padding: 0 1.2rem; gap: 1rem; border: 1px solid #d5d5d5; background: #fff; border-radius: 12px; }
.tru-login .input-wrap:focus-within { border-color: #333; box-shadow: 0 0 0 3px rgba(0,0,0,.1); }
.tru-login .input-wrap i { color: #1c1c1c; font-size: 1.35rem; }
.tru-login .input-wrap input { flex: 1; min-width: 0; padding: 1rem 0; color: #1b1b1b; }
.tru-login .input-wrap input::placeholder { color: #858585; }
.tru-password-toggle { flex: none; width: 44px; height: 44px; border: 0; background: none; color: #222; }
.tru-submit { display: flex; justify-content: center; align-items: center; position: relative; min-height: 64px; border-radius: 999px; margin-top: 1.5rem; box-shadow: none; letter-spacing: .3em; }
.tru-submit i { position: absolute; right: 1.65rem; font-size: 1.35rem; }
.tru-submit:hover { background: #383838; }
.tru-forgot { display: block; text-align: center; margin: 1.35rem auto 2.2rem; color: #1b1b1b; text-decoration: underline; text-underline-offset: 4px; }
.tru-login-divider { display: flex; align-items: center; gap: 1.3rem; color: #888; margin: 1.85rem 0; }
.tru-login-divider::before, .tru-login-divider::after { content: ''; flex: 1; height: 1px; background: #c9c9c9; }
.tru-join { display: flex; align-items: center; justify-content: center; min-height: 62px; border: 2px solid #191919; border-radius: 999px; color: #171717; text-decoration: none; font-weight: 760; letter-spacing: .24em; text-align: center; }
.tru-join:hover { color: #fff; background: #171717; }
.tru-free { color: #777 !important; text-align: center; font-size: .75rem !important; letter-spacing: .27em; margin: 1rem 0 !important; }
.tru-auth-link { display: flex; align-items: baseline; justify-content: center; gap: .35rem; margin: 2rem auto .5rem; color: #111; text-decoration: none; letter-spacing: .15em; }
.tru-auth-link strong { font-size: 1.9rem; font-weight: 650; }
.tru-auth-link span { font-size: .9rem; }
.tru-public .login-logo { color: #fff; background: #171717; }
.tru-public .login-brand h1 { color: #181818; }
.tru-public .login-card, .tru-public .card { border: 1px solid var(--tru-line) !important; box-shadow: 0 12px 34px rgba(0,0,0,.05); }
.tru-public .input-wrap i { color: #171717; }
.tru-public .login-btn { background: #171717; box-shadow: none; }

/* The app shell stays monochrome. The card access button signals membership. */
.portal-header { background: rgba(255,255,255,.98) !important; border-bottom-color: var(--tru-line) !important; }
.portal-brand { color: #171717 !important; }
.portal-brand-icon { width: 44px !important; height: 38px !important; border-radius: 9px !important; font-size: .68rem; font-weight: 850; background: #171717 !important; color: #fff !important; }
.desktop-nav-link:hover, .desktop-nav-link.active, .header-icon:hover, .header-icon.active { color: #171717 !important; background: #f1f1f1 !important; }
.desktop-card-button, .mobile-card-button { background: linear-gradient(135deg,#bd8734,#e6c477) !important; color: #1b160d !important; box-shadow: 0 8px 22px rgba(100,70,20,.19) !important; }
.header-icon { border-color: var(--tru-line) !important; color: #242424 !important; }
.mobile-command-nav { border-color: var(--tru-line) !important; background: rgba(255,255,255,.98) !important; }
.mobile-nav-item:hover, .mobile-nav-item.active { color: #171717 !important; }
.mobile-nav-item.active::before { background: #171717 !important; }

/* Gold belongs to TRU Points and the loyalty card, not the rest of the app. */
.home-points-card { color: #21190e !important; background: radial-gradient(circle at 92% 12%,rgba(255,255,255,.4),transparent 29%),linear-gradient(125deg,#ba842d 0%,#efd392 50%,#c29342 100%) !important; box-shadow: 0 18px 35px rgba(116,78,21,.17); }
.home-points-label, .home-points-label i, .home-estimated-value span, .home-sync-area, .home-tier-pill { color: #3d2c11 !important; }
.home-points-footer { border-color: rgba(48,34,12,.24); }
.home-refresh-button { color: #21190e; background: rgba(255,255,255,.34); border-color: rgba(48,34,12,.3); }
.home-refresh-button:hover { background: rgba(255,255,255,.55); }
.home-tier-pill { background: rgba(255,255,255,.35); }
.home-balance-error { color: #612020; background: rgba(255,255,255,.6); border-color: rgba(97,32,32,.25); }
.home-member-account { color: #21190e !important; background: linear-gradient(125deg,#ba842d,#efd392 55%,#c29342) !important; }
.home-member-account span { color: #4b3719 !important; }
.home-membership-panel, .points-card { border-color: var(--tru-line); }
.home-membership-qr, .wallet-asset-loyalty .wallet-picker-icon { color: #3e2b0e !important; background: #f4dfa9 !important; }
.wallet-loyalty-card { color: #21190e !important; background: linear-gradient(115deg,#b7812d 0%,#f0d99b 55%,#bd8b38 100%) !important; box-shadow: 0 18px 32px rgba(116,78,21,.18) !important; }
.wallet-loyalty-card :is(.wallet-card-brand small,.wallet-card-footer small,.wallet-member-details small,.wallet-tap-hint) { color: #463415 !important; }
.wallet-loyalty-card .wallet-card-footer { border-color: rgba(48,34,12,.28); }
.wallet-loyalty-card .wallet-brand-mark { background: rgba(255,255,255,.32); }
.wallet-loyalty-card .wallet-loyalty-qr { color: #fff; background: #231b0f; border-color: #231b0f; }
.wallet-loyalty-card .wallet-loyalty-qr:hover { background: #48351a; }
.wallet-asset-loyalty .wallet-card-picker { border-left-color: #bd8b38; }
.rewards-card { color: #21190e !important; background: linear-gradient(115deg,#b7812d,#f0d99b 55%,#bd8b38) !important; box-shadow: 0 16px 35px rgba(116,78,21,.18) !important; }
.rewards-card .profile-show-qr { color: #fff !important; background: #231b0f !important; border-color: #231b0f !important; }
.account-shell .points-icon, .account-shell .points-value { color: #171717 !important; }
.account-shell .points-icon { background: #f0f0f0 !important; }

/* All other feature controls remain black, white and neutral grey. */
.home-account-avatar { background: #171717; }
.home-action-card:hover { border-color: #777; }
.action-price .home-action-icon, .action-activity .home-action-icon, .action-card .home-action-icon { color: #171717; background: #f0f0f0; }
.home-action-icon i { color: inherit; }
.home-member-details div { background: #f6f6f6; }
.home-open-card, .home-open-card:hover { color: #171717 !important; background: #f6f6f6 !important; border-color: #dedede !important; }
.activity-label, .activity-refresh, .activity-refresh:hover { color: #171717; }
.activity-filter select:focus { border-color: #333; box-shadow: 0 0 0 3px rgba(0,0,0,.1); }
.activity-page :is(.purchase-store i,.purchase-details-unavailable i,.activity-empty > i,.activity-pagination a) { color: #171717; }
.activity-page :is(.purchase-store i,.activity-empty > i) { background: #f0f0f0; }
.price-page .scan-button { background: #171717 !important; box-shadow: 0 12px 26px rgba(0,0,0,.12) !important; }
.price-page .price-submit { background: #171717 !important; }
.price-page .barcode-input:focus { border-color: #333 !important; }
.price-page .product-result .your-price, .price-page .price-back, .price-page .offer-panel i { color: #171717 !important; }
.account-shell .details-card, .edit-profile-card { border: 1px solid var(--tru-line); }
.edit-profile-shell .form-control:focus, .edit-profile-shell .form-select:focus { border-color: #333 !important; box-shadow: 0 0 0 .2rem rgba(0,0,0,.1) !important; }

/* Administration inherits the same restrained palette. */
:root { --admin-navy: #171717; --admin-navy-light: #292929; --admin-blue: #171717; --admin-background: #fff; --admin-border: #e6e6e6; --admin-text: #191919; }
.admin-sidebar { background: #171717 !important; }
.admin-brand-icon { background: #393939 !important; }
.admin-body { background: #fff !important; }

@media (max-width: 575.98px) {
    .tru-login { padding-top: 2.4rem; }
    .tru-tagline { margin-top: 1.7rem; letter-spacing: .26em; }
    .tru-subline { letter-spacing: .13em; }
    .tru-store-strip { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem 2rem; max-width: 420px; margin: 2.4rem auto 3.15rem; }
    .tru-store { height: 46px; }
    .tru-store img { height: 42px; }
    .tru-store img[alt="LEX"] { height: 42px; }
    .tru-login-form > p { margin-bottom: 2rem; }
    .tru-login .input-wrap { height: 58px; }
    .tru-submit, .tru-join { min-height: 58px; }
}

/* Refined dashboard: compact balance, membership card, then useful actions. */
.home-dashboard { max-width: 1140px; padding-bottom: 1.5rem; }
.home-header { margin-bottom: 1.6rem; }
.home-header h1 { font-weight: 590; letter-spacing: -.035em; }
.home-header p { margin: .35rem 0 0; color: #737373; }
.home-eyebrow { font-weight: 550; letter-spacing: .14em; text-transform: uppercase; }
.home-account-button { box-shadow: none; border-radius: 999px; }
.home-account-text { font-weight: 550; }
.home-primary-layout { grid-template-columns: minmax(0,1fr); align-items: start; gap: 1.25rem; }
.home-main-column { display: block; min-width: 0; }
.home-points-card { min-height: 0 !important; border-radius: 23px; }
.home-points-content { min-height: 230px !important; padding: 1.4rem 1.6rem !important; gap: .75rem; }
.home-points-top > div { min-width: 0; }
.home-points-label { margin-bottom: .8rem; font-size: .76rem; font-weight: 540; letter-spacing: .1em; text-transform: uppercase; }
.home-points-balance { font-size: initial; line-height: 1; }
.home-points-balance strong { display: block; max-width: 100%; font-size: clamp(2.8rem, 9vw, 4.8rem); font-weight: 570; letter-spacing: -.055em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.home-points-unit { display: block; margin-top: .2rem; font-size: .88rem; font-weight: 500; }
.home-estimated-value { margin-top: .25rem; }
.home-estimated-value strong { font-size: 1.12rem; font-weight: 550; }
.home-points-footer { margin-top: .2rem; padding-top: .75rem; }
.home-balance-error:empty { display: none; }
.home-refresh-button { border-radius: 50%; }
.home-tier-pill { font-weight: 520; }
.home-points-card {
    isolation: isolate;
    box-shadow: 0 23px 34px rgba(96,59,11,.19), 0 6px 12px rgba(70,43,7,.10), inset 0 1px rgba(255,255,255,.5) !important;
}
.home-points-content { position: relative; z-index: 1; }
.home-points-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(135deg,transparent 0 26px,rgba(60,38,10,.06) 26px 27px);
    clip-path: polygon(45% 0,100% 0,100% 100%,75% 100%);
    pointer-events: none;
}
.home-points-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg,transparent 30%,rgba(255,255,255,.18) 46%,transparent 64%);
    pointer-events: none;
}
.home-actions-section { margin-top: 2.15rem; }
.home-section-heading { margin-bottom: 1rem; }
.home-section-heading h2 { font-size: 1.1rem; font-weight: 610; }
.home-section-heading p { margin: .2rem 0 0; color: #777; font-size: .84rem; }
.home-action-grid { grid-template-columns: minmax(0,1fr); }
.home-action-card { min-height: 76px; flex-direction: row; align-items: center; padding: .85rem 1rem; border-radius: 17px; box-shadow: none; }
.home-action-arrow { display: block; margin-left: auto; }
.home-action-content strong { font-weight: 610; }
.home-action-icon { border-radius: 11px; }

/* A restrained foil effect, fine border and member mark across all loyalty cards. */
.home-member-card, .wallet-loyalty-card, .account-shell .rewards-card {
    isolation: isolate;
    overflow: hidden;
    color: #20180b !important;
    background: radial-gradient(circle at 85% 10%,rgba(255,255,255,.65),transparent 29%),
                linear-gradient(122deg,#9c691f 0%,#e9c675 24%,#f4dda0 52%,#c28d33 80%,#a06b22 100%) !important;
    border: 1px solid rgba(255,255,255,.55) !important;
    border-radius: 21px !important;
    box-shadow: 0 29px 42px rgba(92,55,8,.23), 0 8px 16px rgba(70,41,4,.13),
                inset 0 1px rgba(255,255,255,.8), inset 0 -2px 4px rgba(68,40,6,.28) !important;
}
.home-member-card::before, .wallet-loyalty-card::before, .account-shell .rewards-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 9px !important;
    width: auto !important;
    height: auto !important;
    border: 1px solid rgba(73,46,9,.25) !important;
    border-radius: 13px !important;
    background: none !important;
    pointer-events: none;
    z-index: 0;
}
.home-member-card::after, .wallet-loyalty-card::after, .account-shell .rewards-card::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    z-index: 0;
    background: repeating-linear-gradient(135deg,transparent 0 23px,rgba(80,47,6,.08) 23px 24px),
                linear-gradient(150deg,transparent 40%,rgba(255,255,255,.29) 48%,transparent 59%) !important;
    clip-path: polygon(54% 0,100% 0,100% 100%,64% 100%,82% 54%);
    pointer-events: none;
}
.tru-card-facet {
    position: absolute;
    z-index: 0;
    right: -6%;
    top: 17%;
    width: 50%;
    aspect-ratio: 1;
    transform: rotate(45deg);
    border: 1px solid rgba(80,49,10,.2);
    box-shadow: 0 0 0 24px rgba(255,255,255,.055), 0 0 0 48px rgba(79,48,7,.055);
    pointer-events: none;
}
.home-member-card > :not(.tru-card-facet), .wallet-loyalty-card > :not(.tru-card-facet), .membership-card-content { position: relative; z-index: 1; }
.wallet-loyalty-card .wallet-orb { display: none; }

/* One physical-card proportion in the wallet and on the Account page. */
.wallet-featured > .wallet-asset-loyalty, .wallet-featured > .wallet-asset-gift { width: min(100%,460px); margin-inline: auto; }
.wallet-featured { min-height: 0; }
.wallet-loyalty-card { width: 100%; max-width: 460px; aspect-ratio: 1.586; min-height: 0 !important; padding: 1.35rem 1.45rem !important; }
.wallet-featured .wallet-gift-face { box-sizing: border-box; width: 100%; aspect-ratio: 1.586; min-height: 0 !important; }
.wallet-loyalty-card .wallet-brand-mark { color: #37270e; background: rgba(255,255,255,.28); }
.wallet-loyalty-card .wallet-card-brand strong { font-weight: 560; }
.wallet-loyalty-card .wallet-card-brand small, .wallet-loyalty-card .wallet-card-footer small, .wallet-loyalty-card .wallet-member-details small { font-weight: 540; }
.wallet-loyalty-card .wallet-card-middle { padding: .6rem 0 .45rem; }
.wallet-loyalty-card .wallet-account-number { margin: .2rem 0 .4rem; font-size: clamp(1.15rem,3.7vw,1.45rem); font-weight: 560; }
.wallet-loyalty-card .wallet-member-name { font-weight: 520; }
.wallet-loyalty-card .wallet-tap-hint { margin-top: .45rem; }
.wallet-loyalty-card .wallet-card-footer { padding-top: .5rem; }
.wallet-loyalty-card .wallet-card-footer strong { font-weight: 560; }
.wallet-loyalty-card .wallet-loyalty-qr { font-weight: 560; }
.account-shell .rewards-card { width: min(100%,460px); height: auto !important; min-height: 0 !important; aspect-ratio: 1.586; padding: 1.35rem 1.45rem !important; }
.account-shell .membership-card-content { min-height: 0 !important; height: 100%; }
.account-shell .rewards-card .fw-bold { font-weight: 560 !important; }
.account-shell .rewards-card-label { font-weight: 540; }
.account-shell .account-number-value { font-size: clamp(1.1rem,3.8vw,1.4rem); font-weight: 560; }
.account-shell .member-card-name { font-weight: 500; margin-top: .5rem; }
.account-shell .tap-hint { margin-top: .4rem; }
.account-shell .profile-show-qr { font-weight: 560; }
.account-shell .points-card { min-height: 0 !important; padding: 1.5rem; box-shadow: none; border: 1px solid #e6e6e6; }
.account-shell .points-value { font-weight: 570; font-variant-numeric: tabular-nums; }
.account-header h1 { font-weight: 600; }

/* Dashboard membership: same foil details, smaller than the main card. */
.home-membership-panel { position: static !important; display: flex; flex-direction: column; align-items: stretch; gap: .75rem; padding: 0; border: 0; background: none; box-shadow: none; }
.home-member-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 100%; max-width: 390px; aspect-ratio: 1.586; min-height: 0; padding: 1.45rem 1.5rem; }
.home-member-card .home-membership-top { margin: 0; }
.home-member-card .home-membership-label { color: #47320f; font-size: .63rem; font-weight: 550; letter-spacing: .16em; }
.home-member-card .home-membership-top h2 { margin: .2rem 0 0; color: #21180a; font-size: 1.05rem; font-weight: 570; }
.home-member-card .home-membership-qr { color: #37270e !important; background: rgba(255,255,255,.3) !important; }
.home-member-card .home-member-account { margin: auto 0 .55rem; padding: 0; background: none !important; box-shadow: none; }
.home-member-card .home-member-account span { font-size: .62rem; font-weight: 520; }
.home-member-card .home-member-account strong { margin-top: .15rem; font-size: 1.13rem; font-weight: 570; }
.home-member-card .home-member-details { display: flex; align-items: flex-end; gap: .4rem; margin: 0; padding-top: .55rem; border-top: 1px solid rgba(60,42,14,.24); }
.home-member-card .home-member-details span, .home-member-card .home-member-details strong { display: block; color: #3c2b12; font-size: .65rem; font-weight: 550; }
.home-member-card .home-member-details strong { min-width: 0; max-width: 55%; margin-left: auto; overflow-wrap: anywhere; text-align: right; }
.home-open-card { width: min(100%,390px); min-height: 44px; justify-content: space-between; padding: .55rem .25rem; border: 0 !important; background: none !important; font-size: .82rem; font-weight: 550; }
.home-open-card:hover { background: none !important; text-decoration: underline; }

/* Less typographic weight across the app shell. */
.portal-brand { font-weight: 590; }
.desktop-nav-link, .mobile-nav-item { font-weight: 520; }
.wallet-header h1, .wallet-section-header h2 { font-weight: 600; }
.wallet-eyebrow, .wallet-kicker { font-weight: 570; }
.tru-login-form h1 { font-weight: 690; }
.tru-login-form > p { font-weight: 400; }
.tru-submit, .tru-join { font-weight: 590; }
.tru-store-strip { max-width: 600px; gap: 1.5rem; }
.tru-store img { max-width: 128px; height: 38px; }
.tru-store img[alt="LEX"] { height: 38px; }

@media (min-width: 768px) {
    .home-primary-layout { grid-template-columns: minmax(0,1.35fr) minmax(300px,.85fr); gap: 1.5rem; }
    .home-action-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .home-action-card { min-height: 112px; flex-direction: column; align-items: flex-start; }
    .home-action-arrow { display: none; }
}
@media (max-width: 575.98px) {
    /* Four compact logos in one intentional row. */
    .tru-store-strip { grid-template-columns: repeat(4,minmax(0,1fr)); gap: .55rem; max-width: 450px; margin: 2.15rem auto 2.9rem; }
    .tru-store { height: 33px; }
    .tru-store img { max-width: 72px; height: 27px; }
    .tru-store img[alt="LEX"] { height: 27px; }
    .home-primary-layout { gap: 1.5rem; }
    .home-points-content { min-height: 225px !important; padding: 1.25rem !important; }
    .home-member-card { max-width: 390px; }
    .wallet-loyalty-card, .wallet-featured .wallet-gift-face, .account-shell .rewards-card { min-height: 235px !important; }
    .wallet-loyalty-card, .account-shell .rewards-card { padding: 1.1rem 1.2rem !important; }
    .home-member-card { padding: 1.2rem 1.3rem; }
    .wallet-loyalty-card .wallet-tap-hint { display: none; }
    .account-shell .tap-hint { display: none; }
}
