:root {
    --navy-950: #031426;
    --navy-900: #061d36;
    --navy-800: #0a3157;
    --blue-600: #087ce8;
    --blue-500: #1f9af5;
    --sky-100: #eaf7ff;
    --ink: #092541;
    --muted: #5d7186;
    --line: #dce8f1;
    --success: #15805d;
    --shadow: 0 24px 70px rgba(7, 42, 72, .14);
    --radius-lg: 30px;
    --shell: 1120px;
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background:
        radial-gradient(circle at 6% 16%, rgba(62, 174, 246, .16), transparent 28rem),
        radial-gradient(circle at 94% 72%, rgba(115, 215, 255, .18), transparent 30rem),
        #f7fbfe;
    font-family: Inter, Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.visually-hidden {
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shell {
    width: min(var(--shell), calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 10;
    color: white;
    background: rgba(3, 20, 38, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img, .loyalty-card-top img, .counter-sign-brand img {
    width: 132px;
    height: 48px;
    object-fit: contain;
    object-position: center;
}

.demo-badge, .tier-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(115, 215, 255, .32);
    border-radius: 999px;
    color: #bceaff;
    background: rgba(31, 154, 245, .11);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.header-nav a {
    color: #c8d6e4;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 650;
    transition: color 160ms ease;
}

.header-nav a:hover, .header-nav a:focus-visible { color: white; }

.header-nav .product-link {
    padding: 10px 14px;
    color: white;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
}
.culture-menu { position: relative; }
.culture-menu summary {
    min-height: 38px;
    min-width: 76px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    background-color: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 750;
    list-style: none;
    transition: background 160ms ease, border-color 160ms ease;
}
.culture-menu summary::-webkit-details-marker { display: none; }
.culture-menu summary:hover,
.culture-menu summary:focus-visible,
.culture-menu[open] summary {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(115, 215, 255, .4);
}
.culture-menu img {
    width: 23px;
    height: 16px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}
.culture-chevron {
    width: 6px;
    height: 6px;
    margin: -3px 1px 0 0;
    border-right: 1.5px solid #bcd0e0;
    border-bottom: 1.5px solid #bcd0e0;
    transform: rotate(45deg);
    transition: transform 160ms ease, margin 160ms ease;
}
.culture-menu[open] .culture-chevron { margin-top: 3px; transform: rotate(225deg); }
.culture-options {
    width: 210px;
    padding: 7px;
    position: absolute;
    z-index: 30;
    top: calc(100% + 9px);
    right: 0;
    overflow: hidden;
    color: var(--ink);
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 18px 50px rgba(3, 20, 38, .24);
    backdrop-filter: blur(16px);
}
.culture-options form { margin: 0; }
.culture-options button {
    width: 100%;
    min-height: 42px;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
}
.culture-options button:hover,
.culture-options button:focus-visible { background: var(--sky-100); outline: 0; }
.culture-options button[aria-current="true"] { color: var(--blue-600); background: #eef9ff; }
.culture-options button span { font-size: .82rem; font-weight: 700; }
.culture-options button small { margin-left: auto; color: var(--muted); font-size: .65rem; font-weight: 750; }
.culture-options button i { color: var(--success); font-style: normal; font-weight: 800; }

.site-main { flex: 1 0 auto; min-height: 620px; }

.site-footer {
    flex: 0 0 auto;
    color: #8fa4b8;
    background: var(--navy-950);
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.footer-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    font-size: .76rem;
}

.footer-links, .footer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a { color: #b5c5d4; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: white; }
.footer-meta { justify-content: flex-end; }
.version { opacity: .52; font-size: .67rem; letter-spacing: .06em; }

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue-600);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 {
    max-width: 780px;
    margin-bottom: 18px;
    color: var(--navy-900);
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.055em;
}
h2 {
    margin-bottom: 14px;
    color: var(--navy-900);
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}
p { color: var(--muted); line-height: 1.7; }
.lead { max-width: 650px; font-size: 1.13rem; }

.panel {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.1;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-button:focus-visible, .text-link:focus-visible, input:focus-visible, a:focus-visible {
    outline: 3px solid rgba(31, 154, 245, .4);
    outline-offset: 3px;
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    box-shadow: 0 14px 30px rgba(8, 124, 232, .24);
}
.button-primary:hover { box-shadow: 0 18px 38px rgba(8, 124, 232, .34); }
.button-secondary { color: var(--navy-900); background: white; border: 1px solid var(--line); }
.button-ghost { color: var(--navy-800); background: transparent; border: 1px solid #cddbe6; }
.button-wide { width: 100%; }
.text-link, .text-button { color: var(--blue-600); font-weight: 720; }
.text-link { text-underline-offset: 4px; }
.text-button {
    padding: 6px;
    border: 0;
    cursor: pointer;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.portal-page {
    min-height: 690px;
    padding-block: clamp(62px, 9vw, 112px);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .78fr);
    align-items: center;
    gap: clamp(46px, 7vw, 94px);
}

.flow-list {
    max-width: 610px;
    margin: 38px 0 0;
    padding: 0;
    display: grid;
    gap: 20px;
    list-style: none;
}

.flow-list li { display: flex; align-items: flex-start; gap: 16px; }
.flow-list li > span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    color: var(--blue-600);
    background: var(--sky-100);
    border: 1px solid #cfeeff;
    border-radius: 50%;
    font-weight: 800;
}
.flow-list strong, .flow-list small { display: block; }
.flow-list strong { margin: 2px 0 4px; color: var(--navy-900); }
.flow-list small { color: var(--muted); line-height: 1.5; }

.login-card {
    min-height: 510px;
    padding: clamp(30px, 5vw, 50px);
    position: relative;
    overflow: hidden;
}

.login-card::before, .login-card::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}
.login-card::before { width: 220px; height: 220px; top: -110px; right: -80px; background: rgba(70, 190, 255, .12); }
.login-card::after { width: 120px; height: 120px; bottom: -70px; left: -40px; background: rgba(8, 124, 232, .08); }
.login-ready, .login-qr { position: relative; z-index: 1; height: 100%; text-align: center; }
.login-ready p:not(.eyebrow), .login-qr p { max-width: 350px; margin-inline: auto; }
.login-ready .button { margin: 20px 0 18px; }

.phone-orbit {
    width: 104px;
    height: 104px;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
    position: relative;
    border: 1px solid #cae8fa;
    border-radius: 50%;
    background: linear-gradient(145deg, #f1fbff, #dff3ff);
}
.phone-orbit::before, .phone-orbit::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(31, 154, 245, .16);
    border-radius: 50%;
    animation: orbit 3s ease-out infinite;
}
.phone-orbit::before { inset: -10px; }
.phone-orbit::after { inset: -22px; animation-delay: 1.4s; }
.phone-orbit i {
    width: 35px;
    height: 57px;
    position: relative;
    display: block;
    border: 3px solid var(--navy-800);
    border-radius: 9px;
    background: white;
    box-shadow: inset 0 -12px 0 var(--blue-500);
}
.phone-orbit i::before {
    width: 9px;
    height: 3px;
    position: absolute;
    top: 4px;
    left: 10px;
    content: "";
    border-radius: 4px;
    background: var(--navy-800);
}

.qr-frame {
    width: min(100%, 270px);
    margin-inline: auto;
    padding: 14px;
    position: relative;
    background: white;
    border: 1px solid #dcecf5;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(7, 42, 72, .16);
}
.qr-frame img { width: 100%; aspect-ratio: 1; }
.qr-frame::before, .qr-frame::after {
    width: 28px;
    height: 28px;
    position: absolute;
    content: "";
    border-color: var(--blue-500);
    border-style: solid;
}
.qr-frame::before { top: 8px; left: 8px; border-width: 3px 0 0 3px; border-radius: 8px 0 0; }
.qr-frame::after { right: 8px; bottom: 8px; border-width: 0 3px 3px 0; border-radius: 0 0 8px; }
.login-qr h2 { margin-top: 26px; }
.login-qr-action { display: block; color: inherit; text-decoration: none; pointer-events: none; }
.tap-qr-badge, .mobile-only { display: none; }
.waiting-indicator {
    margin: 22px 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 650;
}
.waiting-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(21, 128, 93, .35);
    animation: statusPulse 1.6s infinite;
}

.account-page { padding-block: clamp(48px, 7vw, 84px); }
.account-heading {
    margin-bottom: 34px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}
.account-heading h1 { max-width: 820px; font-size: clamp(2.25rem, 4.4vw, 4rem); }
.account-heading p:last-child { margin-bottom: 0; }
.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
    gap: 26px;
}
.account-summary, .profile-panel { padding: clamp(28px, 4vw, 44px); }
.account-summary {
    color: white;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 10%, rgba(82, 204, 255, .42), transparent 14rem),
        linear-gradient(145deg, var(--navy-900), #075b99);
}
.account-summary::after {
    width: 280px;
    height: 280px;
    position: absolute;
    right: -140px;
    bottom: -180px;
    content: "";
    border: 50px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
}
.summary-topline, .progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.summary-topline {
    color: #c8e9ff;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.status-dot { display: flex; align-items: center; gap: 8px; }
.status-dot i {
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 50%;
    background: #65f0bd;
    box-shadow: 0 0 0 5px rgba(101, 240, 189, .12);
}
.points-total { margin: 56px 0 38px; }
.points-total strong, .points-total span { display: block; }
.points-total strong { font-size: clamp(3.8rem, 8vw, 6rem); line-height: .9; letter-spacing: -.06em; }
.points-total span { margin-top: 10px; color: #c8e9ff; }
.progress-copy { margin-bottom: 10px; color: #d6efff; font-size: .82rem; }
.progress-track { height: 9px; overflow: hidden; background: rgba(255, 255, 255, .18); border-radius: 999px; }
.progress-track span {
    height: 100%;
    min-width: 4px;
    display: block;
    background: linear-gradient(90deg, #4fc3ff, #85efff);
    border-radius: inherit;
    box-shadow: 0 0 24px rgba(115, 215, 255, .7);
}
.member-facts {
    margin: 38px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.member-facts div { min-width: 0; }
.member-facts dt {
    margin-bottom: 6px;
    color: #a8cbe1;
    font-size: .7rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.member-facts dd { margin: 0; color: white; font-size: .92rem; font-weight: 720; overflow-wrap: anywhere; }
.panel-copy { margin-bottom: 28px; }
.profile-form { display: grid; gap: 18px; }
.field label { margin-bottom: 8px; display: block; color: var(--navy-800); font-size: .84rem; font-weight: 750; }
.field input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    color: var(--ink);
    background: #f9fcfe;
    border: 1px solid #cddde8;
    border-radius: 13px;
}
.field input:focus { border-color: var(--blue-500); }
.field-error { min-height: 18px; margin-top: 6px; display: block; color: #b43c4b; font-size: .78rem; }
.privacy-note {
    margin-top: 28px;
    padding-top: 22px;
    display: flex;
    gap: 10px;
    color: #718397;
    border-top: 1px solid var(--line);
    font-size: .76rem;
    line-height: 1.55;
}
.privacy-note > span { color: var(--success); }
.danger-zone {
    margin-top: 24px;
    padding-top: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
}
.danger-zone strong, .danger-zone small { display: block; }
.danger-zone strong { color: var(--navy-900); font-size: .84rem; }
.danger-zone small { max-width: 270px; margin-top: 5px; color: var(--muted); line-height: 1.45; }
.danger-button { color: #b43c4b; white-space: nowrap; }

.notice { margin-bottom: 26px; padding: 15px 18px; border-radius: 15px; font-size: .88rem; font-weight: 650; }
.success-notice { color: #0d664a; background: #e6f7f1; border: 1px solid #bde8d9; }
.welcome-notice {
    max-width: 680px;
    margin-inline: auto;
    color: #075f91;
    background: #e9f8ff;
    border: 1px solid #c3eaff;
    text-align: center;
}
.toast-notice {
    max-width: min(520px, calc(100vw - 28px));
    padding: 14px 18px;
    position: fixed;
    z-index: 100;
    top: max(16px, env(safe-area-inset-top));
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #075f91;
    background: rgba(241, 251, 255, .97);
    border: 1px solid #b8e6fb;
    border-radius: 15px;
    box-shadow: 0 18px 50px rgba(4, 52, 91, .2);
    font-size: .86rem;
    font-weight: 680;
    transform: translateX(-50%);
    animation: toastIn 420ms cubic-bezier(.2, .8, .2, 1) both;
    backdrop-filter: blur(14px);
}
.toast-notice.toast-success { color: #0d664a; background: rgba(235, 250, 245, .97); border-color: #bde8d9; }
.toast-notice.is-leaving { animation: toastOut 420ms ease both; }

.wallet-page { padding-block: clamp(22px, 4vw, 42px) clamp(58px, 8vw, 96px); }
.wallet-heading { max-width: 680px; margin: 0 auto 18px; text-align: center; }
.wallet-heading p { margin: 0; color: #486b84; font-size: .9rem; line-height: 1.45; }
.loyalty-card {
    width: min(100%, 580px);
    min-height: 700px;
    margin-inline: auto;
    padding: clamp(26px, 5vw, 42px);
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 88% 8%, rgba(115, 215, 255, .9), transparent 19rem),
        radial-gradient(circle at -10% 72%, rgba(31, 154, 245, .48), transparent 20rem),
        linear-gradient(150deg, #061d36 10%, #07497b 60%, #087ce8 115%);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 38px;
    box-shadow: 0 38px 90px rgba(4, 52, 91, .28), inset 0 1px 0 rgba(255, 255, 255, .26);
    transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 220ms ease, box-shadow 220ms ease;
}
.loyalty-card:hover { box-shadow: 0 46px 105px rgba(4, 52, 91, .34), inset 0 1px 0 rgba(255, 255, 255, .3); }
.card-glow {
    width: 360px;
    height: 760px;
    position: absolute;
    top: -290px;
    left: -360px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
    transform: rotate(24deg);
    animation: cardShine 5.5s ease-in-out infinite 1.2s;
    pointer-events: none;
}
.loyalty-card::before, .loyalty-card::after { position: absolute; content: ""; border-radius: 50%; pointer-events: none; }
.loyalty-card::before {
    width: 270px;
    height: 270px;
    right: -165px;
    bottom: 80px;
    border: 56px solid rgba(255, 255, 255, .08);
}
.loyalty-card::after {
    width: 90px;
    height: 90px;
    top: 42%;
    left: -52px;
    border: 24px solid rgba(115, 215, 255, .12);
}
.loyalty-card > *:not(.card-glow) { position: relative; z-index: 1; }
.loyalty-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.loyalty-card-top img { width: 150px; height: 55px; }
.tier-pill { color: white; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); }
.loyalty-member { margin-top: 54px; }
.loyalty-member span, .loyalty-member strong { display: block; }
.loyalty-member span {
    margin-bottom: 7px;
    color: #b8dcf4;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.loyalty-member strong { font-size: clamp(1.8rem, 5vw, 2.7rem); line-height: 1; letter-spacing: -.035em; }
.loyalty-balance { margin: 34px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.loyalty-balance div {
    padding: 20px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
}
.loyalty-balance strong, .loyalty-balance span { display: block; }
.loyalty-balance strong { font-size: 1.55rem; }
.loyalty-balance span { margin-top: 4px; color: #b8dcf4; font-size: .76rem; }
.barcode-panel {
    padding: 22px 18px 16px;
    overflow: hidden;
    color: var(--navy-900);
    background: white;
    border-radius: 22px;
    text-align: center;
}
.barcode-panel img { width: 100%; height: 145px; object-fit: fill; }
.barcode-panel span { margin-top: 3px; display: block; font-size: .88rem; font-weight: 750; letter-spacing: .32em; }
.loyalty-card-footer {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #b8dcf4;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.wallet-actions {
    width: min(100%, 580px);
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.wallet-tip { display: flex; align-items: center; gap: 12px; }
.wallet-tip > span {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--blue-600);
    background: var(--sky-100);
    border-radius: 11px;
    font-size: 1.3rem;
}
.wallet-tip strong, .wallet-tip small { display: block; }
.wallet-tip small { max-width: 260px; margin-top: 2px; color: var(--muted); line-height: 1.4; }

.store-qr-page {
    padding-block: clamp(55px, 8vw, 96px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(370px, .72fr);
    align-items: center;
    gap: clamp(50px, 8vw, 104px);
}
.store-qr-copy h1 { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.scan-benefits { margin: 28px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.scan-benefits span {
    padding: 8px 12px;
    color: #285572;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 720;
}
.counter-sign { padding: 30px; text-align: center; }
.counter-sign-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.counter-kicker {
    margin: 26px 0 7px;
    color: var(--blue-600);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.counter-sign h2 { max-width: 390px; margin-inline: auto; }
.store-qr-frame { width: min(100%, 260px); margin-block: 26px 20px; }
.scan-label, .counter-sign small { display: block; }
.counter-sign small { margin-top: 6px; color: var(--muted); }
.print-button {
    position: fixed;
    right: 24px;
    bottom: 104px;
    background: white;
    box-shadow: 0 12px 30px rgba(7, 42, 72, .12);
}

.mobile-state-page, .simple-page {
    min-height: 650px;
    padding-block: clamp(56px, 9vw, 110px);
    display: grid;
    place-items: center;
}
.mobile-state, .simple-panel { width: min(100%, 560px); padding: clamp(34px, 6vw, 58px); text-align: center; }
.state-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 800;
}
.success-icon { color: #087251; background: #dff8ef; box-shadow: 0 0 0 12px rgba(21, 128, 93, .07); }
.info-icon { color: #0874bd; background: #e3f5ff; box-shadow: 0 0 0 12px rgba(8, 124, 232, .07); }
.mobile-state h1, .simple-panel h1 { margin-inline: auto; font-size: clamp(2.3rem, 7vw, 3.5rem); }
.member-chip {
    margin: 28px 0;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    color: white;
    background: linear-gradient(135deg, var(--navy-900), #0875c3);
    border-radius: 18px;
    text-align: left;
}
.member-chip span, .member-chip small { color: #bee4fa; }
.member-chip small { text-align: right; }
.muted-copy, .request-id { display: block; color: #8797a6; font-size: .78rem; }
.diagnostic-list { margin: 28px 0 0; display: grid; gap: 12px; text-align: left; }
.diagnostic-list div { padding: 14px; background: #f4f9fc; border-radius: 12px; }
.diagnostic-list dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.diagnostic-list dd { margin: 5px 0 0; overflow-wrap: anywhere; }

[hidden] { display: none !important; }
.enter-view { animation: enterView 560ms cubic-bezier(.2, .8, .2, 1) both; }

@keyframes enterView { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit { 0% { opacity: .8; transform: scale(.86); } 70%, 100% { opacity: 0; transform: scale(1.2); } }
@keyframes statusPulse { 70% { box-shadow: 0 0 0 8px rgba(21, 128, 93, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 128, 93, 0); } }
@keyframes cardShine { 0%, 48% { left: -360px; } 78%, 100% { left: 680px; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -18px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -14px) scale(.98); } }

@media (max-width: 860px) {
    .portal-page, .store-qr-page, .account-grid { grid-template-columns: 1fr; }
    .portal-page { padding-block: 54px 70px; }
    .portal-copy, .store-qr-copy { text-align: center; }
    .portal-copy h1, .portal-copy .lead, .flow-list, .store-qr-copy h1, .store-qr-copy p, .scan-benefits { margin-inline: auto; }
    .flow-list { text-align: left; }
    .login-card, .counter-sign { width: min(100%, 500px); margin-inline: auto; }
    .account-heading { align-items: flex-start; }
    .scan-benefits { justify-content: center; }
}

@media (max-width: 620px) {
    .shell { width: min(100% - 24px, var(--shell)); }
    .header-inner { min-height: 68px; }
    .brand img { width: 108px; height: 40px; }
    .demo-badge { display: none; }
    .header-nav { gap: 13px; }
    .nav-store-qr { display: none; }
    .header-nav a { font-size: .76rem; }
    .header-nav .product-link { padding: 8px 10px; }
    h1 { letter-spacing: -.045em; }
    .portal-page { gap: 38px; }
    .login-card { min-height: 480px; padding: 28px 22px; border-radius: 24px; }
    .account-heading { display: grid; }
    .account-heading .button { min-height: 42px; }
    .account-summary, .profile-panel { padding: 26px 22px; border-radius: 24px; }
    .points-total { margin-block: 42px 34px; }
    .member-facts { grid-template-columns: 1fr 1fr; }
    .member-facts div:last-child { grid-column: 1 / -1; }
    .wallet-page { padding-block: 10px 48px; }
    .wallet-heading { margin-bottom: 10px; padding-inline: 8px; }
    .wallet-heading p { font-size: .72rem; line-height: 1.3; }
    .loyalty-card { min-height: 0; padding: 18px; border-radius: 24px; }
    .loyalty-card-top img { width: 105px; height: 39px; }
    .loyalty-member { margin-top: 24px; }
    .loyalty-member strong { font-size: 1.7rem; }
    .loyalty-balance { margin-block: 18px; gap: 8px; }
    .loyalty-balance div { padding: 11px; border-radius: 14px; }
    .loyalty-balance strong { font-size: 1.35rem; }
    .loyalty-balance span { font-size: .68rem; }
    .barcode-panel { padding: 12px 10px 9px; border-radius: 17px; }
    .barcode-panel img { height: 112px; }
    .loyalty-card-footer { margin-top: 14px; font-size: .58rem; }
    .wallet-actions { align-items: stretch; flex-direction: column; }
    .wallet-actions .button { width: 100%; }
    .footer-inner { padding-block: 22px; align-items: flex-start; flex-direction: column; gap: 16px; }
    .footer-meta { width: 100%; justify-content: space-between; }
    .print-button { right: 14px; bottom: 16px; }
    .member-chip { grid-template-columns: 1fr; text-align: center; }
    .member-chip small { text-align: center; }
    .desktop-only { display: none !important; }
    .mobile-only { display: inline; }
    .login-qr-action { pointer-events: auto; }
    .tap-qr-badge {
        padding: 8px 12px;
        position: absolute;
        right: 12px;
        bottom: 12px;
        display: block;
        color: white;
        background: rgba(6, 29, 54, .92);
        border-radius: 999px;
        font-size: .68rem;
        font-weight: 750;
        box-shadow: 0 8px 18px rgba(3, 20, 38, .22);
    }
    .danger-zone { flex-direction: column; }
    .danger-button { padding-left: 0; text-align: left; white-space: normal; }
}

@media (max-width: 420px) {
    .product-link-label { display: none; }
    .header-nav .product-link { min-width: 38px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
    .site-header, .site-footer, .store-qr-copy, .print-button { display: none !important; }
    body, .site-main { min-height: 0; background: white; }
    .store-qr-page { width: 100%; padding: 0; display: block; }
    .counter-sign { width: 150mm; margin: 14mm auto; box-shadow: none; border: 1px solid #cad6df; }
}
