/* Marketplace global discount — Sale Event Mode (PipraTopUp teal/lime/gold) */
:root {
    --mp-disc-cyan: #2dd4bf;
    --mp-disc-cyan-deep: #0f766e;
    --mp-disc-lime: #a3e635;
    --mp-disc-gold: #fbbf24;
    --mp-disc-ink: #042f2e;
    --mp-disc-banner-h: calc(2.65rem + env(safe-area-inset-top, 0px));
}

/* ═══════════════════════════════════════════════════════════
   SALE EVENT — site-wide theme shift (public pages only)
   Triggered by html.has-mp-discount + body.mp-sale-event
   ═══════════════════════════════════════════════════════════ */
html.has-mp-discount {
    --topup-nav-offset: calc(7rem + var(--mp-disc-banner-h));
    --topup-bg: #f0fdfa;
    --topup-card: #ffffff;
    --topup-green: #0f766e;
    --topup-green-hover: #115e59;
    --topup-green-soft: #ccfbf1;
    --topup-price: #ea580c;
    --topup-border: #99f6e4;
    --topup-selected: #0d9488;
    --topup-selected-ring: rgba(13, 148, 136, 0.22);
    --topup-link: #0f766e;
    --topup-shadow: 0 2px 10px rgba(15, 118, 110, 0.08);
    --topup-shadow-md: 0 6px 20px rgba(15, 118, 110, 0.12);
    --mp-sale-glow: rgba(45, 212, 191, 0.35);
    --mp-sale-lime-glow: rgba(163, 230, 53, 0.4);
}

html.has-mp-discount .topup-nav,
html.has-mp-discount #main-nav {
    top: var(--mp-disc-banner-h) !important;
}

/* —— Animated atmosphere (light site) —— */
body.mp-sale-event.topup-site {
    background-color: var(--topup-bg) !important;
    position: relative;
    isolation: isolate;
}

body.mp-sale-event.topup-site::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 8% -5%, rgba(45, 212, 191, 0.22), transparent 55%),
        radial-gradient(ellipse 55% 40% at 92% 5%, rgba(163, 230, 53, 0.16), transparent 50%),
        radial-gradient(ellipse 60% 45% at 50% 105%, rgba(15, 118, 110, 0.1), transparent 55%),
        radial-gradient(ellipse 40% 30% at 70% 40%, rgba(251, 191, 36, 0.06), transparent 60%);
    background-size: 120% 120%, 110% 110%, 100% 100%, 100% 100%;
    animation: mp-sale-mesh 16s ease-in-out infinite alternate;
    will-change: background-position;
}

body.mp-sale-event.topup-site::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(163, 230, 53, 0.07) 0 1px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(45, 212, 191, 0.08) 0 1px, transparent 2px);
    background-size: 48px 48px, 64px 64px;
    animation: mp-sale-dots 22s linear infinite;
}

/* Dark chrome pages during sale */
body.mp-sale-event:not(.topup-site):not(.admin-panel) {
    position: relative;
}

body.mp-sale-event:not(.topup-site):not(.admin-panel)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(45, 212, 191, 0.14), transparent 50%),
        radial-gradient(ellipse 50% 35% at 90% 10%, rgba(163, 230, 53, 0.1), transparent 45%);
    animation: mp-sale-mesh 18s ease-in-out infinite alternate;
}

body.mp-sale-event:not(.topup-site):not(.admin-panel) > * {
    position: relative;
    z-index: 1;
}

/* —— Main content corner / edge accents (desktop) —— */
html.has-mp-discount .topup-main-content {
    position: relative;
}

@media (min-width: 768px) {
    html.has-mp-discount .topup-main-content::before,
    html.has-mp-discount .topup-main-content::after {
        content: '';
        position: fixed;
        width: 72px;
        height: 72px;
        pointer-events: none;
        z-index: 45;
        opacity: 0.85;
        border-color: var(--mp-disc-lime);
        border-style: solid;
    }

    html.has-mp-discount .topup-main-content::before {
        top: calc(var(--topup-nav-offset, 7rem) + 0.5rem);
        left: 12px;
        border-width: 2px 0 0 2px;
        border-radius: 6px 0 0 0;
        box-shadow: -2px -2px 12px rgba(163, 230, 53, 0.25);
    }

    html.has-mp-discount .topup-main-content::after {
        top: calc(var(--topup-nav-offset, 7rem) + 0.5rem);
        right: 12px;
        border-width: 2px 2px 0 0;
        border-radius: 0 6px 0 0;
        border-color: var(--mp-disc-cyan);
        box-shadow: 2px -2px 12px rgba(45, 212, 191, 0.25);
    }
}

