.loy-portal {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    font-weight: 400;
}

.loy-portal *,
.loy-portal *::before,
.loy-portal *::after {
    box-sizing: border-box;
}

.loy-portal h1,
.loy-portal h2,
.loy-portal h3,
.loy-portal th,
.loy-portal strong,
.loy-portal b,
.loy-portal button,
.loy-celeb-dialog *,
.loy-earn-preview *,
.loy-order-badge,
.loy-menu-badge {
    font-weight: 400;
}

.loy-hero-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.52fr);
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
    border-radius: 8px;
    border: 1px solid #fed7aa;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f8fafc 100%);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    min-width: 0;
}

.loy-hero-card--diamond {
    border-color: #a5f3fc;
    background: linear-gradient(135deg, #ecfeff 0%, #ffffff 55%, #f8fafc 100%);
}

.loy-hero-card--gold {
    border-color: #fde047;
    background: linear-gradient(135deg, #fefce8 0%, #ffffff 58%, #f8fafc 100%);
}

.loy-hero-card__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.loy-hero-card__progress {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.loy-hero-card__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.loy-tier-badge-inline {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
}

.loy-manual-tag {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 400;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.loy-hero-card__points-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.loy-hero-card__crown {
    display: inline-flex;
    align-items: center;
    align-self: center;
    color: #f59e0b;
    flex-shrink: 0;
}

.loy-crown-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

.loy-inline-pts {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.loy-hero-card__points {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 400;
    color: #0f172a;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.loy-hero-card__unit {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
}

.loy-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 13px;
    color: #334155;
}

.loy-progress-target,
.loy-progress-val {
    color: #0f172a;
}

.loy-progress-track {
    height: 7px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.loy-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5000 0%, #f97316 100%);
    border-radius: 4px;
    transition: width 0.35s ease;
}

.loy-progress-sub {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
    color: #64748b;
}

.loy-progress-sub-val {
    color: #334155;
    font-variant-numeric: tabular-nums;
}

.loy-maintenance-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

.loy-maintenance-banner.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.loy-maintenance-banner.is-warn {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.loy-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
}

.loy-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.loy-section__head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: #0f172a;
}

.loy-rate-pill {
    font-size: 12px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 4px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.loy-matrix-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.loy-matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 760px;
    font-size: 13px;
}

.loy-matrix-metric-head,
.loy-matrix-metric-label {
    width: 190px;
    text-align: left;
    vertical-align: middle;
    padding: 12px 14px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    left: 0;
    z-index: 2;
}

.loy-matrix-metric-head {
    background: #f8fafc;
}

.loy-matrix-metric-title {
    font-size: 13px;
    font-weight: 400;
    color: #475569;
}

.loy-matrix-metric-label {
    background: #ffffff;
    font-size: 12.5px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
}

.loy-matrix-table tbody tr:hover .loy-matrix-metric-label,
.loy-matrix-table tbody tr:hover .loy-matrix-cell:not(.is-current) {
    background: #f8fafc;
}

.loy-matrix-tier-head {
    padding: 13px 10px 11px;
    text-align: center;
    vertical-align: top;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.loy-matrix-tier-head:last-child,
.loy-matrix-cell:last-child {
    border-right: 0;
}

.loy-matrix-tier-head.is-current {
    background: #fff7ed;
    box-shadow: inset 0 2px 0 #ff5000, inset 1px 0 0 #fdba74, inset -1px 0 0 #fdba74;
}

.loy-matrix-head-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.loy-tier-crest {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #475569;
}

.loy-tier-crest--bronze { background: #fef3c7; color: #92400e; }
.loy-tier-crest--silver { background: #e2e8f0; color: #1e293b; }
.loy-tier-crest--gold { background: #fef08a; color: #854d0e; }
.loy-tier-crest--diamond { background: #cffafe; color: #0e7490; }

.loy-matrix-tier-name {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 400;
    color: #0f172a;
}

.loy-matrix-tier-pts {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
    white-space: nowrap;
}

.loy-tier-pill {
    display: inline-block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loy-tier-pill.is-current {
    background: #ff5000;
    color: #ffffff;
}

.loy-tier-pill.is-unlocked {
    background: #dcfce7;
    color: #166534;
}

.loy-matrix-cell {
    padding: 11px 10px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    color: #0f172a;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    background: #ffffff;
    white-space: nowrap;
}

.loy-matrix-cell.is-muted {
    color: #64748b;
}

.loy-matrix-cell.is-current {
    background: #fffcf8;
    color: #c2410c;
    box-shadow: inset 1px 0 0 #fed7aa, inset -1px 0 0 #fed7aa;
}

.loy-matrix-cell.is-current.is-muted {
    color: #475569;
}

.loy-matrix-table tbody tr:last-child th,
.loy-matrix-table tbody tr:last-child td {
    border-bottom: 1px solid transparent;
}

.loy-matrix-table tbody tr:last-child td.is-current {
    box-shadow: inset 1px 0 0 #fed7aa, inset -1px 0 0 #fed7aa, inset 0 -2px 0 #fdba74;
}

.loy-matrix-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
}

.loy-matrix-dash {
    color: #cbd5e1;
    font-weight: 400;
}

.loy-timeline {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.loy-filter-tabs {
    display: flex;
    gap: 6px;
}

.loy-filter-tab {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 400;
    color: #475569;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    text-decoration: none;
}

.loy-filter-tab.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.loy-table-wrap {
    overflow-x: auto;
}

.loy-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.loy-history-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.loy-history-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.loy-history-table .text-right {
    text-align: right;
}

.loy-td-time {
    white-space: nowrap;
    color: #64748b;
    font-size: 12px;
}

.loy-row-desc {
    font-weight: 400;
    color: #0f172a;
}

.loy-row-meta {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

.loy-delta {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.loy-delta.is-plus { background: #dcfce7; color: #166534; }
.loy-delta.is-minus { background: #fee2e2; color: #b91c1c; }

.loy-td-balance {
    font-weight: 400;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.loy-empty-state {
    padding: 24px 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.loy-loadmore-wrap {
    margin-top: 14px;
    text-align: center;
}

.loy-btn-outline {
    padding: 7px 16px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 13px;
    font-weight: 400;
    color: #0f172a;
    cursor: pointer;
}

.loy-btn-outline:hover {
    border-color: #ff5000;
    color: #ff5000;
}

.loy-rules-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

/* Celebration Modal */
.loy-celeb-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    overscroll-behavior: contain;
}

.loy-celeb-backdrop.is-open {
    display: flex;
    animation: loyBackdropFade 0.25s ease-out both;
}

.loy-celeb-confetti {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.loy-confetti-piece,
.loy-petal-piece {
    position: absolute;
    top: -36px;
    left: var(--x, 50%);
    pointer-events: none;
    will-change: transform, opacity;
    opacity: 0;
}

.loy-confetti-piece {
    animation: loyConfettiFall var(--dur, 4.2s) cubic-bezier(0.22, 0.61, 0.36, 1) var(--delay, 0s) forwards;
}

.loy-petal-piece {
    animation: loyPetalFall var(--dur, 5.2s) ease-in-out var(--delay, 0s) forwards;
}

.loy-firework-spark {
    position: absolute;
    left: var(--ox, 50%);
    top: var(--oy, 30%);
    pointer-events: none;
    will-change: transform, opacity;
    opacity: 0;
    animation: loyFireworkBurst var(--dur, 1.5s) cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0.08s) forwards;
}

.loy-celeb-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 396px;
    background: radial-gradient(circle at 50% 0%, #fffbeb 0%, #ffffff 58%);
    border-radius: 12px;
    padding: 32px 26px 24px;
    text-align: center;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.26), 0 0 0 1px rgba(251, 191, 36, 0.35);
    border: 1px solid #fde68a;
    font-weight: 400;
    overflow: hidden;
    animation: loyCelebDialogPop 0.42s cubic-bezier(0.22, 1.28, 0.36, 1) both;
}

.loy-celeb-dialog--diamond {
    background: radial-gradient(circle at 50% 0%, #ecfeff 0%, #ffffff 58%);
    border-color: #a5f3fc;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.26), 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.loy-celeb-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: transparent;
    border: 0;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.loy-celeb-close:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.loy-celeb-stage {
    position: relative;
    width: 112px;
    height: 92px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loy-celeb-halo {
    position: absolute;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(251, 191, 36, 0.28) 0deg 25deg,
        transparent 25deg 60deg,
        rgba(255, 80, 0, 0.18) 60deg 85deg,
        transparent 85deg 120deg,
        rgba(251, 191, 36, 0.28) 120deg 145deg,
        transparent 145deg 180deg,
        rgba(255, 80, 0, 0.18) 180deg 205deg,
        transparent 205deg 240deg,
        rgba(251, 191, 36, 0.28) 240deg 265deg,
        transparent 265deg 300deg,
        rgba(255, 80, 0, 0.18) 300deg 325deg,
        transparent 325deg 360deg
    );
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.9) 20%, transparent 72%);
    animation: loyHaloSpin 14s linear infinite;
}

.loy-celeb-dialog--diamond .loy-celeb-halo {
    background: conic-gradient(
        from 0deg,
        rgba(34, 211, 238, 0.28) 0deg 30deg,
        transparent 30deg 72deg,
        rgba(251, 191, 36, 0.24) 72deg 102deg,
        transparent 102deg 144deg,
        rgba(34, 211, 238, 0.28) 144deg 174deg,
        transparent 174deg 216deg,
        rgba(251, 191, 36, 0.24) 216deg 246deg,
        transparent 246deg 288deg,
        rgba(34, 211, 238, 0.28) 288deg 318deg,
        transparent 318deg 360deg
    );
}

.loy-celeb-ring {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    opacity: 0;
    animation: loyRingPulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.loy-celeb-ring--2 {
    animation-delay: 1.2s;
}

.loy-celeb-sparkle {
    position: absolute;
    color: #f59e0b;
    animation: loyTwinkle 1.9s ease-in-out infinite;
}

.loy-celeb-sparkle--1 {
    top: 4px;
    right: 10px;
    color: #ff5000;
    animation-delay: 0.1s;
}

.loy-celeb-sparkle--2 {
    top: 12px;
    left: 14px;
    color: #fbbf24;
    animation-delay: 0.65s;
}

.loy-celeb-sparkle--3 {
    bottom: 10px;
    right: 6px;
    color: #fb7185;
    animation-delay: 1.05s;
}

.loy-celeb-sparkle--4 {
    bottom: 14px;
    left: 10px;
    color: #38bdf8;
    animation-delay: 0.4s;
}

.loy-celeb-crest {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff7ed 0%, #fde68a 60%, #fbbf24 100%);
    color: #c2410c;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loyCrestPop 0.55s cubic-bezier(0.22, 1.35, 0.36, 1) 0.1s both;
}

.loy-celeb-dialog--silver .loy-celeb-crest {
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 60%, #cbd5e1 100%);
    color: #334155;
    box-shadow: 0 10px 24px rgba(71, 85, 105, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.loy-celeb-dialog--diamond .loy-celeb-crest {
    background: linear-gradient(145deg, #ecfeff 0%, #cffafe 60%, #67e8f9 100%);
    color: #0e7490;
    box-shadow: 0 10px 24px rgba(14, 116, 144, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.loy-celeb-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: #ea580c;
}

.loy-celeb-title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
    color: #0f172a;
}

.loy-celeb-tier-wrap {
    margin-bottom: 22px;
}

.loy-celeb-tier-badge {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 7px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.loy-celeb-dialog--bronze .loy-celeb-tier-badge {
    background: linear-gradient(135deg, #9a3412 0%, #ea580c 100%);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25);
}

.loy-celeb-dialog--gold .loy-celeb-tier-badge {
    background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.25);
}

.loy-celeb-dialog--diamond .loy-celeb-tier-badge {
    background: linear-gradient(135deg, #0f172a 0%, #0e7490 100%);
    box-shadow: 0 6px 16px rgba(14, 116, 144, 0.25);
}

.loy-celeb-tier-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: loyBadgeShimmer 2.8s ease-in-out 0.4s infinite;
}

.loy-celeb-cta {
    width: 100%;
    padding: 11px 16px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff6a00 0%, #ff5000 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(255, 80, 0, 0.26);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.loy-celeb-cta:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

@keyframes loyBackdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes loyCelebDialogPop {
    0% {
        opacity: 0;
        transform: scale(0.86) translateY(16px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes loyCrestPop {
    0% {
        opacity: 0;
        transform: scale(0.55) rotate(-10deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.08) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes loyHaloSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes loyRingPulse {
    0% {
        opacity: 0.75;
        transform: scale(0.9);
    }
    100% {
        opacity: 0;
        transform: scale(1.75);
    }
}

@keyframes loyTwinkle {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.75) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(18deg);
    }
}

@keyframes loyBadgeShimmer {
    0%, 55% { left: -120%; }
    100% { left: 160%; }
}

@keyframes loyConfettiFall {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    10% {
        opacity: 1;
    }
    85% {
        opacity: 0.95;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift, 40px), 108dvh, 0) rotateX(var(--rx, 540deg)) rotateY(var(--ry, 360deg)) rotateZ(var(--rz, 240deg));
    }
}

@keyframes loyPetalFall {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.85);
    }
    12% {
        opacity: 0.95;
    }
    50% {
        transform: translate3d(var(--sway, -48px), 52dvh, 0) rotate(160deg) scale(1);
    }
    88% {
        opacity: 0.9;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift, 55px), 108dvh, 0) rotate(var(--rz, 340deg)) scale(0.9);
    }
}

@keyframes loyFireworkBurst {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(0.4) rotate(0deg);
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--tx, 120px), var(--ty, -120px), 0) scale(1.1) rotate(var(--rot, 280deg));
    }
}

@media (prefers-reduced-motion: reduce) {
    .loy-celeb-backdrop.is-open,
    .loy-celeb-dialog,
    .loy-celeb-halo,
    .loy-celeb-ring,
    .loy-celeb-sparkle,
    .loy-celeb-crest,
    .loy-celeb-tier-badge::after {
        animation: none !important;
    }
    .loy-celeb-confetti {
        display: none;
    }
}

@media (max-width: 1279px) {
    .loy-matrix-metric-head,
    .loy-matrix-metric-label {
        width: 155px;
        padding: 11px 12px;
    }
    .loy-matrix-tier-head {
        padding: 12px 6px;
    }
    .loy-tier-pill {
        font-size: 10px;
        padding: 2px 5px;
    }
}

@media (max-width: 1119px) {
    .loy-hero-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 20px;
    }
}

@media (max-width: 639px) {
    .loy-section {
        padding: 14px;
    }
    .loy-hero-card {
        padding: 16px;
    }
    .loy-hero-card__points {
        font-size: 28px;
    }
    .loy-filter-tabs {
        flex-wrap: wrap;
    }
    .loy-matrix-wrap {
        display: none;
    }
    .loy-timeline {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .loy-timeline-item {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        align-items: stretch;
        position: relative;
    }
    .loy-timeline-rail {
        position: relative;
        display: flex;
        justify-content: center;
        padding-top: 12px;
    }
    .loy-timeline-item:not(:last-child) .loy-timeline-rail::after {
        content: "";
        position: absolute;
        top: 46px;
        bottom: -16px;
        left: 50%;
        width: 2px;
        transform: translateX(-50%);
        background: #e2e8f0;
        border-radius: 2px;
    }
    .loy-timeline-item.is-unlocked:not(:last-child) .loy-timeline-rail::after {
        background: #86efac;
    }
    .loy-timeline-item.is-current:not(:last-child) .loy-timeline-rail::after {
        background: linear-gradient(180deg, #fdba74 0%, #e2e8f0 100%);
    }
    .loy-timeline-node {
        position: relative;
        z-index: 1;
        width: 30px;
        height: 30px;
        border-radius: 50%;
    }
    .loy-timeline-node.is-current {
        box-shadow: 0 0 0 2px #ff5000, 0 0 0 5px #fff7ed;
    }
    .loy-timeline-node.is-unlocked {
        box-shadow: 0 0 0 2px #86efac;
    }
    .loy-timeline-card {
        min-width: 0;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 12px;
        background: #ffffff;
    }
    .loy-timeline-card.is-current {
        border-color: #ff5000;
        background: #fffcf8;
        box-shadow: 0 2px 8px rgba(255, 80, 0, 0.08);
    }
    .loy-timeline-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }
    .loy-timeline-title-wrap {
        min-width: 0;
    }
    .loy-timeline-name {
        font-size: 14px;
        line-height: 1.3;
        font-weight: 400;
        color: #0f172a;
    }
    .loy-timeline-pts {
        font-size: 12px;
        line-height: 1.35;
        font-weight: 400;
        color: #64748b;
        margin-top: 2px;
        font-variant-numeric: tabular-nums;
    }
    .loy-timeline-head .loy-tier-pill {
        margin-top: 0;
        font-size: 11px;
        padding: 2px 8px;
        flex-shrink: 0;
    }
    .loy-timeline-perks {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
        margin: 10px 0 0;
        padding: 10px 0 0;
        border-top: 1px solid #f1f5f9;
    }
    .loy-timeline-card.is-current .loy-timeline-perks {
        border-top-color: #fed7aa;
    }
    .loy-timeline-perk {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .loy-timeline-perk__lbl {
        margin: 0;
        font-size: 11.5px;
        line-height: 1.3;
        font-weight: 400;
        color: #64748b;
    }
    .loy-timeline-perk__val {
        margin: 0;
        font-size: 12.5px;
        line-height: 1.35;
        font-weight: 400;
        color: #0f172a;
        font-variant-numeric: tabular-nums;
        overflow-wrap: anywhere;
    }
    .loy-timeline-perk.is-muted .loy-timeline-perk__val {
        color: #64748b;
    }
    .loy-timeline-card.is-current .loy-timeline-perk:not(.is-muted) .loy-timeline-perk__val {
        color: #c2410c;
    }
    .loy-timeline-perk .loy-matrix-check {
        width: 18px;
        height: 18px;
    }
    .loy-timeline-perk .loy-matrix-check svg {
        width: 12px;
        height: 12px;
    }
    .loy-row-meta {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 359px) {
    .loy-timeline-item {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 8px;
    }
    .loy-timeline-node {
        width: 26px;
        height: 26px;
    }
    .loy-timeline-item:not(:last-child) .loy-timeline-rail::after {
        top: 42px;
    }
    .loy-timeline-perks {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .loy-timeline-perk {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .loy-timeline-perk__val {
        text-align: right;
    }
}

/* Storefront Global Loyalty Touchpoints (Account dropdown VIP card, badge, Shell badge, Earn preview, Order badges) */
.loy-user-info-card,
.loy-user-info-card * {
    box-sizing: border-box;
    font-weight: 400;
}
.loy-user-info-card {
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.loy-user-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}
.loy-user-info-name {
    font-size: 14px;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.loy-user-vip-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}
.loy-user-progress-wrap {
    display: block;
    text-decoration: none;
}
.loy-user-progress-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
}
.loy-user-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5000 0%, #f97316 100%);
    border-radius: 999px;
}
.loy-user-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}
.loy-menu-badge {
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 400;
    background: #fff7ed;
    color: #c2410c;
}
.loy-nav-badge {
    background: #fff7ed !important;
    color: #c2410c !important;
    border: 1px solid #fed7aa;
    box-shadow: none;
    height: 18px;
    min-width: 20px;
    padding: 0 6px;
    font-weight: 500;
}
.loy-earn-preview {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid #fed7aa;
    background: #fffaf5;
    font-weight: 400;
}
.loy-earn-preview__row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #334155;
}
.loy-earn-preview__icon {
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.loy-earn-preview__pts {
    color: #c2410c;
    font-weight: 400;
}
.loy-earn-preview__tier {
    margin-left: auto;
    font-size: 11px;
    font-weight: 400;
    padding: 2px 7px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    color: #9a3412;
}
.loy-earn-preview__sub {
    margin-top: 4px;
    padding-left: 23px;
    font-size: 11.5px;
    color: #64748b;
}
.loy-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 400;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.loy-order-badge.is-earned {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}
.cart-vip-cny-bar {
    display: block;
}
.cart-vip-cny-bar .cart-cny-inline {
    display: none;
}
@media (max-width: 820px) {
    .buyer-cart-page .cart-vip-cny-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0 12px 5px;
        min-width: 0;
    }
    .buyer-cart-page .cart-vip-cny-bar .loy-earn-preview--cart {
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        min-width: 0;
        flex: 1 1 auto;
    }
    .buyer-cart-page .cart-vip-cny-bar .loy-earn-preview--cart .loy-earn-preview__row {
        gap: 5px;
        font-size: 11.5px;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .buyer-cart-page .cart-vip-cny-bar .loy-earn-preview--cart .loy-earn-preview__icon svg {
        width: 13px;
        height: 13px;
    }
    .buyer-cart-page .cart-vip-cny-bar .loy-earn-preview--cart .loy-earn-preview__tier {
        margin-left: 4px;
        padding: 1px 5px;
        font-size: 10.5px;
        border-color: #e2e8f0;
        background: #f8fafc;
        color: #64748b;
        flex-shrink: 0;
    }
    .buyer-cart-page .cart-vip-cny-bar .loy-earn-preview--cart .loy-earn-preview__sub {
        display: none;
    }
    .buyer-cart-page .cart-vip-cny-bar .cart-cny-inline {
        display: inline-block;
        flex-shrink: 0;
        font-size: 11.5px;
        color: #64748b;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
}

/* Shared Inline Price VIP Points Badge (clean crown icon + text without pill border/fill) */
.price-vip-pill {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 5px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: #92400e;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
    max-width: 100%;
}

.price-comp .price-vip-pill,
.price-banner-main .price-vip-pill {
    align-self: center;
    transform: translateY(-1px);
}

.price-vip-pill svg {
    color: #f59e0b;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .price-vip-pill {
        font-size: 12px;
        padding: 0;
        gap: 4px;
    }
}
