html {
    font-size: 16px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}



/*Custom css*/
body {
    background: #f6f8fb;
}

.loyalty-shell {
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 90px;
}

.points-card {
    background: linear-gradient(135deg, #12355b, #1b5e9e);
}

.points-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    color: #f6b100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.progress-thin {
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.25);
}

    .progress-thin .progress-bar {
        background: #f6b100;
    }

.quick-tile {
    background: #fff;
    border-radius: 22px;
    padding: 20px 14px;
    box-shadow: 0 8px 24px rgba(18, 53, 91, 0.08);
    min-height: 110px;
    color: #12355b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

    .quick-tile i {
        font-size: 28px;
        color: #1b5e9e;
    }

    .quick-tile span {
        font-weight: 700;
    }

.membership-card-mini {
    background: #111827;
    color: #fff;
    border-radius: 22px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
}

    .membership-card-mini small {
        color: rgba(255,255,255,.6);
    }

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 22px 0 12px;
}

    .section-title h5 {
        font-weight: 800;
        margin: 0;
    }

    .section-title a {
        font-size: 14px;
        text-decoration: none;
    }

.info-card {
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: 0 8px 24px rgba(18, 53, 91, 0.08);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 10px;
}

    .empty-state i {
        font-size: 34px;
        color: #1b5e9e;
        display: block;
        margin-bottom: 8px;
    }
/*--Login style--*/
.login-shell {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 16px 90px;
}

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 76px;
    height: 76px;
    border-radius: 26px;
    background: linear-gradient(135deg, #12355b, #1b5e9e);
    color: #f6b100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 18px;
    box-shadow: 0 12px 28px rgba(18, 53, 91, 0.22);
}

.login-brand h1 {
    font-weight: 800;
    color: #12355b;
    margin-bottom: 8px;
}

.login-brand p {
    color: #6b7280;
    max-width: 360px;
    margin: 0 auto;
}

.login-card {
    background: #fff;
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 12px 34px rgba(18, 53, 91, 0.10);
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f6f8fb;
    border-radius: 18px;
    padding: 0 16px;
    border: 1px solid #edf0f5;
}

    .input-wrap i {
        color: #1b5e9e;
        font-size: 18px;
    }

    .input-wrap input {
        border: none;
        outline: none;
        background: transparent;
        width: 100%;
        padding: 15px 0;
        font-size: 16px;
    }

.login-btn {
    width: 100%;
    border: none;
    border-radius: 18px;
    padding: 15px;
    background: linear-gradient(135deg, #12355b, #1b5e9e);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 10px 22px rgba(18, 53, 91, 0.20);
}
/*---Menu--*/
.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 520px;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 12px 34px rgba(18, 53, 91, 0.18);
    display: flex;
    justify-content: space-around;
    padding: 10px 8px;
    z-index: 1000;
}

.bottom-nav-item {
    color: #6b7280;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 20%;
}

    .bottom-nav-item i {
        font-size: 20px;
    }

    .bottom-nav-item.active {
        color: #1b5e9e;
    }

/*-----Profile-----*/
.profile-header-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 12px 34px rgba(18, 53, 91, 0.10);
    margin-bottom: 18px;
}

.profile-avatar {
    width: 82px;
    height: 82px;
    border-radius: 28px;
    background: linear-gradient(135deg, #12355b, #1b5e9e);
    color: #f6b100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 16px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #eef1f5;
}

    .profile-row:last-child {
        border-bottom: none;
    }

    .profile-row span {
        color: #6b7280;
    }

.profile-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    color: #12355b;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid #eef1f5;
}

    .profile-action:last-child {
        border-bottom: none;
    }

    .profile-action i {
        font-size: 22px;
    }

/* =========================================================
   CUSTOMER ACTIVITY
   ========================================================= */

.activity-page {
    width: min(100%, 780px);
    margin: 0 auto;
    padding-bottom: 6rem;
}