/* —— Header / nav sale energy —— */
html.has-mp-discount .topup-nav {
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.97) 0%, rgba(255, 255, 255, 0.94) 100%) !important;
    border-bottom: 1px solid rgba(45, 212, 191, 0.35) !important;
    box-shadow:
        0 1px 0 rgba(163, 230, 53, 0.25),
        0 8px 24px rgba(15, 118, 110, 0.08) !important;
}

html.has-mp-discount .topup-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--mp-disc-cyan) 20%,
        var(--mp-disc-lime) 50%,
        var(--mp-disc-gold) 70%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: mp-disc-shimmer 4s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.9;
}

html.has-mp-discount .topup-nav-brand .bg-green-600,
html.has-mp-discount .topup-nav-brand .w-9 {
    background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.45);
}

html.has-mp-discount .topup-nav-brand-text .text-green-600 {
    color: #0d9488 !important;
}

html.has-mp-discount .topup-mode-tabs {
    background: rgba(204, 251, 241, 0.65);
    border-color: rgba(45, 212, 191, 0.4);
}

html.has-mp-discount .topup-mode-tab.active {
    background: linear-gradient(135deg, #0f766e, #0d9488) !important;
    box-shadow:
        0 2px 10px rgba(15, 118, 110, 0.35),
        0 0 0 1px rgba(163, 230, 53, 0.35);
    animation: mp-sale-tab-pulse 2.8s ease-in-out infinite;
}

html.has-mp-discount .topup-nav-sell-btn {
    background: rgba(163, 230, 53, 0.2) !important;
    border-color: rgba(163, 230, 53, 0.55) !important;
    color: #3f6212 !important;
}

/* ═══════════════════════════════════════════════════════════
   Banner (existing + event identity boost)
   ═══════════════════════════════════════════════════════════ */
.mp-discount-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    overflow: hidden;
    min-height: var(--mp-disc-banner-h);
    padding-top: env(safe-area-inset-top, 0px);
    background:
        linear-gradient(105deg, #042f2e 0%, #0f766e 38%, #115e59 62%, #134e4a 78%, #052e2b 100%);
    border-bottom: 1px solid rgba(163, 230, 53, 0.45);
    box-shadow:
        0 8px 28px rgba(15, 118, 110, 0.32),
        0 0 40px rgba(45, 212, 191, 0.12);
    box-sizing: border-box;
}

.mp-discount-banner__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 38%,
        rgba(163, 230, 53, 0.2) 48%,
        rgba(251, 191, 36, 0.12) 52%,
        transparent 62%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: mp-disc-shimmer 3.2s ease-in-out infinite;
    pointer-events: none;
    will-change: background-position;
}

.mp-discount-banner__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.mp-discount-banner__particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mp-disc-lime);
    opacity: 0.35;
    animation: mp-disc-float 7s ease-in-out infinite;
    will-change: transform, opacity;
}

.mp-discount-banner__particles span:nth-child(1) { left: 8%; top: 70%; animation-delay: 0s; }
.mp-discount-banner__particles span:nth-child(2) { left: 28%; top: 30%; width: 3px; height: 3px; animation-delay: 1.2s; background: var(--mp-disc-cyan); }
.mp-discount-banner__particles span:nth-child(3) { left: 52%; top: 60%; animation-delay: 2.1s; }
.mp-discount-banner__particles span:nth-child(4) { left: 74%; top: 25%; width: 3px; height: 3px; animation-delay: 0.6s; background: var(--mp-disc-cyan); }
.mp-discount-banner__particles span:nth-child(5) { left: 90%; top: 55%; animation-delay: 3s; }

.mp-discount-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.45rem 1rem;
    text-decoration: none;
    color: #ecfdf5;
    min-height: 2.65rem;
    box-sizing: border-box;
}

