/* Hotel Subansiri Loyalty — public & member portal */
:root {
    --loyalty-gold: #d4af37;
    --loyalty-gold-light: #f5e6b8;
    --loyalty-gold-dark: #9a7b1a;
    --loyalty-dark: #0f172b;
    --loyalty-dark-soft: #1a2744;
    --loyalty-text: #1e293b;
    --loyalty-text-muted: #334155;
    --loyalty-text-soft: #475569;
    --loyalty-accent: #2980b9;
    --loyalty-success: #1e8449;
    --loyalty-radius: 16px;
    --loyalty-shadow: 0 12px 40px rgba(15, 23, 43, 0.12);
}

/* Scope: prevent hotel template from washing out text */
.loyalty-page,
.loyalty-page p,
.loyalty-page li,
.loyalty-page span,
.loyalty-page .loyalty-text-body {
    color: var(--loyalty-text-soft) !important;
}
.loyalty-page h1, .loyalty-page h2, .loyalty-page h3,
.loyalty-page h4, .loyalty-page h5, .loyalty-page h6,
.loyalty-page .loyalty-text-dark {
    color: var(--loyalty-text) !important;
}
.loyalty-page strong { color: var(--loyalty-dark) !important; }

.loyalty-page {
    background: linear-gradient(180deg, #f8f9fc 0%, #eef1f7 100%);
    min-height: 60vh;
}

.loyalty-hero {
    background: linear-gradient(135deg, var(--loyalty-dark) 0%, #1e3a5f 50%, var(--loyalty-dark-soft) 100%);
    color: #fff !important;
    padding: 3.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.loyalty-hero * { color: inherit; }
.loyalty-hero h1, .loyalty-hero h5 { color: #fff !important; }
.loyalty-hero .lead {
    color: rgba(255,255,255,0.92) !important;
    opacity: 1;
    max-width: 640px;
}
.loyalty-hero .container.text-center .lead {
    margin-left: auto;
    margin-right: auto;
}
.loyalty-hero-note { color: rgba(255,255,255,0.8) !important; }
.loyalty-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.18) 0%, transparent 55%);
    pointer-events: none;
}
.loyalty-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--loyalty-gold), transparent);
}
.loyalty-hero .badge-gold {
    background: rgba(212, 175, 55, 0.25);
    color: #f5e6b8 !important;
    border: 1px solid rgba(212, 175, 55, 0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.4rem 1rem;
    border-radius: 99px;
}
.loyalty-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }
.loyalty-hero-gift-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: var(--loyalty-radius);
    padding: 1.75rem;
    backdrop-filter: blur(4px);
}
.loyalty-hero-gift-card p { color: rgba(255,255,255,0.85) !important; }

/* Stats strip */
.loyalty-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}
.loyalty-stat-pill {
    background: #fff;
    border-radius: 12px;
    padding: 1.1rem 1rem;
    text-align: center;
    box-shadow: var(--loyalty-shadow);
    border-bottom: 3px solid var(--loyalty-gold);
}
.loyalty-stat-pill .num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--loyalty-dark) !important;
    line-height: 1.2;
}
.loyalty-stat-pill .lbl {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--loyalty-text-muted) !important;
    margin-top: 0.25rem;
}

.loyalty-card {
    border: none;
    border-radius: var(--loyalty-radius);
    box-shadow: var(--loyalty-shadow);
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.loyalty-card:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(15, 23, 43, 0.14); }
.loyalty-card-header {
    background: linear-gradient(90deg, var(--loyalty-dark) 0%, var(--loyalty-dark-soft) 100%);
    color: #fff !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
}
.loyalty-page .loyalty-card-header,
.loyalty-page .loyalty-card-header * {
    color: #fff !important;
}
.loyalty-page .loyalty-card-header i {
    color: var(--loyalty-gold) !important;
}
.loyalty-card-header i { color: var(--loyalty-gold); margin-right: 0.5rem; }

