/* =========================================================
   Membership Home — Dark Luxury Theme (Obsidian & Champagne Gold)
   Bespoke luxury black skin with metallic tier accents.
   Activated by .mbr-dark-home wrapper + .mbr-tier-{slug} on it.
   ========================================================= */

/* Tier accent on wrapper */
.mbr-dark-home {
    --mbr-tier: #d4b56a;
    background: transparent;
    min-height: calc(100vh - var(--header-height));
    padding: 16px 16px calc(var(--footer-height) + 40px) 16px !important;
    color: #ece7dc;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.mbr-dark-home::before {
    content: none;
}

.mbr-dark-home > * {
    position: relative;
    z-index: 1;
}

/* Package accent: gold icons and text follow the member tier (header, footer, home). */
body.mbr-tier-silver,
.mbr-dark-home.mbr-tier-silver {
    --mbr-tier: #c9ced6;
    --gold: #c9ced6;
    --accent: #c9ced6;
    --primary: #c9ced6;
    --tier-accent: #c9ced6;
    --accent-soft: rgba(201, 206, 214, 0.16);
}
body.mbr-tier-rose,
.mbr-dark-home.mbr-tier-rose {
    --mbr-tier: #e59aa6;
    --gold: #e59aa6;
    --accent: #e59aa6;
    --primary: #e59aa6;
    --tier-accent: #e59aa6;
    --accent-soft: rgba(229, 154, 166, 0.16);
}
body.mbr-tier-gold,
.mbr-dark-home.mbr-tier-gold {
    --mbr-tier: #d4af37;
    --gold: #d4af37;
    --accent: #d4af37;
    --primary: #d4af37;
    --tier-accent: #d4af37;
    --accent-soft: rgba(212, 175, 55, 0.16);
}
body.mbr-tier-platinum,
.mbr-dark-home.mbr-tier-platinum {
    --mbr-tier: #dfe4eb;
    --gold: #dfe4eb;
    --accent: #dfe4eb;
    --primary: #dfe4eb;
    --tier-accent: #dfe4eb;
    --accent-soft: rgba(223, 228, 235, 0.16);
}
body.mbr-tier-black-diamond,
.mbr-dark-home.mbr-tier-black-diamond {
    --mbr-tier: #e0c27a;
    --gold: #e0c27a;
    --accent: #e0c27a;
    --primary: #e0c27a;
    --tier-accent: #e0c27a;
    --accent-soft: rgba(224, 194, 122, 0.14);
}

/* ---- Top banner / welcome message ---- */
.mbr-dark-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(20, 20, 26, 0.8) 100%);
    border: 1px solid rgba(224, 194, 122, 0.28);
    color: #f7f4ec;
    padding: 12px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}
.mbr-dark-banner-x {
    background: none;
    border: none;
    color: #e5dfd3;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s;
}
.mbr-dark-banner-x:hover {
    opacity: 1;
}

/* ---- Welcome Section & Branch Selector ---- */
.mbr-dark-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
}
.mbr-dark-h1 {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.mbr-dark-sub {
    font-size: 10.5px;
    letter-spacing: 1.6px;
    color: var(--mbr-tier, #d4b56a);
    margin: 5px 0 0;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.88;
}

.mbr-dark-branch-form {
    margin-bottom: 2px;
    flex-shrink: 0;
}

/* High-end dark glass branch dropdown */
.mbr-dark-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: #14141a !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e0c27a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 11px 11px !important;
    border: 1px solid rgba(224, 194, 122, 0.25) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ede8dc !important;
    padding: 8px 30px 8px 12px !important;
    border-radius: 12px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    outline: none !important;
    max-width: 175px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}
.mbr-dark-select:focus {
    border-color: rgba(224, 194, 122, 0.6) !important;
    box-shadow: 0 0 0 2px rgba(224, 194, 122, 0.18), 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}
.mbr-dark-select option {
    background-color: #16161e;
    color: #ede8dc;
    padding: 8px;
}

/* ---- Flip hint ---- */
.mbr-dark-flip-hint {
    margin: -4px 0 22px;
    color: #a39e8f;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    animation: mbrDarkPulse 3.5s infinite;
}
.mbr-dark-flip-hint svg {
    color: var(--mbr-tier, #e0c27a);
    flex-shrink: 0;
}
@keyframes mbrDarkPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ---- 3D Poker Dual-Face Card Flip Cycle (Flip Back -> Flip Front) ---- */
@keyframes mbrPokerFlipBackAndFront {
    0% {
        transform: perspective(1000px) rotateY(0deg) scale(1);
    }
    48% {
        transform: perspective(1000px) rotateY(180deg) scale(0.95);
    }
    52% {
        transform: perspective(1000px) rotateY(180deg) scale(0.95);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg) scale(1);
    }
}

/* ---- Quick grid ---- */
.mbr-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
    perspective: 1400px;
}
.mbr-quick-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 6px 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 36%),
        radial-gradient(90% 70% at 100% 120%, color-mix(in srgb, var(--gold, #e0c27a) 22%, transparent), transparent 68%),
        linear-gradient(165deg, #24222a 0%, #121218 62%, #1a1610 100%);
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 42%, transparent);
    border-radius: 18px;
    text-decoration: none;
    color: #ece7dc;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -14px 18px rgba(0, 0, 0, 0.35),
        0 10px 22px rgba(0, 0, 0, 0.42);
    animation: mbrPokerFlipBackAndFront 0.85s cubic-bezier(0.4, 0.0, 0.2, 1) both;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mbr-quick-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.1) 48%, transparent 58%);
    pointer-events: none;
    z-index: 1;
}