/* Header */

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.activity-label {
    display: block;
    margin-bottom: .2rem;
    color: #1769e0;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.activity-header h1 {
    margin: 0;
    color: #101828;
    font-size: clamp(1.7rem, 5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.activity-header p {
    margin: .3rem 0 0;
    color: #667085;
    font-size: .9rem;
}

.activity-refresh {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7f2;
    border-radius: 15px;
    color: #1769e0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(30, 58, 100, .08);
    font-size: 1.15rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .activity-refresh:hover {
        color: #0d57c7;
        box-shadow: 0 10px 28px rgba(30, 58, 100, .13);
        transform: translateY(-2px);
    }

/* Filter */

.activity-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border: 1px solid #e4eaf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(30, 48, 76, .05);
}

    .activity-filter label {
        margin: 0;
        color: #667085;
        font-size: .82rem;
        font-weight: 600;
    }

    .activity-filter select {
        min-width: 170px;
        padding: .55rem 2.2rem .55rem .8rem;
        border: 1px solid #d7e0ec;
        border-radius: 11px;
        color: #172033;
        background-color: #f8faff;
        font-size: .82rem;
        font-weight: 650;
        outline: none;
    }

        .activity-filter select:focus {
            border-color: #1769e0;
            box-shadow: 0 0 0 3px rgba(23, 105, 224, .12);
        }

/* Fallback notice */

.activity-notice {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border: 1px solid #f5db9c;
    border-radius: 14px;
    color: #805800;
    background: #fff8e7;
    font-size: .78rem;
    line-height: 1.45;
}

    .activity-notice::before {
        content: "\F431";
        font-family: "bootstrap-icons";
        color: #d89500;
    }

/* Receipt cards */

.receipt-list {
    display: grid;
    gap: 1rem;
}

.purchase-receipt {
    overflow: hidden;
    border: 1px solid #e3e9f2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(24, 43, 75, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .purchase-receipt:hover {
        box-shadow: 0 14px 38px rgba(24, 43, 75, .11);
        transform: translateY(-2px);
    }

/* Store */

.purchase-store {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem 1.1rem .55rem;
    color: #172033;
}

    .purchase-store i {
        display: inline-flex;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        color: #1769e0;
        background: #eaf2ff;
        font-size: .95rem;
    }

    .purchase-store strong {
        overflow: hidden;
        font-size: .98rem;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* Date and receipt */

.purchase-reference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 0 1.1rem .9rem 3.8rem;
    border-bottom: 1px solid #edf1f6;
    color: #7a8495;
    font-size: .72rem;
}

    .purchase-reference span:last-child {
        overflow: hidden;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* Item lines */

.purchase-items {
    padding: 0 1.1rem;
}

.purchase-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    padding: 1rem 0;
}

    .purchase-item + .purchase-item {
        border-top: 1px solid #edf1f6;
    }

.purchase-item-description {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

    .purchase-item-description strong {
        overflow: hidden;
        color: #172033;
        font-size: .9rem;
        font-weight: 700;
        text-overflow: ellipsis;
    }

    .purchase-item-description span {
        margin-top: .25rem;
        color: #7d8798;
        font-size: .73rem;
    }

.purchase-item-calculation {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    text-align: right;
    white-space: nowrap;
}

    .purchase-item-calculation span {
        color: #858e9e;
        font-size: .7rem;
    }

    .purchase-item-calculation strong {
        margin-top: .15rem;
        color: #172033;
        font-size: .9rem;
    }

.purchase-item-discount {
    grid-column: 1 / -1;
    width: fit-content;
    padding: .22rem .5rem;
    border-radius: 7px;
    color: #067647;
    background: #ecfdf3;
    font-size: .68rem;
    font-weight: 650;
}

/* Missing details */

.purchase-details-unavailable {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: .9rem 0;
    padding: .8rem;
    border-radius: 12px;
    color: #667085;
    background: #f6f8fb;
    font-size: .76rem;
}

    .purchase-details-unavailable i {
        color: #1769e0;
    }

/* Total */

.purchase-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: .9rem 1.1rem;
    border-top: 1px solid #e8edf4;
    background: #f8faff;
}

    .purchase-total > span {
        color: #596579;
        font-size: .8rem;
        font-weight: 650;
    }

    .purchase-total > strong {
        color: #172033;
        font-size: 1.08rem;
        font-weight: 800;
    }

        .purchase-total > strong.is-return {
            color: #b26a00;
        }

    .purchase-total small {
        margin-left: .2rem;
        color: #858e9e;
        font-size: .65rem;
        font-weight: 650;
    }

/* Empty state */

.activity-empty {
    padding: 4rem 1.5rem;
    border: 1px solid #e3e9f2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(24, 43, 75, .06);
    text-align: center;
}

    .activity-empty > i {
        display: inline-flex;
        width: 60px;
        height: 60px;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        color: #1769e0;
        background: #eaf2ff;
        font-size: 1.5rem;
    }

    .activity-empty h5 {
        margin: 1rem 0 .35rem;
        color: #172033;
        font-weight: 750;
    }

    .activity-empty p {
        max-width: 330px;
        margin: 0 auto;
        color: #7a8495;
        font-size: .85rem;
    }

/* Pagination */

.activity-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .75rem;
    margin-top: 1.25rem;
}

    .activity-pagination > span {
        color: #7a8495;
        font-size: .75rem;
        text-align: center;
    }

    .activity-pagination a {
        display: inline-flex;
        width: fit-content;
        align-items: center;
        gap: .35rem;
        padding: .55rem .8rem;
        border: 1px solid #dce4ee;
        border-radius: 11px;
        color: #1769e0;
        background: #fff;
        font-size: .76rem;
        font-weight: 650;
        text-decoration: none;
    }

        .activity-pagination a:last-child {
            justify-self: end;
        }

/* Mobile */

@media (max-width: 575.98px) {
    .activity-page {
        padding-bottom: 5rem;
    }

    .activity-filter {
        padding: .7rem .8rem;
    }

        .activity-filter select {
            min-width: 155px;
        }

    .purchase-reference {
        padding-left: 1.1rem;
    }

    .purchase-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .purchase-store strong {
        font-size: .9rem;
    }

    .purchase-reference span:last-child {
        max-width: 62%;
    }
}

/* =========================================================
   CUSTOMER DASHBOARD
   Mobile-first app home; expands cleanly on desktop
   ========================================================= */

:root {
    --home-ink: #13213a;
    --home-muted: #667085;
    --home-line: #e5eaf2;
    --home-surface: #fff;
    --home-blue: #1769e0;
    --home-blue-dark: #0e4faf;
    --home-violet: #6548d8;
    --home-shadow: 0 14px 36px rgba(25, 52, 92, .10);
}

.home-dashboard {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding-bottom: 6rem;
    color: var(--home-ink);
}

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

    .home-header h1 {
        margin: 0;
        color: var(--home-ink);
        font-size: clamp(1.65rem, 7vw, 2.25rem);
        font-weight: 800;
        letter-spacing: -.04em;
        line-height: 1.1;
    }

.home-eyebrow {
    margin: 0 0 .28rem;
    color: var(--home-muted);
    font-size: .78rem;
    font-weight: 650;
}

.home-account-button {
    display: inline-flex;
    min-width: 46px;
    min-height: 46px;
    flex: 0 0 auto;
    align-items: center;
    gap: .65rem;
    padding: .35rem;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    color: var(--home-ink);
    background: var(--home-surface);
    box-shadow: 0 8px 24px rgba(25, 52, 92, .07);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .home-account-button:hover {
        border-color: #cbd9ec;
        color: var(--home-blue);
        box-shadow: 0 10px 28px rgba(25, 52, 92, .12);
        transform: translateY(-1px);
    }

.home-account-avatar {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--home-blue), var(--home-violet));
    font-size: 1.15rem;
}