.mp-discount-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(163, 230, 53, 0.95), #bef264);
    border: 1px solid rgba(251, 191, 36, 0.55);
    color: var(--mp-disc-ink);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    animation: mp-disc-pulse 2.4s ease-in-out infinite;
    will-change: transform, opacity;
    box-shadow: 0 2px 12px rgba(163, 230, 53, 0.45);
}

.mp-discount-banner__badge i {
    font-size: 0.7rem;
    color: #3f6212;
}

.mp-discount-banner__pct {
    font-variant-numeric: tabular-nums;
}

.mp-discount-banner__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    min-width: 0;
}

.mp-discount-banner__title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #f0fdfa;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(45, 212, 191, 0.35);
}

.mp-discount-banner__title--short {
    display: none;
}

.mp-discount-banner__sub {
    font-size: 0.7rem;
    color: rgba(204, 251, 241, 0.9);
    line-height: 1.25;
}

.mp-discount-banner__cta {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mp-disc-ink);
    background: linear-gradient(135deg, var(--mp-disc-lime), #bef264 60%, var(--mp-disc-gold));
    padding: 0.3rem 0.8rem;
    border-radius: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 12px rgba(163, 230, 53, 0.4);
}

.mp-discount-banner__cta--chevron {
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    border-radius: 999px;
    letter-spacing: 0;
    font-size: 0.65rem;
    box-shadow: 0 2px 8px rgba(163, 230, 53, 0.3);
}

.mp-discount-banner__inner:hover .mp-discount-banner__cta {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(163, 230, 53, 0.55);
}

/* ═══════════════════════════════════════════════════════════
   Sale badges + prices (cards, details, sticky bar)
   ═══════════════════════════════════════════════════════════ */
.mp-sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-top: 0.25rem;
    padding: 0.18rem 0.55rem;
    border-radius: 0.4rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #14532d;
    background: linear-gradient(135deg, #a3e635 0%, #84cc16 55%, #fbbf24 130%);
    border: 1px solid rgba(134, 239, 172, 0.9);
    box-shadow: 0 2px 8px rgba(163, 230, 53, 0.35);
    position: relative;
    overflow: hidden;
    animation: mp-disc-badge-glow 2.8s ease-in-out infinite;
}

.mp-sale-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: mp-disc-shimmer 2.6s ease-in-out infinite;
    pointer-events: none;
}

.mp-sale-badge i {
    font-size: 0.62rem;
    color: #3f6212;
    position: relative;
    z-index: 1;
}

.mp-sale-badge > * {
    position: relative;
    z-index: 1;
}