.loyalty-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--loyalty-dark) !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--loyalty-gold);
    display: inline-block;
}
.loyalty-section-sub {
    color: var(--loyalty-text-muted) !important;
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.loyalty-module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.loyalty-module-item {
    background: #fff;
    border-radius: var(--loyalty-radius);
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 6px 24px rgba(15,23,43,0.08);
    border: 1px solid #e8ecf2;
    border-top: 4px solid var(--loyalty-gold);
    transition: transform 0.25s, box-shadow 0.25s;
}
.loyalty-module-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15,23,43,0.12);
}
.loyalty-module-item h5 {
    color: var(--loyalty-dark) !important;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.loyalty-module-item p {
    color: var(--loyalty-text-soft) !important;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
}
.loyalty-module-item .icon-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--loyalty-gold-light), #fff);
    color: var(--loyalty-gold-dark) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(212,175,55,0.25);
}

/* Expiry banner — dark readable text */
.loyalty-expiry-banner {
    background: linear-gradient(135deg, #fff9eb 0%, #fff 100%);
    border: 2px solid var(--loyalty-gold);
    border-radius: var(--loyalty-radius);
    padding: 1.75rem 2rem;
    box-shadow: 0 6px 24px rgba(212,175,55,0.12);
}
.loyalty-expiry-banner .icon { font-size: 2rem; color: var(--loyalty-gold-dark) !important; }
.loyalty-expiry-banner h5 {
    color: #7c5e0a !important;
    font-weight: 700;
}
.loyalty-expiry-banner strong { color: var(--loyalty-dark) !important; }
.loyalty-expiry-banner p,
.loyalty-expiry-banner em {
    color: var(--loyalty-text-soft) !important;
    font-size: 0.92rem;
    line-height: 1.6;
}
.loyalty-expiry-col {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    border: 1px solid #f0e6c8;
    height: 100%;
}

/* Rules accordion */
.loyalty-rules-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.loyalty-rules-accordion .accordion-button {
    font-weight: 600;
    color: var(--loyalty-dark) !important;
    background: #fff;
    padding: 1.1rem 1.35rem;
    box-shadow: none !important;
}
.loyalty-rules-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, #fff9eb, #fff);
    color: var(--loyalty-dark) !important;
    border-bottom: 1px solid #f0e6c8;
}
.loyalty-rules-accordion .accordion-button::after { filter: brightness(0.3); }
.loyalty-rules-accordion .accordion-body {
    background: #fafbfc;
    padding: 1.25rem 1.5rem 1.5rem;
}
.loyalty-rules-accordion .accordion-body ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}
.loyalty-rules-accordion .accordion-body li {
    color: var(--loyalty-text-soft) !important;
    line-height: 1.7;
    margin-bottom: 0.55rem;
    font-size: 0.95rem;
}
.loyalty-rules-accordion .rule-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--loyalty-gold);
    color: var(--loyalty-dark) !important;
    font-size: 0.8rem;
    font-weight: 800;
    margin-right: 0.65rem;
    flex-shrink: 0;
}

/* Journey steps */
.loyalty-journey {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0;
    margin-bottom: 3rem;
}
.loyalty-journey-step {
    flex: 1 1 160px;
    max-width: 200px;
    text-align: center;
    position: relative;
    padding: 0 0.5rem;
}
.loyalty-journey-step .step-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--loyalty-dark);
    color: var(--loyalty-gold) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.loyalty-journey-step .step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--loyalty-dark) !important;
}