.home-account-text {
    display: none;
    padding-right: .55rem;
    font-size: .78rem;
    font-weight: 750;
}

.home-primary-layout, .home-main-column {
    display: grid;
    gap: 1rem;
}

/* Points and estimated value */

.home-points-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 260px;
    border-radius: 28px;
    color: #fff;
    background: radial-gradient(circle at 92% 12%, rgba(255,255,255,.20), transparent 24%), linear-gradient(135deg, #0e63e9 0%, #315be2 52%, #6646d2 100%);
    box-shadow: 0 20px 45px rgba(37, 87, 190, .25);
}

.home-points-decoration,
.home-points-decoration::before {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
}

.home-points-decoration {
    top: -88px;
    left: -62px;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,.06);
}

    .home-points-decoration::before {
        right: -430px;
        bottom: -270px;
        width: 510px;
        height: 510px;
        background: rgba(255,255,255,.07);
    }

.home-points-content {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.4rem;
}

.home-points-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.home-points-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .4rem;
    color: rgba(255,255,255,.78);
    font-size: .78rem;
    font-weight: 700;
}

    .home-points-label i {
        color: #ffe178;
    }

.home-points-balance {
    margin: 0;
    font-size: clamp(3rem, 15vw, 4.7rem);
    font-weight: 850;
    letter-spacing: -.065em;
    line-height: .95;
}