.mp-sale-price-wrap .mp-sale-was {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Dramatic sale price */
html.has-mp-discount .mp-sale-price-wrap .price-font,
html.has-mp-discount .mp-sale-price-wrap .text-neon-yellow,
html.has-mp-discount .marketplace-page .mp-item-card .mp-sale-price-wrap .price-font,
html.has-mp-discount .marketplace-page .mp-item-card .mp-sale-price-wrap .text-neon-yellow {
    background: linear-gradient(120deg, #c2410c 0%, #ea580c 35%, #f59e0b 70%, #ca8a04 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    font-weight: 800;
    filter: drop-shadow(0 1px 0 rgba(234, 88, 12, 0.2));
    letter-spacing: 0.01em;
}

html.has-mp-discount .mp-sale-price-wrap .mp-sale-was {
    color: #94a3b8;
    opacity: 0.9;
}

/* Details price tag sale chrome */
html.has-mp-discount .ff-detail-page .ff-price-tag {
    background: linear-gradient(145deg, #fff7ed 0%, #ecfdf5 55%, #fef9c3 100%);
    border: 1.5px solid rgba(234, 88, 12, 0.45);
    box-shadow:
        0 4px 16px rgba(234, 88, 12, 0.12),
        0 0 0 1px rgba(163, 230, 53, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

html.has-mp-discount .ff-detail-page .ff-price-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0f766e, #a3e635, #fbbf24);
    opacity: 0.9;
}

html.has-mp-discount .ff-detail-page .ff-price-tag > div:first-child {
    background: linear-gradient(120deg, #c2410c, #ea580c 40%, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

html.has-mp-discount .ff-detail-sticky-buy {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%) !important;
    border-top: 2px solid rgba(45, 212, 191, 0.45) !important;
    box-shadow: 0 -6px 20px rgba(15, 118, 110, 0.12) !important;
}

html.has-mp-discount .ff-detail-sticky-buy .sticky-price {
    background: linear-gradient(120deg, #c2410c, #ea580c 50%, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

html.has-mp-discount .ff-detail-buy,
html.has-mp-discount .mp-btn-claim:not(.mp-btn-claim--reserved) {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%) !important;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35) !important;
}

html.has-mp-discount .ff-detail-buy:hover,
html.has-mp-discount .mp-btn-claim:not(.mp-btn-claim--reserved):hover {
    background: linear-gradient(135deg, #115e59 0%, #0f766e 60%, #0d9488 100%) !important;
}

/* ═══════════════════════════════════════════════════════════
   Marketplace cards — sale border + corner accent
   ═══════════════════════════════════════════════════════════ */
html.has-mp-discount .mp-item-card {
    border-color: rgba(45, 212, 191, 0.42);
    box-shadow:
        0 2px 10px rgba(15, 118, 110, 0.08),
        inset 0 0 0 1px rgba(163, 230, 53, 0.12);
}

html.has-mp-discount .mp-item-card:hover {
    border-color: rgba(45, 212, 191, 0.7);
    box-shadow:
        0 8px 22px rgba(15, 118, 110, 0.16),
        0 0 0 1px rgba(163, 230, 53, 0.25);
}

html.has-mp-discount .mp-item-card.mp-sale-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 2.15rem 2.15rem 0;
    border-color: transparent #a3e635 transparent transparent;
    z-index: 6;
    filter: drop-shadow(-1px 1px 2px rgba(15, 118, 110, 0.2));
    pointer-events: none;
}

html.has-mp-discount .mp-item-card.mp-sale-card::after {
    content: '%';
    position: absolute;
    top: 0.2rem;
    right: 0.28rem;
    z-index: 7;
    font-size: 0.55rem;
    font-weight: 900;
    color: #14532d;
    line-height: 1;
    pointer-events: none;
}

html.has-mp-discount .mp-item-card .border-t {
    border-color: rgba(45, 212, 191, 0.28) !important;
}

/* Claim buttons subtle glow during sale */
html.has-mp-discount .mp-btn-claim:not(.mp-btn-claim--reserved) {
    position: relative;
}

/* Topup packages / cards during site-wide sale */
html.has-mp-discount .topup-card,
html.has-mp-discount .ff-stat-card {
    border-color: rgba(45, 212, 191, 0.28);
}

html.has-mp-discount .ff-detail-page .ff-stat-card:hover {
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.12);
}

html.has-mp-discount .ff-detail-media {
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow: 0 4px 18px rgba(15, 118, 110, 0.1);
}

html.has-mp-discount .ff-detail-media__badge {
    border-color: rgba(163, 230, 53, 0.65);
    color: #0f766e;
}

html.has-mp-discount .ff-detail-media__badge i {
    color: #0f766e;
}

html.has-mp-discount .ff-detail-thumb.is-active {
    border-color: #0d9488;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

html.has-mp-discount .ff-detail-gallery__note {
    background: #ccfbf1;
    border-color: rgba(45, 212, 191, 0.35);
}

html.has-mp-discount .ff-detail-gallery__note i {
    color: #0f766e;
}

/* Mobile bottom nav subtle tint */
html.has-mp-discount .mobile-bottom-nav,
html.has-mp-discount nav.mobile-nav,
html.has-mp-discount .bottom-nav {
    border-top-color: rgba(45, 212, 191, 0.35);
}

/* GPU-friendly keyframes */
@keyframes mp-disc-shimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

@keyframes mp-disc-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.92;
    }
}

@keyframes mp-disc-float {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.25; }
    50% { transform: translate3d(0, -10px, 0); opacity: 0.55; }
}

@keyframes mp-disc-badge-glow {
    0%, 100% { opacity: 1; box-shadow: 0 2px 8px rgba(163, 230, 53, 0.35); }
    50% { opacity: 0.95; box-shadow: 0 3px 12px rgba(163, 230, 53, 0.5); }
}

@keyframes mp-sale-mesh {
    0% {
        background-position: 0% 0%, 100% 0%, 50% 100%, 40% 50%;
    }
    100% {
        background-position: 8% 6%, 92% 8%, 48% 96%, 60% 45%;
    }
}

@keyframes mp-sale-dots {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-24px, -16px, 0); }
}