.loyalty-cta-block {
    background: linear-gradient(135deg, var(--loyalty-dark) 0%, #1e3a5f 100%);
    border-radius: var(--loyalty-radius);
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.loyalty-cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.2), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.loyalty-cta-block h4 { color: #fff !important; position: relative; z-index: 1; }
.loyalty-cta-block p { color: rgba(255,255,255,0.85) !important; position: relative; z-index: 1; }
.loyalty-cta-block .loyalty-cta-actions {
    position: relative;
    z-index: 2;
}
.loyalty-cta-block a.btn {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    display: inline-block;
    text-decoration: none;
}

.loyalty-btn-gold {
    background: linear-gradient(135deg, var(--loyalty-gold) 0%, #b8962e 100%);
    border: none;
    color: var(--loyalty-dark) !important;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(212,175,55,0.35);
}
.loyalty-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.45);
    color: var(--loyalty-dark) !important;
}
.loyalty-btn-outline-gold {
    border: 2px solid var(--loyalty-gold);
    color: var(--loyalty-gold) !important;
    font-weight: 600;
    background: transparent;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
}
.loyalty-btn-outline-gold:hover {
    background: var(--loyalty-gold);
    color: var(--loyalty-dark) !important;
}
.loyalty-cta-block .loyalty-btn-outline-gold {
    border-color: rgba(255,255,255,0.6);
    color: #fff !important;
}
.loyalty-cta-block .loyalty-btn-outline-gold:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff !important;
}

.loyalty-auth-wrap { max-width: 440px; margin: 0 auto; }
.loyalty-auth-card { border-radius: var(--loyalty-radius); box-shadow: var(--loyalty-shadow); border: none; }

.loyalty-tier-card {
    background: linear-gradient(135deg, var(--loyalty-dark) 0%, #2c5282 100%);
    color: #fff !important;
    border-radius: var(--loyalty-radius);
    padding: 1.75rem;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}
.loyalty-tier-card h4,
.loyalty-tier-card p,
.loyalty-tier-card strong {
    color: #fff !important;
    position: relative;
    z-index: 1;
}
.loyalty-tier-card p {
    color: rgba(255, 255, 255, 0.88) !important;
}
.loyalty-tier-card h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}
.loyalty-tier-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
}
.loyalty-tier-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    background: rgba(255,255,255,0.2);
    color: var(--loyalty-dark) !important;
    position: relative;
    z-index: 1;
}

.loyalty-scratch-stack .loyalty-scratch-item:last-child {
    margin-bottom: 0 !important;
}
.loyalty-scratch-stack .loyalty-scratch-card {
    height: 220px;
}
.loyalty-scratch-revealed {
    background: #f0f7ff;
    border: 1px solid #dbeafe;
}

/* Clickable redeem code → QR popup */
.loyalty-redeem-code-btn {
    display: block;
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
    border: 2px solid rgba(212, 175, 55, 0.75);
    border-radius: 10px;
    background: linear-gradient(135deg, #0f172b 0%, #1e3a5f 100%);
    color: #fff !important;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.loyalty-page .loyalty-redeem-code-btn,
.loyalty-page .loyalty-redeem-code-btn * {
    color: #fff !important;
}
.loyalty-redeem-code-btn:hover,
.loyalty-redeem-code-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 23, 43, 0.25);
    border-color: var(--loyalty-gold);
    outline: none;
}
.loyalty-redeem-code-value {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.loyalty-redeem-code-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #f5e6b8 !important;
}

.loyalty-wallet-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--loyalty-text-muted) !important;
}
.loyalty-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--loyalty-dark) !important;
}
.loyalty-wallet-meta,
.loyalty-wallet-footnote {
    font-size: 0.78rem;
    color: var(--loyalty-text-muted) !important;
    font-weight: 500;
}
.loyalty-wallet-redeem-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eef1f7;
}
.loyalty-wallet-redeem-row:last-child { border-bottom: none; }
.loyalty-wallet-redeem-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--loyalty-dark) !important;
}
.loyalty-wallet-code-item {
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e2e8f0;
}
.loyalty-wallet-code-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.loyalty-wallet-code-item .loyalty-redeem-code-btn {
    margin-top: 0.35rem;
}