.home-refresh-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 15px;
    color: #fff;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    font-size: 1.05rem;
    transition: background .2s ease, transform .2s ease;
}

    .home-refresh-button:hover {
        background: rgba(255,255,255,.24);
        transform: rotate(18deg);
    }

    .home-refresh-button:disabled {
        cursor: wait;
        opacity: .7;
    }

    .home-refresh-button.is-loading i {
        animation: home-spin .8s linear infinite;
    }

@keyframes home-spin {
    to {
        transform: rotate(360deg);
    }
}

.home-estimated-value {
    margin-top: 1.4rem;
}

    .home-estimated-value span {
        display: block;
        margin-bottom: .15rem;
        color: rgba(255,255,255,.7);
        font-size: .72rem;
    }

    .home-estimated-value strong {
        font-size: 1.25rem;
        font-weight: 780;
    }

.home-points-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.18);
}

.home-sync-area {
    min-width: 0;
    color: rgba(255,255,255,.68);
    font-size: .68rem;
}

    .home-sync-area span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.home-tier-pill {
    display: inline-flex;
    max-width: 55%;
    flex: 0 0 auto;
    align-items: center;
    gap: .38rem;
    padding: .42rem .7rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.14);
    font-size: .68rem;
    font-weight: 750;
}

    .home-tier-pill span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.home-balance-error {
    margin: .75rem 0 0;
    padding: .65rem .8rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;
    color: #fff;
    background: rgba(111,16,38,.25);
    font-size: .75rem;
}

/* Useful actions only */

.home-actions-section {
    margin-top: .25rem;
}

.home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 .75rem;
}

    .home-section-heading h2 {
        margin: 0;
        color: var(--home-ink);
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: -.015em;
    }

.home-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
}

.home-action-card {
    display: flex;
    min-width: 0;
    min-height: 126px;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    color: var(--home-ink);
    background: var(--home-surface);
    box-shadow: 0 8px 25px rgba(25,52,92,.07);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .home-action-card:hover {
        border-color: #cfdbeb;
        color: var(--home-ink);
        box-shadow: 0 13px 30px rgba(25,52,92,.12);
        transform: translateY(-2px);
    }

.home-action-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.1rem;
}

.action-price .home-action-icon {
    color: #0b66df;
    background: #e9f2ff;
}

.action-activity .home-action-icon {
    color: #087a5b;
    background: #e8f8f2;
}

.action-card .home-action-icon {
    color: #7045cf;
    background: #f0eaff;
}

.home-action-content {
    min-width: 0;
}

    .home-action-content strong, .home-action-content span {
        display: block;
    }

    .home-action-content strong {
        color: var(--home-ink);
        font-size: .9rem;
        font-weight: 780;
    }

    .home-action-content span {
        margin-top: .22rem;
        color: var(--home-muted);
        font-size: .7rem;
        line-height: 1.35;
    }