@keyframes mp-sale-tab-pulse {
    0%, 100% {
        box-shadow:
            0 2px 10px rgba(15, 118, 110, 0.35),
            0 0 0 1px rgba(163, 230, 53, 0.35);
    }
    50% {
        box-shadow:
            0 2px 14px rgba(15, 118, 110, 0.45),
            0 0 0 2px rgba(163, 230, 53, 0.5);
    }
}

/* —— Mobile: compact single-row banner; keep theme, cut clutter —— */
@media (max-width: 640px) {
    :root {
        --mp-disc-banner-h: calc(2.5rem + env(safe-area-inset-top, 0px));
    }

    .mp-discount-banner {
        box-shadow: 0 4px 16px rgba(15, 118, 110, 0.22);
    }

    .mp-discount-banner__particles {
        display: none;
    }

    .mp-discount-banner__shimmer {
        animation-duration: 2.8s;
        opacity: 0.85;
    }

    .mp-discount-banner__inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.35rem 0.65rem 0.35rem 0.75rem;
        min-height: 2.5rem;
    }

    .mp-discount-banner__badge {
        font-size: 0.68rem;
        padding: 0.14rem 0.45rem;
        gap: 0.2rem;
        animation-duration: 2.8s;
    }

    .mp-discount-banner__badge i {
        font-size: 0.58rem;
    }

    .mp-discount-banner__copy {
        flex: 1 1 auto;
        align-items: flex-start;
        text-align: left;
        overflow: hidden;
    }

    .mp-discount-banner__title--full,
    .mp-discount-banner__sub {
        display: none;
    }

    .mp-discount-banner__title--short {
        display: block;
        font-size: 0.78rem;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .mp-discount-banner__cta--label {
        display: none;
    }

    .mp-discount-banner__cta--chevron {
        display: inline-flex;
    }

    .mp-discount-banner__inner:hover .mp-discount-banner__cta,
    .mp-discount-banner__inner:active .mp-discount-banner__cta {
        transform: none;
        box-shadow: 0 2px 8px rgba(163, 230, 53, 0.3);
    }

    /* Softer atmosphere on mobile (less GPU work) */
    body.mp-sale-event.topup-site::before {
        animation-duration: 24s;
        opacity: 0.9;
    }

    body.mp-sale-event.topup-site::after {
        display: none;
    }

    html.has-mp-discount .mp-item-card.mp-sale-card::before {
        border-width: 0 1.75rem 1.75rem 0;
    }

    html.has-mp-discount .mp-item-card.mp-sale-card::after {
        font-size: 0.5rem;
        top: 0.15rem;
        right: 0.22rem;
    }

    html.has-mp-discount .mp-sale-badge {
        font-size: 0.62rem;
        padding: 0.14rem 0.45rem;
    }

    html.has-mp-discount .topup-mode-tab.active {
        animation: none;
        box-shadow: 0 1px 6px rgba(15, 118, 110, 0.3);
    }
}

/* Very narrow phones */
@media (max-width: 360px) {
    .mp-discount-banner__inner {
        gap: 0.4rem;
        padding-left: 0.55rem;
        padding-right: 0.5rem;
    }

    .mp-discount-banner__badge {
        font-size: 0.62rem;
        padding: 0.12rem 0.38rem;
    }

    .mp-discount-banner__title--short {
        font-size: 0.72rem;
    }

    .mp-discount-banner__cta--chevron {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-discount-banner__shimmer,
    .mp-discount-banner__badge,
    .mp-discount-banner__particles span,
    .mp-sale-badge,
    .mp-sale-badge::after,
    html.has-mp-discount .topup-nav::after,
    html.has-mp-discount .topup-mode-tab.active,
    body.mp-sale-event.topup-site::before,
    body.mp-sale-event.topup-site::after,
    body.mp-sale-event:not(.topup-site):not(.admin-panel)::before {
        animation: none !important;
    }

    .mp-discount-banner__badge,
    .mp-discount-banner__particles span,
    .mp-discount-banner__shimmer,
    body.mp-sale-event.topup-site::before {
        will-change: auto;
    }
}

/* ═══════════════════════════════════════════════════════════
   Limited-time flash deal (per ID)
   ═══════════════════════════════════════════════════════════ */
.mp-flash-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-top: 0.25rem;
    padding: 0.18rem 0.55rem;
    border-radius: 0.4rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 60%, #f59e0b 120%);
    border: 1px solid rgba(254, 202, 202, 0.9);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
    white-space: nowrap;
}