.loyalty-qr-modal-dialog { max-width: 360px; }
.loyalty-qr-modal-content { border-radius: 16px; overflow: hidden; }
.loyalty-qr-modal-header {
    background: linear-gradient(90deg, var(--loyalty-dark) 0%, var(--loyalty-dark-soft) 100%);
    padding: 1rem 1.25rem;
}
.loyalty-qr-canvas-wrap {
    box-sizing: border-box;
    width: 244px;
    height: 244px;
    padding: 12px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #e8ecf2;
    box-shadow: 0 4px 16px rgba(15, 23, 43, 0.08);
    overflow: hidden;
}
.loyalty-qr-canvas-wrap img,
.loyalty-qr-canvas-wrap canvas {
    display: block;
    width: 220px !important;
    height: 220px !important;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}
.loyalty-qr-canvas-wrap table {
    margin: 0 auto;
    border-collapse: collapse;
}
.loyalty-redeem-code-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--loyalty-dark) !important;
    padding: 0.5rem 1rem;
    background: #f8f9fc;
    border-radius: 8px;
    display: inline-block;
}

/* GPay-style scratch card */
.loyalty-scratch-card {
    position: relative;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 12px 32px rgba(15, 23, 43, 0.22),
        0 0 24px rgba(212, 175, 55, 0.15);
    background: linear-gradient(145deg, #1a2744 0%, #2c5282 45%, #1e3a5f 100%);
    touch-action: none;
    user-select: none;
    animation: loyaltyScratchPulse 3s ease-in-out infinite;
}
@keyframes loyaltyScratchPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 12px 32px rgba(15,23,43,0.22), 0 0 20px rgba(212,175,55,0.12); }
    50% { box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 14px 36px rgba(15,23,43,0.26), 0 0 32px rgba(212,175,55,0.28); }
}
.loyalty-scratch-card.is-revealed {
    animation: none;
    border-color: var(--loyalty-gold);
}
.loyalty-scratch-card.is-success .loyalty-scratch-prize-inner {
    animation: loyaltyGiftPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes loyaltyGiftPop {
    0% { transform: scale(0.85); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.loyalty-scratch-prize {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    text-align: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(41, 128, 185, 0.3) 0%, transparent 50%),
        linear-gradient(145deg, #0f172b 0%, #1e3a5f 50%, #2c5282 100%);
}
.loyalty-scratch-prize-inner {
    position: relative;
    z-index: 2;
}
.loyalty-scratch-gift-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--loyalty-gold) 0%, #b8962e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--loyalty-dark) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    animation: loyaltyGiftBounce 2.2s ease-in-out infinite;
}
@keyframes loyaltyGiftBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.05); }
}
.loyalty-scratch-prize-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(245, 230, 184, 0.9) !important;
    margin-bottom: 0.25rem;
}
.loyalty-scratch-prize-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    color: #fff !important;
    margin-bottom: 0.35rem;
}
.loyalty-scratch-prize-desc {
    color: rgba(255, 255, 255, 0.78) !important;
    line-height: 1.4;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.loyalty-scratch-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.loyalty-scratch-sparkles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    animation: loyaltySparkle 2.5s ease-in-out infinite;
}
.loyalty-scratch-sparkles span:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.loyalty-scratch-sparkles span:nth-child(2) { top: 22%; right: 15%; animation-delay: 0.4s; }
.loyalty-scratch-sparkles span:nth-child(3) { bottom: 28%; left: 12%; animation-delay: 0.8s; }
.loyalty-scratch-sparkles span:nth-child(4) { bottom: 18%; right: 22%; animation-delay: 1.2s; }
.loyalty-scratch-sparkles span:nth-child(5) { top: 45%; left: 8%; animation-delay: 0.6s; }
.loyalty-scratch-sparkles span:nth-child(6) { top: 38%; right: 10%; animation-delay: 1.5s; }
@keyframes loyaltySparkle {
    0%, 100% { opacity: 0.2; transform: scale(0.6); }
    50% { opacity: 1; transform: scale(1.2); }
}