.home-action-arrow {
    display: none;
    color: #98a2b3;
}

/* Compact membership summary */

.home-membership-panel {
    overflow: hidden;
    padding: 1.15rem;
    border: 1px solid var(--home-line);
    border-radius: 24px;
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
}

.home-membership-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.home-membership-label {
    display: flex;
    align-items: center;
    gap: .65rem;
}

    .home-membership-label > i {
        display: inline-flex;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        color: var(--home-blue);
        background: #eaf2ff;
    }

    .home-membership-label span, .home-membership-label strong {
        display: block;
    }

    .home-membership-label span {
        color: var(--home-muted);
        font-size: .68rem;
    }

    .home-membership-label strong {
        margin-top: .12rem;
        color: var(--home-ink);
        font-size: .86rem;
    }

.home-membership-qr {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--home-ink);
    background: #f2f5fa;
    font-size: 1.05rem;
}

.home-member-account {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #152d50, #1c4d7d);
}

    .home-member-account span, .home-member-account strong {
        display: block;
    }

    .home-member-account span {
        color: rgba(255,255,255,.62);
        font-size: .66rem;
        font-weight: 650;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .home-member-account strong {
        overflow-wrap: anywhere;
        margin-top: .35rem;
        font-size: 1.12rem;
        font-weight: 780;
        letter-spacing: .025em;
    }

.home-member-details {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .7rem;
    margin-bottom: 1rem;
}

    .home-member-details div {
        min-width: 0;
        padding: .75rem;
        border-radius: 14px;
        background: #f7f9fc;
    }

    .home-member-details span, .home-member-details strong {
        display: block;
    }

    .home-member-details span {
        color: var(--home-muted);
        font-size: .65rem;
    }

    .home-member-details strong {
        overflow: hidden;
        margin-top: .22rem;
        color: var(--home-ink);
        font-size: .78rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.home-open-card {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid #cfe0f7;
    border-radius: 14px;
    color: var(--home-blue);
    background: #f3f7ff;
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

    .home-open-card:hover {
        border-color: #a9c8f2;
        color: var(--home-blue-dark);
        background: #e9f2ff;
    }

@media (min-width: 576px) {
    .home-account-text {
        display: inline;
    }

    .home-action-card {
        min-height: 104px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .home-action-content {
        flex: 1;
    }

    .home-action-arrow {
        display: inline-block;
    }
}

@media (min-width: 768px) {
    .home-dashboard {
        padding-bottom: 2rem;
    }

    .home-header {
        margin-bottom: 1.5rem;
    }

    .home-action-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .home-action-card {
        min-height: 118px;
        flex-direction: column;
        align-items: flex-start;
    }

    .home-action-arrow {
        display: none;
    }
}

@media (min-width: 992px) {
    .home-primary-layout {
        grid-template-columns: minmax(0,1.65fr) minmax(280px,.75fr);
        align-items: start;
        gap: 1.25rem;
    }

    .home-membership-panel {
        position: sticky;
        top: 92px;
    }

    .home-points-card, .home-points-content {
        min-height: 300px;
    }

    .home-points-content {
        padding: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-account-button, .home-action-card, .home-refresh-button {
        transition: none;
    }

        .home-refresh-button.is-loading i {
            animation: none;
        }
}

/* =========================================================
   DIGITAL MEMBERSHIP WALLET
   ========================================================= */

.digital-wallet-page {
    width: min(100%, 980px);
    margin: 0 auto;
    padding-bottom: 6rem;
    color: #13213a;
}

.digital-wallet-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

    .digital-wallet-header h1 {
        margin: 0;
        color: #13213a;
        font-size: clamp(1.5rem, 7vw, 2rem);
        font-weight: 820;
        letter-spacing: -.04em;
        line-height: 1.1;
    }

.digital-wallet-eyebrow {
    display: block;
    margin-bottom: .2rem;
    color: #667085;
    font-size: .68rem;
    font-weight: 700;
}

.digital-wallet-back {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e7f0;
    border-radius: 14px;
    color: #253858;
    background: #fff;
    box-shadow: 0 7px 20px rgba(25, 52, 92, .07);
    text-decoration: none;
}

    .digital-wallet-back:hover {
        border-color: #cbd9ec;
        color: #1769e0;
    }

.digital-wallet-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .65rem;
    border-radius: 999px;
    color: #087a5b;
    background: #e8f8f2;
    font-size: .68rem;
    font-weight: 800;
}

.digital-wallet-layout {
    display: grid;
    gap: 1rem;
}

/* Personalized card face */

.digital-member-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 270px;
    padding: 1.4rem;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #0768ef 0%, #3159df 54%, #6745cd 100%);
    box-shadow: 0 22px 48px rgba(37, 87, 190, .27);
}

.digital-member-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.digital-member-orb-one {
    top: -105px;
    left: -75px;
    width: 250px;
    height: 250px;
}

.digital-member-orb-two {
    right: -155px;
    bottom: -230px;
    width: 430px;
    height: 430px;
}

.digital-member-card-top,
.digital-member-card-footer,
.digital-member-owner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.digital-member-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.digital-member-brand-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffe178;
    background: rgba(255, 255, 255, .14);
    font-size: 1.05rem;
}

.digital-member-brand span,
.digital-member-brand strong,
.digital-member-owner span,
.digital-member-owner strong,
.digital-member-number span,
.digital-member-number strong,
.digital-member-card-footer span,
.digital-member-card-footer strong {
    display: block;
}

.digital-member-brand div > span,
.digital-member-owner div > span,
.digital-member-number > span,
.digital-member-card-footer span {
    color: rgba(255, 255, 255, .65);
    font-size: .58rem;
    font-weight: 750;
    letter-spacing: .1em;
}

.digital-member-brand strong {
    margin-top: .12rem;
    font-size: .86rem;
    font-weight: 780;
}

.digital-member-contactless {
    opacity: .7;
    font-size: 1.5rem;
    transform: rotate(90deg);
}

.digital-member-owner {
    justify-content: flex-start;
    margin-top: 2rem;
}

.digital-member-avatar {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 15px;
    color: #fff !important;
    background: rgba(255, 255, 255, .14);
    font-size: .8rem !important;
    font-weight: 850 !important;
    letter-spacing: .03em !important;
}

.digital-member-owner strong {
    overflow: hidden;
    max-width: 230px;
    margin-top: .15rem;
    font-size: .92rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.digital-member-number {
    margin: 1.35rem 0;
}

    .digital-member-number strong {
        overflow-wrap: anywhere;
        margin-top: .3rem;
        font-size: clamp(1.2rem, 6vw, 1.65rem);
        font-weight: 800;
        letter-spacing: .04em;
    }

.digital-member-card-footer {
    align-items: flex-end;
    padding-top: .85rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

    .digital-member-card-footer > div:last-child {
        text-align: right;
    }

    .digital-member-card-footer strong {
        overflow: hidden;
        max-width: 145px;
        margin-top: .15rem;
        font-size: .74rem;
        font-weight: 740;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* Checkout scanner */

.digital-checkout-card {
    padding: 1.15rem;
    border: 1px solid #e3e9f2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(25, 52, 92, .09);
}

.digital-checkout-heading {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
}

.digital-checkout-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #1769e0;
    background: #eaf2ff;
    font-size: 1.15rem;
}

.digital-checkout-heading h2 {
    margin: 0;
    color: #13213a;
    font-size: .98rem;
    font-weight: 800;
}

.digital-checkout-heading p {
    margin: .2rem 0 0;
    color: #667085;
    font-size: .7rem;
    line-height: 1.4;
}

.digital-code-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
    margin-bottom: 1rem;
    padding: .3rem;
    border-radius: 14px;
    background: #f0f3f8;
}

.digital-code-tab {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    border-radius: 11px;
    color: #667085;
    background: transparent;
    font-size: .72rem;
    font-weight: 750;
}

    .digital-code-tab.active {
        color: #1769e0;
        background: #fff;
        box-shadow: 0 4px 14px rgba(25, 52, 92, .10);
    }

.digital-code-stage {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.15rem .75rem;
    border: 1px solid #e7ebf2;
    border-radius: 18px;
    background: #fff;
}

.digital-code-panel {
    width: 100%;
    text-align: center;
}

    .digital-code-panel[hidden] {
        display: none;
    }

#memberBarcode {
    width: min(100%, 390px);
    height: auto;
    max-height: 112px;
}

#memberQrCode {
    width: min(220px, 72vw) !important;
    height: auto !important;
}

.digital-code-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .9rem;
    padding: .75rem .8rem;
    border-radius: 14px;
    background: #f7f9fc;
}

    .digital-code-number span,
    .digital-code-number strong {
        display: block;
    }

    .digital-code-number div > span {
        color: #667085;
        font-size: .62rem;
    }

    .digital-code-number strong {
        overflow-wrap: anywhere;
        margin-top: .18rem;
        color: #13213a;
        font-size: .82rem;
        font-weight: 780;
        letter-spacing: .03em;
    }