.mp-flash-badge i {
    font-size: 0.62rem;
}

/* Card */
.mp-item-card.mp-flash-card {
    border-color: rgba(249, 115, 22, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25), 0 10px 28px -12px rgba(239, 68, 68, 0.35);
}

.mp-flash-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: -0.25rem 0 0.85rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    font-size: 0.75rem;
    line-height: 1.2;
}

.mp-flash-strip__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #c2410c;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-flash-strip__label i {
    color: #ef4444;
}

.mp-flash-strip__time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

.mp-flash-strip__time i {
    font-size: 0.65rem;
    color: #fdba74;
}

.mp-flash-strip__ended {
    display: none;
    flex-shrink: 0;
    font-weight: 700;
    color: #6b7280;
}

.mp-flash-strip.is-urgent .mp-flash-strip__time {
    background: #dc2626;
    animation: mp-flash-pulse 1s ease-in-out infinite;
}

.mp-flash-strip.is-ended {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.mp-flash-strip.is-ended .mp-flash-strip__time {
    display: none;
}

.mp-flash-strip.is-ended .mp-flash-strip__ended {
    display: inline;
}

/* Details panel */
.mp-flash-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-top: 0.85rem;
    padding: 0.8rem 0.95rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 55%, #fefce8 100%);
    border: 1.5px solid #fdba74;
    box-shadow: 0 6px 20px -10px rgba(239, 68, 68, 0.45);
}

.mp-flash-panel__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.mp-flash-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.mp-flash-panel__text {
    min-width: 0;
}

.mp-flash-panel__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #9a3412;
    line-height: 1.25;
}

.mp-flash-panel__sub {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: #78716c;
    line-height: 1.3;
}

.mp-flash-panel__ended {
    display: none;
}

.mp-flash-panel.is-ended .mp-flash-panel__live {
    display: none;
}

.mp-flash-panel.is-ended .mp-flash-panel__ended {
    display: inline;
    color: #b91c1c;
    font-weight: 700;
}

.mp-flash-clock {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    flex-shrink: 0;
}

.mp-flash-clock__seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.6rem;
    padding: 0.3rem 0.35rem 0.25rem;
    border-radius: 0.55rem;
    background: #111827;
    color: #fff;
}

.mp-flash-clock__seg span {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.mp-flash-clock__seg small {
    font-size: 0.58rem;
    color: #d1d5db;
    line-height: 1.1;
    margin-top: 0.1rem;
}

.mp-flash-clock__sep {
    align-self: center;
    margin-top: -0.6rem;
    font-weight: 800;
    color: #c2410c;
}

.mp-flash-panel.is-urgent .mp-flash-clock__seg {
    background: #dc2626;
}

.mp-flash-panel.is-urgent .mp-flash-clock__seg span {
    animation: mp-flash-pulse 1s ease-in-out infinite;
}

/* Sticky buy bar */
.mp-flash-mini {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.mp-flash-mini .mp-flash-badge {
    margin-top: 0;
    padding: 0.1rem 0.4rem;
    font-size: 0.62rem;
}

.mp-flash-mini__time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #c2410c;
    font-variant-numeric: tabular-nums;
}

.mp-flash-mini.is-ended .mp-flash-mini__time {
    color: #6b7280;
}

@keyframes mp-flash-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@media (max-width: 480px) {
    .mp-flash-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .mp-flash-clock {
        justify-content: center;
    }

    .mp-flash-clock__seg {
        flex: 1;
        max-width: 5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-flash-strip.is-urgent .mp-flash-strip__time,
    .mp-flash-panel.is-urgent .mp-flash-clock__seg span {
        animation: none !important;
    }
}

/* Dark chrome pages (non topup-site): extra top pad when banner is fixed */
html.has-mp-discount main.has-mp-disc-pad {
    padding-top: calc(86px + var(--mp-disc-banner-h)) !important;
}