.loyalty-scratch-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: grab;
    border-radius: 14px;
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.loyalty-scratch-canvas:active { cursor: grabbing; }
.loyalty-scratch-canvas.is-revealed {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

.loyalty-scratch-shimmer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: loyaltyScratchShimmer 2.8s ease-in-out infinite;
    border-radius: 14px;
    mix-blend-mode: overlay;
    transition: opacity 0.3s;
}
.loyalty-scratch-shimmer.is-hidden {
    opacity: 0;
}
@keyframes loyaltyScratchShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loyalty-scratch-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    background: rgba(15, 23, 43, 0.72);
    backdrop-filter: blur(4px);
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: none;
    transition: opacity 0.35s, transform 0.35s;
}
.loyalty-scratch-hint.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
}
.loyalty-scratch-hand {
    display: inline-flex;
    animation: loyaltyHandSwipe 1.6s ease-in-out infinite;
    color: var(--loyalty-gold) !important;
}
@keyframes loyaltyHandSwipe {
    0%, 100% { transform: translateX(-8px) rotate(-8deg); }
    50% { transform: translateX(8px) rotate(8deg); }
}

.loyalty-scratch-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 6;
    pointer-events: none;
}
.loyalty-scratch-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--loyalty-gold), #f5e6b8);
    transition: width 0.15s ease-out;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.loyalty-scratch-confetti-host {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99990;
    overflow: hidden;
}
.loyalty-scratch-confetti {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    opacity: 0.95;
    animation: loyaltyConfettiFall 2.4s ease-out forwards;
}
@keyframes loyaltyConfettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.loyalty-page .loyalty-scratch-prize-title,
.loyalty-page .loyalty-scratch-prize-label,
.loyalty-page .loyalty-scratch-prize-desc,
.loyalty-page .loyalty-scratch-hint,
.loyalty-page .loyalty-scratch-hint-text {
    color: inherit;
}
.loyalty-page .loyalty-scratch-prize-title { color: #fff !important; }
.loyalty-page .loyalty-scratch-prize-desc { color: rgba(255,255,255,0.78) !important; }

/* Legacy scratch wrap (fallback) */
.loyalty-scratch-wrap {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5276, #2980b9);
    cursor: pointer;
    color: #fff !important;
}
.loyalty-scratch-wrap strong,
.loyalty-scratch-wrap span,
.loyalty-scratch-wrap p {
    color: #fff !important;
}
.loyalty-scratch-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, #c0c0c0, #c0c0c0 10px, #a8a8a8 10px, #a8a8a8 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #333;
    transition: opacity 0.6s;
    z-index: 2;
}
.loyalty-scratch-overlay.scratched { opacity: 0; pointer-events: none; }

.loyalty-points-display { font-size: 2.5rem; font-weight: 700; color: var(--loyalty-success) !important; line-height: 1; }
.loyalty-expiry-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    background: #fff3cd;
    color: #856404 !important;
    border: 1px solid #ffeeba;
}
.loyalty-page .loyalty-expiry-chip,
.loyalty-page .loyalty-expiry-chip i {
    color: #856404 !important;
}

.loyalty-page code.text-white,
.loyalty-page .bg-dark.text-white {
    color: #fff !important;
}

.loyalty-table thead { background: var(--loyalty-dark); color: #fff; }
.loyalty-table thead th { font-weight: 500; font-size: 0.85rem; border: none; color: #fff !important; }
.loyalty-table tbody td { color: var(--loyalty-text-soft) !important; }

.loyalty-nav-mini { background: rgba(255,255,255,0.08); border-radius: 8px; padding: 0.5rem 1rem; }
.loyalty-nav-mini a { color: var(--loyalty-gold) !important; text-decoration: none; font-size: 0.9rem; margin: 0 0.5rem; }
.loyalty-nav-mini a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .loyalty-hero { padding: 2.5rem 0 3rem; }
    .loyalty-stats-strip { margin-top: -1.5rem; }
    .loyalty-points-display { font-size: 2rem; }
}