.digital-copy-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: .35rem;
    padding: .45rem .65rem;
    border: 1px solid #cee0f8;
    border-radius: 11px;
    color: #1769e0;
    background: #edf4ff;
    font-size: .68rem;
    font-weight: 750;
}

    .digital-copy-button.copied {
        border-color: #b9ead8;
        color: #087a5b;
        background: #e8f8f2;
    }

.digital-code-error,
.digital-code-unavailable {
    color: #9f313b;
    font-size: .74rem;
}

.digital-code-unavailable {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: 1rem;
    border: 1px solid #f0c9cd;
    border-radius: 16px;
    background: #fff4f5;
}

    .digital-code-unavailable strong,
    .digital-code-unavailable span {
        display: block;
    }

    .digital-code-unavailable span {
        margin-top: .2rem;
        color: #7c5559;
        font-size: .7rem;
    }

/* Account ownership and privacy */

.digital-account-summary {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 34px;
    align-items: center;
    gap: .75rem;
    padding: .9rem;
    border: 1px solid #e3e9f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 52, 92, .06);
}

.digital-summary-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #7045cf;
    background: #f0eaff;
}

.digital-summary-content {
    min-width: 0;
}

    .digital-summary-content span,
    .digital-summary-content strong {
        display: block;
    }

    .digital-summary-content span {
        color: #667085;
        font-size: .65rem;
    }

    .digital-summary-content strong {
        overflow: hidden;
        margin-top: .17rem;
        color: #13213a;
        font-size: .82rem;
        font-weight: 760;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.digital-summary-link {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #667085;
    background: #f5f7fa;
    text-decoration: none;
}

.digital-wallet-note {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .2rem .35rem;
    color: #667085;
}

    .digital-wallet-note i {
        margin-top: .05rem;
        color: #087a5b;
    }

    .digital-wallet-note p {
        margin: 0;
        font-size: .68rem;
        line-height: 1.5;
    }

    .digital-wallet-note strong {
        color: #344054;
    }

@media (min-width: 768px) {
    .digital-wallet-page {
        padding-bottom: 2rem;
    }

    .digital-wallet-layout {
        grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
        align-items: start;
        gap: 1.25rem;
    }

    .digital-member-card {
        position: sticky;
        top: 92px;
        min-height: 310px;
        padding: 1.65rem;
    }

    .digital-checkout-card {
        grid-column: 2;
        grid-row: 1 / span 2;
        padding: 1.4rem;
    }

    .digital-account-summary,
    .digital-wallet-note {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .digital-wallet-back,
    .digital-code-tab,
    .digital-copy-button {
        transition: none;
    }
}