/* Front face content */
.mbr-quick-item > * {
    position: relative;
    z-index: 2;
    transform: translateZ(2px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Poker Card Back face (shows on Flip Back) */
.mbr-quick-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(145deg, #1b1a1f 0%, #0d0d12 100%);
    border: 1px solid rgba(224, 194, 122, 0.45);
    background-image: 
        radial-gradient(rgba(224, 194, 122, 0.28) 1.5px, transparent 1.5px),
        radial-gradient(rgba(224, 194, 122, 0.12) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.8), 0 4px 14px rgba(0, 0, 0, 0.4);
    transform: rotateY(180deg) translateZ(1px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.mbr-quick-item:nth-child(1) { animation-delay: 0.08s; }
.mbr-quick-item:nth-child(2) { animation-delay: 0.16s; }
.mbr-quick-item:nth-child(3) { animation-delay: 0.24s; }
.mbr-quick-item:nth-child(4) { animation-delay: 0.32s; }
.mbr-quick-item:nth-child(5) { animation-delay: 0.40s; }
.mbr-quick-item:nth-child(6) { animation-delay: 0.48s; }
.mbr-quick-item:nth-child(7) { animation-delay: 0.56s; }
.mbr-quick-item:nth-child(8) { animation-delay: 0.64s; }

.mbr-quick-item:hover {
    border-color: rgba(224, 194, 122, 0.45);
    box-shadow: 0 10px 28px rgba(224, 194, 122, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}
.mbr-quick-item:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.mbr-quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mbr-tier, var(--gold));
    background: linear-gradient(135deg, color-mix(in srgb, var(--mbr-tier, var(--gold)) 16%, transparent) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid color-mix(in srgb, var(--mbr-tier, var(--gold)) 32%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: mbrPokerIconFlip 0.55s cubic-bezier(0.2, 0.8, 0.25, 1) both;
    animation-delay: 0.22s;
}
.mbr-quick-icon svg {
    display: block;
}
.mbr-quick-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #e5dfd3;
}

/* ---- Dark unified dashboard card ---- */
.mbr-dark-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 24%),
        radial-gradient(80% 46% at 78% 118%, color-mix(in srgb, var(--gold, #e0c27a) 20%, transparent), transparent 62%),
        linear-gradient(175deg, #1c1b22 0%, #101014 100%);
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 40%, transparent);
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 26px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 18px 40px rgba(0, 0, 0, 0.5);
}
.mbr-dark-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 54px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gold, #e0c27a) 28%, transparent));
    clip-path: polygon(0 72%, 7% 48%, 15% 64%, 24% 28%, 34% 56%, 46% 16%, 56% 48%, 68% 22%, 80% 54%, 90% 30%, 100% 62%, 100% 100%, 0 100%);
    pointer-events: none;
    opacity: 0.7;
}
.mbr-dark-card > * {
    position: relative;
    z-index: 1;
}
.mbr-dark-assets {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 18px;
    margin-bottom: 18px;
}
.mbr-dark-asset {
    flex: 1;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s;
}
.mbr-dark-asset:active {
    transform: scale(0.97);
}
.mbr-dark-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--gold, #e0c27a) 55%, transparent) 50%, transparent 100%);
    margin: 4px 12px;
}
.mbr-dark-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: #9a9585;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
}
.mbr-dark-stat-val {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f7f4ec;
}
.mbr-dark-stat-sub {
    font-size: 11px;
    color: var(--mbr-tier, #e0c27a);
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.2px;
}
.mbr-dark-expiry {
    font-size: 9.5px;
    color: #a89f91;
    font-weight: 600;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 999px;
    display: inline-block;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mbr-dark-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
        linear-gradient(145deg, #221f18 0%, #121014 100%);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 34%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 8px 16px rgba(0, 0, 0, 0.28);
}
.mbr-dark-wallet .wallet-info {
    text-align: left;
}
.mbr-dark-wallet .mbr-dark-stat-val {
    font-size: 22px;
}

.mbr-dark-refill {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--mbr-tier, #d4af37) 58%, #fff) 0%,
        var(--mbr-tier, #d4af37) 52%,
        color-mix(in srgb, var(--mbr-tier, #d4af37) 70%, #000) 100%);
    color: #0b0b0e !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--mbr-tier, #d4af37) 35%, transparent);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    display: inline-block;
}
.mbr-dark-refill:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

/* ---- Section header ---- */
.mbr-dark-section-header {
    margin: 28px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mbr-dark-section-title {
    color: #f7f4ec;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0;
}

/* ---- Carousel ---- */
.mbr-dark-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 4px 2px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.mbr-dark-carousel::-webkit-scrollbar { display: none; }
.mbr-dark-product {
    flex: 0 0 78%;
    max-width: 300px;
    scroll-snap-align: start;
    background: linear-gradient(180deg, #171720 0%, #111116 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.mbr-dark-product-img {
    width: 100%;
    height: 155px;
    background-size: cover;
    background-position: center;
    position: relative;
    filter: contrast(1.02) brightness(0.96);
}
.mbr-dark-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(14, 14, 18, 0.85);
    backdrop-filter: blur(8px);
    color: var(--mbr-tier, #e0c27a);
    border: 1px solid rgba(224, 194, 122, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.mbr-dark-product-info {
    padding: 16px;
}
.mbr-dark-product-title {
    color: #f7f4ec;
    font-weight: 700;
    margin-bottom: 12px;
    min-height: 38px;
    font-size: 14px;
    line-height: 1.35;
}
.mbr-dark-product-price-row {
    margin-bottom: 14px;
    min-height: 22px;
}
.mbr-dark-price-combo {
    color: var(--mbr-tier, #e0c27a);
    font-weight: 800;
    font-size: 15px;
}
.mbr-dark-price-cash {
    margin-top: 3px;
    opacity: 0.65;
    font-size: 12px;
    color: #cfc9ba;
}
.mbr-dark-price-special {
    color: var(--mbr-tier, #e0c27a);
    font-weight: 800;
    font-size: 16px;
    margin-right: 8px;
}
.mbr-dark-price-original {
    opacity: 0.45;
    text-decoration: line-through;
    color: #9a9585;
    font-size: 13px;
}
.mbr-dark-price-normal {
    color: #f7f4ec;
    font-weight: 800;
    font-size: 16px;
}

/* ---- Dark button ---- */
.mbr-dark-btn {
    width: 100%;
    padding: 12px;
    margin-top: 0;
    font-size: 12px;
    background: rgba(224, 194, 122, 0.08);
    color: var(--mbr-tier, #e0c27a);
    border: 1px solid rgba(224, 194, 122, 0.28);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: all 0.2s ease;
}
.mbr-dark-btn:active {
    transform: scale(0.97);
    background: rgba(224, 194, 122, 0.16);
}
.mbr-dark-btn-full { width: 100%; }

/* ---- Dark modals ---- */
.mbr-dark-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.mbr-dark-modal-card {
    background: #141419;
    width: 90%;
    max-width: 400px;
    border-radius: 22px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(224, 194, 122, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    animation: mbrSlideUp 0.4s ease-out;
}
.mbr-dark-modal-card--promo { padding: 0; overflow: hidden; }
.mbr-dark-modal-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 18px;
    color: var(--mbr-tier);
    background: color-mix(in srgb, var(--mbr-tier, var(--gold)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--mbr-tier, var(--gold)) 28%, transparent);
}
.mbr-dark-modal-title {
    color: #f7f4ec;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
}
.mbr-dark-modal-sub { font-size: 13px; color: #9a9585; margin: 0 0 22px; }
.mbr-dark-otp-code {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--mbr-tier);
    margin-bottom: 22px;
    font-family: ui-monospace, Menlo, monospace;
}
.mbr-dark-modal-note { font-size: 12px; color: #9a9585; margin-bottom: 22px; }
.mbr-dark-promo-head {
    background: linear-gradient(135deg, rgba(224, 194, 122, 0.15), rgba(0, 0, 0, 0.4));
    padding: 22px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mbr-dark-promo-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mbr-dark-promo-body {
    padding: 26px;
    max-height: 56vh;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #d8d2c4;
    text-align: left;
}
.mbr-dark-promo-foot {
    padding: 18px 26px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes mbrSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 380px) {
    .mbr-dark-h1 { font-size: 22px; }
    .mbr-dark-select { max-width: 145px; font-size: 11px !important; }
}

/* =========================================================
   DARK LUXURY COMPONENT SUITE FOR ALL MEMBER PAGES
   Obsidian Black (#0b0b0e) + Metallic Champagne Gold (#e0c27a)
   ========================================================= */

/* ── Global Typography & Elements in App Main ── */
.app-main h1, .app-main h2, .app-main h3, .app-main h4 {
    color: #ffffff;
}

/* ── 1. E-CHOP LOYALTY CARD & PRIZES ── */
.modern-theme .app-main .tab-nav,
.modern-theme .app-main .tab-container {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
        linear-gradient(165deg, #24222a 0%, #141218 100%) !important;
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 36%, transparent) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 10px 22px rgba(0, 0, 0, 0.4) !important;
}

.stamp-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, transparent 26%),
        radial-gradient(90% 52% at 82% 118%, color-mix(in srgb, var(--gold, #e0c27a) 26%, transparent), transparent 64%),
        linear-gradient(165deg, #26242c 0%, #121218 58%, #1a1610 100%) !important;
    border-radius: 22px !important;
    padding: 24px 20px 22px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -18px 22px rgba(0, 0, 0, 0.32),
        0 16px 36px rgba(0, 0, 0, 0.48) !important;
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 42%, transparent) !important;
    position: relative;
    overflow: hidden;
}

.stamp-card::before {
    content: "" !important;
    position: absolute !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 62px !important;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gold, #e0c27a) 34%, transparent)) !important;
    clip-path: polygon(0 72%, 7% 48%, 15% 64%, 24% 28%, 34% 56%, 46% 16%, 56% 48%, 68% 22%, 80% 54%, 90% 30%, 100% 62%, 100% 100%, 0 100%) !important;
    opacity: 0.8 !important;
    pointer-events: none;
    z-index: 0;
}

.stamp-card > * {
    position: relative;
    z-index: 1;
}

.stamp-title {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.stamp-progress {
    color: var(--gold) !important;
    background: color-mix(in srgb, var(--gold) 14%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent) !important;
    font-weight: 800 !important;
}

.stamp-slot {
    background: radial-gradient(circle at 50% 35%, #22222c 0%, #0c0c12 72%) !important;
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 28%, transparent) !important;
    box-shadow:
        inset 0 4px 8px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s ease;
}

.stamp-slot.active {
    border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent) !important;
    background: linear-gradient(135deg, #22222d 0%, #16161f 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 color-mix(in srgb, var(--gold) 28%, transparent) !important;
}

.stamp-slot.target {
    border: 2px solid var(--gold) !important;
    background: color-mix(in srgb, var(--gold) 14%, transparent) !important;
}

.stamp-slot.target.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 72%, #fff) 0%, var(--gold) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--gold) 40%, transparent) !important;
}

.swiper-dots .dot {
    background: rgba(255, 255, 255, 0.2) !important;
}

.swiper-dots .dot.active {
    background: var(--gold) !important;
    box-shadow: 0 0 10px color-mix(in srgb, var(--gold) 50%, transparent) !important;
}

.reward-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 32%),
        radial-gradient(80% 70% at 100% 120%, color-mix(in srgb, var(--gold, #e0c27a) 20%, transparent), transparent 68%),
        linear-gradient(165deg, #24222a 0%, #121218 64%, #1a1610 100%) !important;
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 38%, transparent) !important;
    border-radius: 20px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -12px 16px rgba(0, 0, 0, 0.28),
        0 12px 28px rgba(0, 0, 0, 0.42) !important;
    overflow: hidden;
}

.reward-item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gold, #e0c27a) 26%, transparent));
    clip-path: polygon(0 70%, 12% 40%, 24% 62%, 38% 22%, 52% 55%, 68% 18%, 82% 50%, 100% 28%, 100% 100%, 0 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.reward-name {
    color: #ffffff !important;
}

.reward-price {
    color: #8a8577 !important;
}

.reward-cost {
    background: color-mix(in srgb, var(--gold) 14%, transparent) !important;
    color: var(--gold) !important;
    border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent) !important;
}

.reward-img {
    background: #14141a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.history-title {
    color: #ffffff !important;
}

.history-list {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 22%),
        radial-gradient(80% 40% at 80% 120%, color-mix(in srgb, var(--gold, #e0c27a) 18%, transparent), transparent 62%),
        linear-gradient(175deg, #1e1c24 0%, #101014 100%) !important;
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 36%, transparent) !important;
    border-radius: 20px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 14px 32px rgba(0, 0, 0, 0.42) !important;
}

.history-list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gold, #e0c27a) 24%, transparent));
    clip-path: polygon(0 72%, 8% 46%, 18% 64%, 30% 24%, 44% 58%, 58% 18%, 72% 52%, 86% 28%, 100% 60%, 100% 100%, 0 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

.history-list > * {
    position: relative;
    z-index: 1;
}

.history-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.hi-title {
    color: #ffffff !important;
}

.hi-date {
    color: #8a8577 !important;
}

.hi-amount.pos {
    color: #4ade80 !important;
}

.hi-amount.neg {
    color: #ece7dc !important;
}

.hi-icon.gain {
    background: rgba(74, 222, 128, 0.12) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.25) !important;
}

.hi-icon.use {
    background: color-mix(in srgb, var(--gold) 14%, transparent) !important;
    color: var(--gold) !important;
    border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent) !important;
}

.tnc-box {
    background: rgba(20, 20, 26, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #a39e8f !important;
}

/* ── 2. VOUCHERS (Ticket Notch & High-End Metallic Cards) ── */
.voucher-card {
    background: linear-gradient(175deg, #171720 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.25) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden;
}

.voucher-left {
    background: linear-gradient(135deg, #d4b56a 0%, #9e7b2a 100%) !important;
    color: #0b0b0e !important;
}

.voucher-left::after {
    background-image: radial-gradient(circle at -2px 6px, transparent 6px, #171720 7px) !important;
}

.voucher-right {
    background: transparent !important;
}

.v-code {
    color: var(--gold) !important;
    font-weight: 800 !important;
}

.v-title {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.v-desc {
    color: #a39e8f !important;
}

.v-validity {
    color: var(--gold) !important;
    background: rgba(224, 194, 122, 0.12) !important;
    border: 1px solid rgba(224, 194, 122, 0.22) !important;
    border-radius: 6px !important;
}

/* ── 3. SCRATCH & REWARDS HUB ── */
.section-title {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.points-balance-badge {
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 18%, transparent) 0%, rgba(20, 20, 26, 0.8) 100%) !important;
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent) !important;
    color: var(--gold) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.scratch-option-card {
    background: linear-gradient(175deg, #171720 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid color-mix(in srgb, var(--gold) 40%, transparent) !important;
    border-radius: 20px !important;
}

.scratch-cost-tag {
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 72%, #fff) 0%, var(--gold) 100%) !important;
    color: #0b0b0e !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--gold) 35%, transparent) !important;
}

.scratch-card-title {
    color: #ffffff !important;
}

.scratch-desc {
    color: #a39e8f !important;
}

.food-item-card {
    background: linear-gradient(175deg, #171720 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid color-mix(in srgb, var(--gold) 32%, transparent) !important;
    border-radius: 16px !important;
}

.food-item-title {
    color: #ffffff !important;
}

.food-item-pts {
    color: var(--gold) !important;
    font-weight: 800 !important;
}

.sc-card {
    background: linear-gradient(175deg, #181822 0%, #0f0f14 100%) !important;
    border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
    color: #ece7dc !important;
}

.sc-card #scTitle {
    color: #ffffff !important;
}

.sc-hint {
    color: #a39e8f !important;
}

.sc-stage {
    background: #14141a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.sc-prize {
    background: radial-gradient(circle at center, #1a1a24 0%, #0e0e13 100%) !important;
}

.sc-prize-kicker {
    color: var(--gold) !important;
}

.sc-prize-text {
    color: #ffffff !important;
}

.sc-btn-ghost {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ece7dc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ── 4. SPIN & WIN ── */
#spin_gate_box {
    background: rgba(224, 194, 122, 0.1) !important;
    border: 1px solid rgba(224, 194, 122, 0.25) !important;
}

#spin_gate_box > div:first-child {
    color: var(--gold) !important;
}

#spin_gate_text {
    color: #ece7dc !important;
}

.limits-box {
    background: linear-gradient(175deg, #171720 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.22) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.limit-val {
    color: var(--gold) !important;
    text-shadow: 0 2px 10px rgba(224, 194, 122, 0.3);
}

.limit-lbl {
    color: #8a8577 !important;
}

.limits-box .limit-item[style*="border-left"] {
    border-left-color: rgba(255, 255, 255, 0.08) !important;
}

.wheel-border {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--gold) 78%, #fff) 0%,
        var(--gold) 46%,
        color-mix(in srgb, var(--gold) 55%, #000) 100%) !important;
    box-shadow: 0 12px 36px color-mix(in srgb, var(--gold) 38%, transparent) !important;
}

.win-card {
    background: linear-gradient(175deg, #181822 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(224, 194, 122, 0.35) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
    color: #ece7dc !important;
}

.win-card h2 {
    color: #ffffff !important;
}

.win-card p {
    color: #a39e8f !important;
}

/* ── 5. WALLET & TOPUP ── */
.asset-card {
    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

.card-wallet {
    background: linear-gradient(135deg, #1c1a14 0%, #2a2416 35%, #181611 70%, #2b2313 100%) !important;
    border: 1px solid rgba(224, 194, 122, 0.35) !important;
    color: #f7f4ec !important;
}

.card-wallet .a-label, .card-wallet .a-footer {
    color: var(--gold) !important;
    opacity: 0.9;
}

.card-wallet .a-balance, .card-wallet .a-currency {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.card-points {
    background: linear-gradient(135deg, #17181c 0%, #23252e 50%, #15161a 100%) !important;
    border: 1px solid rgba(223, 228, 235, 0.25) !important;
    color: #f7f4ec !important;
}

.card-points .a-label, .card-points .a-footer {
    color: #dfe4eb !important;
    opacity: 0.9;
}

.card-points .a-balance, .card-points .a-currency {
    color: #ffffff !important;
}

.bank-info-box {
    background: rgba(20, 20, 26, 0.8) !important;
    border: 1px dashed rgba(224, 194, 122, 0.3) !important;
    border-radius: 16px !important;
}

.bank-label {
    color: #8a8577 !important;
}

.bank-value {
    color: #ffffff !important;
}

/* ── 6. QR & TIMED MODALS ── */
.chop-modal, .qr-modal, .qr-modal-content {
    background: linear-gradient(175deg, #181822 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(224, 194, 122, 0.3) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
    color: #ece7dc !important;
}

.qm-close {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.qm-title {
    color: #ffffff !important;
}

.qm-desc {
    color: #a39e8f !important;
}

#qrcode-container {
    background: #ffffff;
    padding: 12px;
    border-radius: 14px;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ── 7. PROFILE EDIT & FORM CONTROLS ── */
.form-label {
    color: #ece7dc !important;
}

.form-control {
    background: #14141a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.25) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
}

.form-control:focus {
    background: #181822 !important;
    border-color: rgba(224, 194, 122, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(224, 194, 122, 0.15) !important;
    color: #ffffff !important;
}

.btn-submit {
    background: linear-gradient(135deg, #e0c27a 0%, #c59f4e 50%, #9e7b2a 100%) !important;
    color: #0b0b0e !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(197, 159, 78, 0.28) !important;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ── 8. REFERRAL & REWARDS ── */
.ref-card {
    background: linear-gradient(175deg, #171720 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.25) !important;
    color: #ece7dc !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

.ref-qr-container {
    background: #ffffff !important;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ref-link-box {
    background: rgba(20, 20, 26, 0.9) !important;
    border: 1px solid rgba(224, 194, 122, 0.25) !important;
}

.ref-link-text {
    color: var(--gold) !important;
}

.stat-item {
    background: linear-gradient(175deg, #1a1a24 0%, #101017 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.25) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    color: #ffffff !important;
}

.ref-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #ece7dc !important;
}

.share-btn {
    background: linear-gradient(135deg, #e0c27a 0%, #9e7b2a 100%) !important;
    color: #0b0b0e !important;
    box-shadow: 0 8px 24px rgba(224, 194, 122, 0.28) !important;
}

.rewards-container h2, .rewards-container h4 {
    color: #ffffff !important;
}

.rewards-container p {
    color: #a39e8f !important;
}

/* ── 9. MYSTERY CHEST ── */
.chest-page {
    background: transparent !important;
    color: #ece7dc !important;
}

.chest-title {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.chest-sub {
    color: #a39e8f !important;
}

.spend-progress-card {
    background: linear-gradient(175deg, #171720 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.25) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

.progress-title {
    color: #a39e8f !important;
}

.progress-value {
    color: var(--gold) !important;
}

.progress-bar-bg {
    background: #14141a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #d4b56a 0%, #e0c27a 100%) !important;
    box-shadow: 0 0 12px rgba(224, 194, 122, 0.4) !important;
}

.chest-card {
    background: linear-gradient(175deg, #171720 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.25) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
    color: #ece7dc !important;
}

.chest-card.unlocked {
    border-color: rgba(224, 194, 122, 0.6) !important;
    box-shadow: 0 10px 30px rgba(224, 194, 122, 0.25) !important;
}

/* ── 10. BRANCHES ── */
.branches-container {
    background: transparent !important;
}

.branch-card {
    background: linear-gradient(175deg, #171720 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.25) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

.branch-name {
    color: #ffffff !important;
}

.branch-detail-item {
    color: #a39e8f !important;
}

.branch-detail-item svg {
    color: var(--gold) !important;
}

/* ── 11. CONTACT US ── */
.contact-page {
    background: transparent !important;
    color: #ece7dc !important;
}

.contact-page .company-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 14px;
    object-fit: contain;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.contact-page .logo-placeholder {
    color: var(--gold) !important;
}

.contact-page .company-name {
    color: #ffffff !important;
}

.info-card {
    background: linear-gradient(175deg, #171720 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.25) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

.info-label {
    color: #8a8577 !important;
}

.info-value {
    color: #ffffff !important;
}

.info-icon {
    background: color-mix(in srgb, var(--gold) 14%, transparent) !important;
    color: var(--gold) !important;
    border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent) !important;
}

.action-btn {
    background: linear-gradient(175deg, #171720 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.22) !important;
    color: #ece7dc !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

.action-btn .action-label {
    color: #ece7dc !important;
}

/* ── 12. BOOKING ── */
.booking-page {
    background: transparent !important;
    color: #ece7dc !important;
}

.appt-card {
    background: linear-gradient(135deg, #222018 0%, #15151b 100%) !important;
    border: 1px solid rgba(224, 194, 122, 0.35) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
}

.appt-card .appt-badge {
    background: linear-gradient(135deg, #d4b56a 0%, #9e7b2a 100%) !important;
    color: #0b0b0e !important;
    font-weight: 800 !important;
}

.appt-card.passed {
    background: linear-gradient(175deg, #171720 0%, #0f0f14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(224, 194, 122, 0.2) !important;
    color: #ece7dc !important;
}

.appt-card.passed .appt-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #a39e8f !important;
}

.appt-card.passed .appt-date {
    color: #ffffff !important;
}

.appt-card.passed .appt-note {
    background: rgba(20, 20, 26, 0.8) !important;
    color: #a39e8f !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Layered metal panels (voucher, scratch, profile, wallet) ── */
.modern-theme .app-main .v-lux,
.modern-theme .app-main .scratch-option-card,
.modern-theme .app-main .food-item-card,
.modern-theme .app-main .profile-hero,
.modern-theme .app-main .settings-group,
.modern-theme .app-main .asset-card,
.modern-theme .app-main .points-balance-badge {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 28%),
        radial-gradient(90% 55% at 84% 120%, color-mix(in srgb, var(--gold, #e0c27a) 26%, transparent), transparent 66%),
        linear-gradient(165deg, #26242c 0%, #121218 58%, #1a1610 100%) !important;
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 42%, transparent) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -16px 20px rgba(0, 0, 0, 0.32),
        0 14px 32px rgba(0, 0, 0, 0.46) !important;
}

.modern-theme .app-main .v-lux::before,
.modern-theme .app-main .scratch-option-card::before,
.modern-theme .app-main .food-item-card::before,
.modern-theme .app-main .profile-hero::before,
.modern-theme .app-main .settings-group::before,
.modern-theme .app-main .asset-card::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    height: 48px !important;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gold, #e0c27a) 34%, transparent)) !important;
    clip-path: polygon(0 72%, 7% 48%, 15% 64%, 24% 28%, 34% 56%, 46% 16%, 56% 48%, 68% 22%, 80% 54%, 90% 30%, 100% 62%, 100% 100%, 0 100%) !important;
    opacity: 0.82;
    pointer-events: none;
    z-index: 0;
}

.modern-theme .app-main .scratch-option-card::before,
.modern-theme .app-main .food-item-card::before {
    height: 34px !important;
}

.modern-theme .app-main .v-lux > *,
.modern-theme .app-main .profile-hero > *,
.modern-theme .app-main .settings-group > *,
.modern-theme .app-main .asset-card > * {
    position: relative;
    z-index: 1;
}

.modern-theme .app-main .v-lux-ribbon {
    z-index: 2;
}

.modern-theme .app-main .card-wallet::after,
.modern-theme .app-main .card-points::after {
    content: none !important;
}

.modern-theme .app-main .food-banner-card {
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 42%, transparent) !important;
    border-radius: 20px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 14px 30px rgba(0, 0, 0, 0.46) !important;
}

.modern-theme .app-main .points-balance-badge {
    border-radius: 999px !important;
}

/* ── Chest, referral, profile edit, reports — same metal, tier color ── */
.modern-theme .app-main .spend-progress-card,
.modern-theme .app-main .chest-card,
.modern-theme .app-main .ref-card,
.modern-theme .app-main .stat-item,
.modern-theme .app-main .ref-history,
.modern-theme .app-main .ref-balance,
.modern-theme .app-main .ref-row,
.modern-theme .app-main .ref-empty,
.modern-theme .app-main .report-card,
.modern-theme .app-main #tab-profile,
.modern-theme .app-main #tab-password {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 28%),
        radial-gradient(90% 55% at 84% 120%, color-mix(in srgb, var(--gold, #e0c27a) 26%, transparent), transparent 66%),
        linear-gradient(165deg, #26242c 0%, #121218 58%, #1a1610 100%) !important;
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 42%, transparent) !important;
    border-radius: 22px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -16px 20px rgba(0, 0, 0, 0.32),
        0 14px 32px rgba(0, 0, 0, 0.46) !important;
    color: #f7f4ec !important;
}

.modern-theme .app-main .spend-progress-card::before,
.modern-theme .app-main .chest-card::before,
.modern-theme .app-main .ref-card::before,
.modern-theme .app-main .stat-item::before,
.modern-theme .app-main .ref-history::before,
.modern-theme .app-main .ref-balance::before,
.modern-theme .app-main .ref-row::before,
.modern-theme .app-main .ref-empty::before,
.modern-theme .app-main .report-card::before,
.modern-theme .app-main #tab-profile::before,
.modern-theme .app-main #tab-password::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    height: 46px !important;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gold, #e0c27a) 34%, transparent)) !important;
    clip-path: polygon(0 72%, 7% 48%, 15% 64%, 24% 28%, 34% 56%, 46% 16%, 56% 48%, 68% 22%, 80% 54%, 90% 30%, 100% 62%, 100% 100%, 0 100%) !important;
    opacity: 0.82;
    pointer-events: none;
    z-index: 0;
}

.modern-theme .app-main .chest-card::before,
.modern-theme .app-main .stat-item::before,
.modern-theme .app-main .ref-row::before {
    height: 32px !important;
}

.modern-theme .app-main .spend-progress-card > *,
.modern-theme .app-main .chest-card > *,
.modern-theme .app-main .ref-card > *,
.modern-theme .app-main .stat-item > *,
.modern-theme .app-main .ref-history > *,
.modern-theme .app-main .ref-balance > *,
.modern-theme .app-main .ref-row > *,
.modern-theme .app-main .ref-empty > *,
.modern-theme .app-main .report-card > *,
.modern-theme .app-main #tab-profile > *,
.modern-theme .app-main #tab-password > * {
    position: relative;
    z-index: 1;
}

.modern-theme .app-main .chest-card.unlocked {
    border-color: color-mix(in srgb, var(--gold, #e0c27a) 70%, transparent) !important;
}

.modern-theme .app-main .chest-step-num,
.modern-theme .app-main .progress-value,
.modern-theme .app-main .ref-kicker,
.modern-theme .app-main .ref-code,
.modern-theme .app-main .ref-more,
.modern-theme .app-main .tab-btn.active {
    color: var(--gold, #e0c27a) !important;
}

.modern-theme .app-main .progress-bar-fill,
.modern-theme .app-main .btn-open,
.modern-theme .app-main .btn-submit,
.modern-theme .app-main .btn-search,
.modern-theme .app-main .copy-btn,
.modern-theme .app-main .share-btn {
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold, #e0c27a) 72%, #fff) 0%, var(--gold, #e0c27a) 52%, color-mix(in srgb, var(--gold, #e0c27a) 62%, #000) 100%) !important;
    color: #0b0b0e !important;
    border: none !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--gold, #e0c27a) 32%, transparent) !important;
}

.modern-theme .app-main .form-control,
.modern-theme .app-main .input-control {
    background: #1c1c24 !important;
    color: #f7f4ec !important;
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 34%, transparent) !important;
    color-scheme: dark;
}

.modern-theme .app-main .form-label,
.modern-theme .app-main .report-card .section-title {
    color: var(--gold, #e0c27a) !important;
}

.modern-theme .app-main #tab-profile,
.modern-theme .app-main #tab-password {
    padding: 18px 16px 8px !important;
    margin-bottom: 16px;
}

.modern-theme .app-main #avatarPreview {
    border-color: var(--gold, #e0c27a) !important;
    color: var(--gold, #e0c27a) !important;
    background-color: #171720 !important;
}

.modern-theme .app-main .ref-history {
    padding: 22px 18px 16px !important;
    margin-bottom: 20px;
}

.modern-theme .app-main .ref-history h3,
.modern-theme .app-main .ref-history .ref-list-item,
.modern-theme .app-main .ref-name {
    color: #f7f4ec !important;
}

.modern-theme .app-main .ref-meta {
    color: #c8c2b4 !important;
}

.modern-theme .app-main .ref-balance {
    padding: 28px 20px !important;
    text-align: center;
    margin-bottom: 22px;
}

.modern-theme .app-main .ref-balance-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gold, #e0c27a) !important;
    margin-bottom: 8px;
}

.modern-theme .app-main .ref-balance-val {
    font-size: 40px;
    font-weight: 900;
    color: #ffffff !important;
}

.modern-theme .app-main .ref-balance-note,
.modern-theme .app-main .ref-empty p {
    color: #d4cec2 !important;
}

.modern-theme .app-main .ref-row,
.modern-theme .app-main .ref-empty {
    padding: 18px 16px !important;
    margin-bottom: 12px;
}

.modern-theme .app-main .ref-empty {
    text-align: center;
    padding: 36px 18px !important;
}

.modern-theme .app-main #historyResults .history-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 22%, transparent) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.modern-theme .app-main #historyResults .history-item::before {
    content: none !important;
}

.modern-theme .app-main #historyResults .h-title {
    color: #f7f4ec !important;
}

.modern-theme .app-main #historyResults .h-meta {
    color: #c8c2b4 !important;
}

.modern-theme .app-main #copyToast {
    background: var(--gold, #e0c27a) !important;
    color: #0b0b0e !important;
}

/* ── Branches, notifications, contact ── */
.modern-theme .app-main .branch-card,
.modern-theme .app-main .notif-card,
.modern-theme .app-main .notif-empty,
.modern-theme .app-main .info-card,
.modern-theme .app-main .action-btn,
.modern-theme .app-main .company-header,
.modern-theme .app-main .notif-sheet {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 28%),
        radial-gradient(90% 55% at 84% 120%, color-mix(in srgb, var(--gold, #e0c27a) 26%, transparent), transparent 66%),
        linear-gradient(165deg, #26242c 0%, #121218 58%, #1a1610 100%) !important;
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 42%, transparent) !important;
    border-radius: 22px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -16px 20px rgba(0, 0, 0, 0.32),
        0 14px 32px rgba(0, 0, 0, 0.46) !important;
    color: #f7f4ec !important;
}

.modern-theme .app-main .branch-card::before,
.modern-theme .app-main .notif-card::before,
.modern-theme .app-main .notif-empty::before,
.modern-theme .app-main .info-card::before,
.modern-theme .app-main .action-btn::before,
.modern-theme .app-main .company-header::before,
.modern-theme .app-main .notif-sheet::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: auto !important;
    height: 42px !important;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--gold, #e0c27a) 34%, transparent)) !important;
    clip-path: polygon(0 72%, 7% 48%, 15% 64%, 24% 28%, 34% 56%, 46% 16%, 56% 48%, 68% 22%, 80% 54%, 90% 30%, 100% 62%, 100% 100%, 0 100%) !important;
    opacity: 0.82;
    pointer-events: none;
    z-index: 0;
}

.modern-theme .app-main .action-btn::before,
.modern-theme .app-main .notif-card::before {
    height: 28px !important;
}

.modern-theme .app-main .branch-card > *,
.modern-theme .app-main .notif-card > *,
.modern-theme .app-main .info-card > *,
.modern-theme .app-main .action-btn > *,
.modern-theme .app-main .company-header > *,
.modern-theme .app-main .notif-sheet > * {
    position: relative;
    z-index: 1;
}

.modern-theme .app-main .notif-card.unread {
    border-left: 3px solid var(--gold, #e0c27a) !important;
}

.modern-theme .app-main .notif-title,
.modern-theme .app-main .branch-name,
.modern-theme .app-main .company-name,
.modern-theme .app-main #modalTitle {
    color: #f7f4ec !important;
}

.modern-theme .app-main .notif-message,
.modern-theme .app-main .notif-time,
.modern-theme .app-main .branch-detail-item,
.modern-theme .app-main #modalTime,
.modern-theme .app-main #modalMessage {
    color: #d4cec2 !important;
}

.modern-theme .app-main .branch-detail-item svg {
    color: var(--gold, #e0c27a) !important;
    background: none !important;
    border: none !important;
}

.modern-theme .app-main .info-icon,
.modern-theme .app-main .action-icon,
.modern-theme .app-main .notif-icon,
.modern-theme .app-main .back-btn {
    background: color-mix(in srgb, var(--gold, #e0c27a) 14%, transparent) !important;
    color: var(--gold, #e0c27a) !important;
    border: 1px solid color-mix(in srgb, var(--gold, #e0c27a) 32%, transparent) !important;
}

.modern-theme .app-main .branch-slideshow {
    background: #14141a !important;
    color: var(--gold, #e0c27a) !important;
}

.modern-theme .app-main .btn-whatsapp,
.modern-theme .app-main .btn-map,
.modern-theme .app-main .notif-dismiss {
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold, #e0c27a) 72%, #fff) 0%, var(--gold, #e0c27a) 52%, color-mix(in srgb, var(--gold, #e0c27a) 62%, #000) 100%) !important;
    color: #0b0b0e !important;
    border: none !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--gold, #e0c27a) 32%, transparent) !important;
}

.modern-theme .app-main .company-header {
    padding: 22px 16px 18px !important;
    margin-bottom: 22px;
}

.modern-theme .app-main .company-logo {
    display: block;
    height: 52px !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 auto 14px;
    object-fit: contain;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.modern-theme .app-main #modalIcon {
    border-color: var(--gold, #e0c27a) !important;
    background: #171720 !important;
    color: var(--gold, #e0c27a) !important;
}

.modern-theme .app-main .notif-empty {
    text-align: center;
    padding: 36px 18px !important;
}

.modern-theme .app-main .notif-sheet {
    width: 90%;
    max-width: 400px;
    padding: 28px 22px 22px !important;
    text-align: left;
}

.modern-theme .app-main .notif-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: transparent !important;
    border: none !important;
    color: #d4cec2 !important;
    font-size: 24px;
    cursor: pointer;
}


