/* ========================================================================
   7KS lobby revamp — dark/gold aether-style theme
   Loaded AFTER style.css and response.css, so most rules can be plain.
   ======================================================================== */

:root {
    --rv-bg: #060606;
    --rv-bg-soft: #101010;
    --rv-panel: rgba(13, 13, 13, 0.92);
    --rv-panel-flat: #0d0d0d;
    --rv-line: rgba(255, 207, 50, 0.22);
    --rv-line-soft: rgba(255, 207, 50, 0.10);
    --rv-gold: #ffcc33;
    --rv-gold-hi: #ffe070;
    --rv-gold-lo: #d99300;
    --rv-gold-grad: linear-gradient(180deg, #ffe070 0%, #f0a420 100%);
    --rv-gold-grad-hover: linear-gradient(180deg, #ffe98c 0%, #ffb01f 100%);
    --rv-red: #ff4c35;
    --rv-text: #f6ecc7;
    --rv-text-strong: #ffffff;
    --rv-muted: rgba(246, 236, 199, 0.62);
    --rv-shadow-card: 0 14px 32px rgba(0, 0, 0, 0.45);
    --rv-shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.28);
    --rv-radius: 14px;
    --rv-radius-lg: 22px;
    --rv-radius-pill: 999px;
    --rv-container: 1400px;
}

/* -------- Base / page bg -------- */
html,
body {
    background-color: var(--rv-bg) !important;
    color: var(--rv-text);
    overflow-x: hidden !important;
    max-width: 100vw;
    min-width: 0 !important;
}

body {
    background-image:
        radial-gradient(ellipse at 50% -10%, rgba(255, 207, 50, 0.08), transparent 60%),
        radial-gradient(ellipse at 50% 110%, rgba(0, 80, 40, 0.18), transparent 65%),
        linear-gradient(180deg, #050505 0%, #0a0a0a 60%, #060606 100%) !important;
    background-attachment: fixed, fixed, fixed !important;
    background-size: auto, auto, auto !important;
}

* { box-sizing: border-box; }

/* Hide stale curved-text + trophy panel that didn't match the new layout. */
.popular-game {
    display: none !important;
}

/* ============================================================
   HEADER
   ============================================================ */

.revamp-header,
header.header.pc.revamp-header,
.header.revamp-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 90 !important;
    height: 86px !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.78) 100%) !important;
    border-bottom: 1px solid var(--rv-line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.revamp-header__inner {
    height: 100%;
    width: min(100% - 32px, var(--rv-container));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.revamp-header .logo {
    display: inline-flex;
    align-items: center;
    height: 64px;
    flex: 0 0 auto;
}

.revamp-header .logo img {
    max-height: 60px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 14px rgba(255, 207, 50, 0.35));
}

.revamp-header__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* -- Quick action icon CTAs (deposit / withdraw / promos) -- */
.revamp-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.revamp-action {
    background: transparent;
    border: 0;
    color: var(--rv-text);
    cursor: pointer;
    padding: 6px 14px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 12px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.revamp-action:hover {
    background: rgba(255, 207, 50, 0.08);
    transform: translateY(-1px);
}

.revamp-action__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 207, 50, 0.18), rgba(255, 207, 50, 0.06));
    border: 1px solid var(--rv-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rv-gold);
    font-size: 18px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.revamp-action__label {
    color: var(--rv-text);
    text-shadow: none;
}

/* -- Balance widget (logged in) -- */
.revamp-balance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    background: rgba(255, 207, 50, 0.08);
    border: 1px solid var(--rv-line);
    border-radius: var(--rv-radius-pill);
    color: var(--rv-text);
    min-height: 42px;
}

.revamp-balance__coin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rv-gold-grad);
    color: #1a1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.revamp-balance__amount {
    font-weight: 800;
    font-size: 15px;
    min-width: 40px;
    letter-spacing: 0.3px;
    color: var(--rv-gold);
}

.revamp-balance__refresh {
    background: transparent;
    border: 0;
    color: var(--rv-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.18s ease, transform 0.18s ease;
}

.revamp-balance__refresh:hover {
    color: var(--rv-gold);
    transform: rotate(45deg);
}

.revamp-balance .spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 207, 50, 0.25);
    border-top-color: var(--rv-gold);
    animation: rv-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes rv-spin {
    to { transform: rotate(360deg); }
}

.revamp-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--rv-gold);
    background: linear-gradient(180deg, rgba(255, 207, 50, 0.2), rgba(0, 0, 0, 0.5));
    color: var(--rv-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.18s ease;
}

.revamp-user-avatar:hover { transform: scale(1.06); }

/* -- Pill buttons (login / register) -- */
.revamp-btn,
.header .el-button.revamp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px !important;
    height: 42px !important;
    padding: 0 22px !important;
    border-radius: var(--rv-radius-pill) !important;
    border: 1px solid rgba(255, 207, 50, 0.6) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    line-height: 42px !important;
    color: var(--rv-text-strong) !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.revamp-btn--gold,
.header .el-button.revamp-btn--gold {
    background: var(--rv-gold-grad) !important;
    color: #1a1100 !important;
    border-color: transparent !important;
    box-shadow: 0 6px 14px rgba(240, 164, 32, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.15) !important;
}

.revamp-btn--ghost,
.header .el-button.revamp-btn--ghost {
    background: rgba(255, 207, 50, 0.08) !important;
    color: var(--rv-gold) !important;
    border-color: var(--rv-line) !important;
}

.revamp-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

.revamp-btn--gold:hover,
.header .el-button.revamp-btn--gold:hover {
    background: var(--rv-gold-grad-hover) !important;
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */

.revamp-announcement {
    width: min(100% - 32px, var(--rv-container));
    margin: 86px auto 0;
    height: 42px;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    color: var(--rv-text);
    background:
        linear-gradient(90deg, rgba(255, 199, 79, 0.06), rgba(255, 199, 79, 0) 35%, rgba(255, 199, 79, 0) 65%, rgba(255, 199, 79, 0.06)),
        linear-gradient(180deg, rgba(20, 14, 4, 0.95), rgba(8, 6, 2, 0.95));
    border: 1px solid rgba(255, 199, 79, 0.22);
    border-radius: 999px;
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    font-size: 13.5px;
    padding-left: 4px;
}

/* Hero hugs the bar with a slim gap. */
.revamp-announcement + .revamp-hero,
.revamp-announcement + .banner-game.revamp-hero,
.revamp-announcement + .banner-container.revamp-hero {
    margin-top: 14px !important;
    clear: both;
}

.revamp-announcement__icon {
    color: #0c0a04;
    background: linear-gradient(180deg, #ffd56b, #f0a82c);
    border-radius: 999px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    margin-left: 6px;
    flex-shrink: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.revamp-announcement__viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.revamp-announcement__track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    min-width: max-content;
    animation: revamp-marquee 90s linear infinite;
    white-space: nowrap;
    color: var(--rv-text);
    font-weight: 500;
    letter-spacing: 0.01em;
    padding-left: 12px;
    will-change: transform;
}

.revamp-announcement:hover .revamp-announcement__track {
    animation-play-state: paused;
}

.revamp-announcement__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 199, 79, 0.55);
    flex-shrink: 0;
    display: inline-block;
}

@keyframes revamp-marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .revamp-announcement__track { animation-duration: 240s; }
}

/* Hide legacy in-hero marquee overlay — replaced by the new announcement bar. */
.revamp-hero .marquee-box,
.banner-container.revamp-hero .marquee-box,
.banner-game.revamp-hero .marquee-box {
    display: none !important;
}

/* ============================================================
   HERO BANNER
   ============================================================ */

.revamp-hero {
    width: min(100% - 32px, var(--rv-container)) !important;
    margin: 22px auto 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: var(--rv-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--rv-shadow-card), 0 0 0 1px var(--rv-line);
}

.banner-game.revamp-hero,
.banner-game .banner-container,
.banner-container.revamp-hero,
.banner-game {
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: min(100% - 32px, var(--rv-container)) !important;
    min-width: 0 !important;
    max-width: min(100% - 32px, var(--rv-container)) !important;
    margin: 22px auto 0 !important;
    border-radius: var(--rv-radius-lg) !important;
    background: transparent !important;
    padding: 0 !important;
}

.revamp-hero .banner,
.revamp-hero .banner-swap {
    position: relative;
    overflow: hidden;
    border-radius: var(--rv-radius-lg);
}

.revamp-hero .swiper-wrapper { align-items: stretch; }

.revamp-hero .swiper-item {
    padding-bottom: 36% !important;
    border-radius: var(--rv-radius-lg);
    overflow: hidden;
}

.revamp-hero .swiper-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: var(--rv-radius-lg) !important;
    filter: none !important;
}

/* Marquee (legacy) restyled to dark theme */
.marquee-box {
    display: flex !important;
    width: min(100% - 32px, var(--rv-container));
    margin: 16px auto 0 !important;
    background: var(--rv-panel) !important;
    border: 1px solid var(--rv-line);
    border-radius: var(--rv-radius);
    padding: 8px 16px !important;
    color: var(--rv-text);
    overflow: hidden;
    height: auto !important;
}

.marquee-box-swap {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: 100%;
    overflow: hidden;
}

.marquee-box-swap .icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    background: var(--rv-gold-grad);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 11v2l9 4V7L3 11zm12-1h2v4h-2v-4zm3.5 0 2.5-1.5v7L18.5 14V10z'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 11v2l9 4V7L3 11zm12-1h2v4h-2v-4zm3.5 0 2.5-1.5v7L18.5 14V10z'/></svg>") no-repeat center / contain;
}

.marquee-box .marquee {
    flex: 1;
    display: flex;
    gap: 64px;
    white-space: nowrap;
    animation: revamp-marquee 38s linear infinite;
    min-width: max-content;
    color: var(--rv-text);
    font-size: 13px;
    font-weight: 600;
}

.marquee-box .marquee p { margin: 0; padding-right: 8px; }

/* ============================================================
   PROVIDER / CATEGORY TABS
   ============================================================ */

.channel-container,
.channel-container.channel-container-pc {
    width: min(100% - 32px, var(--rv-container)) !important;
    min-width: 0 !important;
    max-width: min(100% - 32px, var(--rv-container)) !important;
    margin: 26px auto 6px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: 10 !important;
}

.channel-bar,
.channel-bar-pc {
    height: auto !important;
    min-height: 64px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    background: var(--rv-panel) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    box-shadow: var(--rv-shadow-soft) !important;
    display: flex !important;
    align-items: center;
    padding: 0 !important;
    overflow: hidden;
}

.channel-bar + .channel-bar,
.channel-bar-pc + .channel-bar-pc,
.channel-bar.provider-channel {
    margin-top: 10px !important;
    min-height: 58px !important;
    background: rgba(20, 20, 20, 0.7) !important;
}

.channel-container .channel-wrap {
    height: auto !important;
    top: 0 !important;
    flex: 1;
    overflow-x: auto !important;
    overflow-y: hidden;
    scrollbar-width: none;
}

.channel-container .channel-wrap::-webkit-scrollbar { display: none; }

.channel-container .channels {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 16px;
    width: max-content;
    min-width: 100%;
    margin: 0 auto;
}

.channel-bar:not(.provider-channel) .channels {
    justify-content: center;
}

.link,
.s-link {
    width: auto !important;
    min-width: 96px;
    height: 44px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    border-radius: var(--rv-radius-pill) !important;
    border: 1px solid var(--rv-line) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--rv-text) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    line-height: 44px !important;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
}

.link:hover,
.s-link:hover {
    background: rgba(255, 207, 50, 0.10) !important;
    color: var(--rv-gold) !important;
    border-color: rgba(255, 207, 50, 0.4) !important;
}

.link.active,
.s-link.active {
    background: var(--rv-gold-grad) !important;
    color: #1a1100 !important;
    border-color: transparent !important;
    box-shadow: 0 6px 14px rgba(240, 164, 32, 0.30), inset 0 -2px 0 rgba(0, 0, 0, 0.18) !important;
    text-shadow: none !important;
}

/* B) Icon-pill category tabs — icons injected as <i class="rv-tab-ico"> in the Blade,
   so we don't have to fight the legacy `::before { content: "" }` rule. */
.link,
.s-link {
    flex-direction: row !important;
    gap: 8px !important;
}

.rv-tab-ico {
    font-size: 14px;
    color: var(--rv-gold);
    line-height: 1;
    flex-shrink: 0;
}

.link.active .rv-tab-ico,
.s-link.active .rv-tab-ico {
    color: #1a1100;
}

.rv-tab-label {
    line-height: 1;
}

.s-link img,
.s-link-img img {
    max-height: 26px !important;
    max-width: 84px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

.s-link-img {
    height: 26px;
    display: inline-flex;
    align-items: center;
}

.search-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 10px 12px 10px 4px !important;
    border-radius: 50% !important;
    border: 1px solid var(--rv-line) !important;
    background: rgba(255, 207, 50, 0.10) !important;
    color: var(--rv-gold) !important;
    cursor: pointer;
    position: relative;
}

.search-btn::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.slide-arrow {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0 4px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid var(--rv-line) !important;
    color: var(--rv-gold) !important;
    cursor: pointer;
    position: relative;
}

.slide-arrow::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--rv-gold);
}

.slide-arrow-prev::before { content: "\f053"; }
.slide-arrow-next::before { content: "\f054"; }

/* ============================================================
   GAME GRID
   ============================================================ */

.van-list .game-list-container-pc,
.van-list .game-list-container {
    width: min(100% - 32px, var(--rv-container)) !important;
    min-width: 0 !important;
    max-width: min(100% - 32px, var(--rv-container)) !important;
    margin: 18px auto 40px !important;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Neutralize any legacy fixed-width on the lobby host */
#gameLobby, .van-list {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* A) Square tiles + gold bevel frame */
.van-list .game-list-container-pc .game-card,
.van-list .game-list-container .game-card,
.van-list .game-card-box {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 18px !important;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1408 0%, #050505 100%) !important;
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(255, 207, 50, 0.45),
        inset 0 0 0 3px rgba(0, 0, 0, 0.5),
        inset 0 0 18px rgba(255, 175, 30, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    position: relative;
    cursor: pointer;
    isolation: isolate;
}

/* Outer gold rim highlight */
.van-list .game-card::before,
.van-list .game-card-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 224, 112, 0.45) 0%, transparent 25%, transparent 75%, rgba(255, 175, 30, 0.35) 100%);
    mix-blend-mode: screen;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.22s ease;
}

.van-list .game-card:hover::before,
.van-list .game-card-box:hover::before {
    opacity: 1;
}

.van-list .game-list-container-pc .game-card:hover,
.van-list .game-list-container .game-card:hover,
.van-list .game-card-box:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 24px 44px rgba(0, 0, 0, 0.65),
        inset 0 0 0 1px rgba(255, 224, 112, 0.75),
        inset 0 0 0 3px rgba(0, 0, 0, 0.5),
        inset 0 0 28px rgba(255, 175, 30, 0.25);
    filter: brightness(1.05);
}

.van-list .game-list-container-pc .game-card-img,
.van-list .game-list-container .game-card-img,
.van-list .game-list-container-pc .game-img,
.van-list .game-list-container .game-img {
    width: calc(100% - 8px) !important;
    height: calc(100% - 8px) !important;
    margin: 4px !important;
    border-radius: 14px !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: var(--rv-panel-flat);
    z-index: 1;
    position: relative;
}

.van-list .layer-img,
.van-list .fav,
.van-list .conner {
    display: none !important;
}

/* ============================================================
   BANK / PAYMENT STRIP
   ============================================================ */

.revamp-payments {
    width: min(100% - 32px, var(--rv-container));
    margin: 36px auto 0;
    padding: 22px 0;
    border-top: 1px solid var(--rv-line);
    border-bottom: 1px solid var(--rv-line);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 26px;
}

.revamp-payments__item {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rv-panel-flat);
    border: 1px solid var(--rv-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rv-gold);
    font-size: 22px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.revamp-payments__item:hover {
    transform: translateY(-3px);
    border-color: var(--rv-gold);
}

/* ============================================================
   FOOTER
   ============================================================ */

.revamp-site-footer {
    width: 100%;
    margin: 30px auto 0;
    padding: 40px 24px 130px;
    color: var(--rv-muted);
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 207, 50, 0.06), transparent 60%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    font-size: 14px;
}

.revamp-footer-inner { max-width: 960px; margin: 0 auto; }

.revamp-footer-logo {
    display: inline-flex;
    margin-bottom: 18px;
}

.revamp-footer-logo img {
    max-height: 64px;
    width: auto;
    filter: drop-shadow(0 4px 14px rgba(255, 207, 50, 0.35));
}

.revamp-site-footer p {
    margin: 6px auto;
    max-width: 780px;
    line-height: 1.55;
}

.revamp-footer-copy {
    color: var(--rv-text);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.revamp-footer-blurb {
    color: var(--rv-muted);
    font-size: 13px;
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */

.revamp-bottom-nav {
    background: rgba(0, 0, 0, 0.9) !important;
    border-top: 1px solid var(--rv-line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 60;
}

.menu-container-pc.revamp-bottom-nav {
    display: none !important;
}

.revamp-bottom-nav .menu-box,
.revamp-bottom-nav .menu-list {
    background: transparent !important;
    border: 0 !important;
}

.revamp-bottom-nav .menu-list {
    width: min(100%, 1100px);
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.revamp-bottom-nav .menu-btn {
    color: var(--rv-text) !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 12px !important;
    font-weight: 700;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 64px;
    cursor: pointer;
}

.revamp-bottom-nav .menu-icon-fa {
    color: var(--rv-gold);
    font-size: 20px;
    margin-bottom: 2px;
}

.revamp-bottom-nav .menu-text {
    color: var(--rv-text) !important;
    text-shadow: none !important;
    line-height: 1.1 !important;
    font-size: 11px !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media only screen and (max-width: 1100px) {
    .van-list .game-list-container-pc,
    .van-list .game-list-container {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

@media only screen and (max-width: 810px) {
    .revamp-header { height: 64px; }
    .revamp-header__inner { padding: 0 4px; gap: 10px; }
    .revamp-header .logo { height: 48px; }
    .revamp-header .logo img { max-height: 44px; }
    .revamp-actions { display: none; }

    .revamp-balance {
        padding: 4px 10px 4px 6px;
        min-height: 36px;
    }
    .revamp-balance__coin { width: 22px; height: 22px; font-size: 11px; }
    .revamp-balance__amount { font-size: 13px; }
    .revamp-user-avatar { width: 36px; height: 36px; font-size: 14px; }

    .revamp-btn,
    .header .el-button.revamp-btn {
        min-width: 80px !important;
        height: 34px !important;
        line-height: 34px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    .revamp-announcement {
        margin-top: 64px;
        height: 36px;
        font-size: 12px;
        width: calc(100% - 16px);
        gap: 8px;
    }
    .revamp-announcement__icon { font-size: 11px; width: 24px; height: 24px; margin-left: 5px; padding: 0; }
    .revamp-announcement__track { animation-duration: 70s; gap: 22px; padding-left: 10px; }

    .banner-game.revamp-hero,
    .banner-game .banner-container,
    .banner-container.revamp-hero,
    .revamp-hero {
        margin-top: 14px !important;
        border-radius: 14px !important;
        width: calc(100% - 16px) !important;
    }
    .revamp-hero .swiper-item { padding-bottom: 50% !important; }

    .channel-container,
    .channel-container-pc {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        margin: 14px auto 8px !important;
    }
    .channel-bar,
    .channel-bar-pc { min-height: 54px !important; }

    .channel-container .channels {
        gap: 8px;
        padding: 8px 12px;
        justify-content: flex-start;
    }

    .link,
    .s-link {
        min-width: 78px;
        height: 36px !important;
        line-height: 36px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }
    .s-link img,
    .s-link-img img { max-height: 20px !important; max-width: 64px; }

    .van-list .game-list-container-pc,
    .van-list .game-list-container {
        width: calc(100% - 16px) !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-top: 12px !important;
        margin-bottom: 16px !important;
    }

    .revamp-payments { width: calc(100% - 16px); gap: 12px 16px; padding: 16px 0; }
    .revamp-payments__item { width: 42px; height: 42px; font-size: 18px; }

    .revamp-site-footer { padding: 24px 16px 110px; font-size: 12px; }
    .revamp-footer-logo img { max-height: 48px; }
}

@media only screen and (max-width: 420px) {
    .van-list .game-list-container-pc,
    .van-list .game-list-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .revamp-balance__amount { min-width: 30px; }
}

/* ============================================================
 * Aether-style dark/gold popup overrides
 * Replaces the legacy cartoon "Game Start!" border-image cards
 * with the same panel language used elsewhere in the revamp.
 * Append-only. All rules scoped to popup containers.
 * ============================================================ */

/* ----- Backdrop / dim overlay ------------------------------ */
body.popup-open::before,
body.modal-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 2, 2, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 998;
    pointer-events: none;
}

/* ----- Core popup container -------------------------------- */
.popup,
.popup.popup-account,
.popup.popup-payment,
.popup.popup-agency,
.popup.popup-profile,
.popup.popup-notify,
.popup.popup-history,
.popup.popup-bankinfo,
.popup.popup-activate,
.popup.popup-password {
    border-image: none !important;
    border-image-source: none !important;
    border-image-slice: 0 !important;
    border-image-width: 0 !important;
    border-image-outset: 0 !important;
    border-image-repeat: stretch !important;
    background: var(--rv-panel) !important;
    background-image: linear-gradient(180deg, rgba(20, 20, 20, 0.96) 0%, rgba(10, 10, 10, 0.96) 100%) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius-lg) !important;
    box-shadow: var(--rv-shadow-card), 0 0 0 1px rgba(255, 207, 50, 0.08) !important;
    padding: 0 !important;
    color: var(--rv-text) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

.popup::before,
.popup::after { display: none !important; }

/* ----- Header (was orange cartoon banner) ------------------ */
.popup .p-header,
.p-header {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    overflow: visible !important;
    height: auto !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 14px 56px 14px 20px !important;
    margin: 0 !important;
    background: linear-gradient(180deg, rgba(255, 207, 50, 0.10) 0%, rgba(255, 207, 50, 0.02) 100%) !important;
    border-bottom: 1px solid var(--rv-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    color: var(--rv-gold) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.4px !important;
}

.popup .p-header::before,
.popup .p-header::after,
.p-header::before,
.p-header::after { display: none !important; }

/* Header inner box and the stroke-text title */
.popup .header-box,
.header-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    color: var(--rv-gold) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.popup .stroke-text-container,
.stroke-text-container {
    background: none !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    color: var(--rv-gold) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.4px !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
}

.popup .stroke-text-container .stroke-text,
.stroke-text-container .stroke-text,
.popup .stroke-text {
    color: var(--rv-gold) !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--rv-gold) !important;
}

/* ----- Close buttons (top X and footer close) -------------- */
.popup .close-top,
.popup .btn-close,
.close-top,
.btn-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--rv-line) !important;
    color: var(--rv-text) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 5 !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.popup .close-top:hover,
.popup .btn-close:hover,
.close-top:hover,
.btn-close:hover {
    background: rgba(255, 207, 50, 0.18) !important;
    border-color: var(--rv-gold) !important;
    color: var(--rv-gold) !important;
}

.popup .close-top img,
.popup .btn-close img,
.close-top img,
.btn-close img { display: none !important; }

.popup .close-top::before,
.popup .btn-close::before,
.close-top::before,
.btn-close::before {
    content: "\f00d";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
}

.popup .close-footer,
.close-footer {
    background: transparent !important;
    padding: 14px 20px 18px !important;
    border-top: 1px solid var(--rv-line) !important;
    display: flex !important;
    justify-content: center !important;
}

.popup .close-footer .btn-close,
.close-footer .btn-close {
    position: static !important;
    width: auto !important;
    height: 42px !important;
    min-width: 140px !important;
    border-radius: var(--rv-radius-pill) !important;
    padding: 0 24px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--rv-line) !important;
    color: var(--rv-text) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.popup .close-footer .btn-close::before,
.close-footer .btn-close::before { display: none !important; }

/* ----- Tab toggle (sign-in / sign-up pills) ---------------- */
.popup .tab-btn,
.tab-btn {
    background: transparent !important;
    border: 1px solid var(--rv-line) !important;
    color: var(--rv-muted) !important;
    border-radius: var(--rv-radius-pill) !important;
    padding: 8px 22px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.3px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    cursor: pointer !important;
}

.popup .tab-btn.active,
.tab-btn.active {
    background: var(--rv-gold-grad) !important;
    border-color: transparent !important;
    color: #1a1200 !important;
    box-shadow: 0 4px 12px rgba(255, 207, 50, 0.28) !important;
}

.popup .tab-btn:not(.active):hover,
.tab-btn:not(.active):hover {
    color: var(--rv-gold) !important;
    border-color: var(--rv-gold) !important;
}

/* Account container that hosts the forms */
.popup .popup-account-container,
.popup-account-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    color: var(--rv-text) !important;
}

/* The wood-tab buttons row above the form */
.popup .tab-content,
.tab-content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* ----- Form rows: input-container / input-wrap ------------ */
.popup .input-container,
.popup .input-wrap,
.popup .form-group,
.input-container,
.input-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    position: relative !important;
}

.popup .input-container input,
.popup .input-wrap input,
.popup .form-group input[type="text"],
.popup .form-group input[type="password"],
.popup .form-group input[type="tel"],
.popup .form-group input[type="number"],
.popup .form-group input[type="email"],
.popup .form-group textarea,
.popup .form-group select,
.input-container input,
.input-wrap input {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px 0 44px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    background-image: none !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    color: var(--rv-text-strong) !important;
    font-size: 14px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.popup .input-container input:focus,
.popup .input-wrap input:focus,
.popup .form-group input:focus,
.popup .form-group textarea:focus,
.popup .form-group select:focus,
.input-container input:focus,
.input-wrap input:focus {
    border-color: var(--rv-gold) !important;
    background: rgba(255, 207, 50, 0.05) !important;
}

.popup .input-container input::placeholder,
.popup .input-wrap input::placeholder,
.popup .form-group input::placeholder,
.input-container input::placeholder,
.input-wrap input::placeholder {
    color: var(--rv-muted) !important;
    opacity: 1 !important;
}

/* Hide the cartoon prefix sprite icons and inject FA glyphs */
.popup .input-container .icon,
.popup .input-wrap .icon,
.input-container .icon,
.input-wrap .icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 22px !important;
    height: 22px !important;
    background-image: none !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--rv-gold) !important;
    font-size: 14px !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.popup .input-container .icon::before,
.popup .input-wrap .icon::before,
.input-container .icon::before,
.input-wrap .icon::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    display: inline-block;
    color: var(--rv-gold);
    font-size: 14px;
    line-height: 1;
}

.popup .input-container.user .icon::before,
.popup .input-wrap.user .icon::before,
.popup .input-container .icon.user::before,
.popup .input-wrap .icon.user::before,
.popup .input-container .icon.icon-user::before,
.popup .input-wrap .icon.icon-user::before { content: "\f007"; }

.popup .input-container.pwd .icon::before,
.popup .input-wrap.pwd .icon::before,
.popup .input-container .icon.pwd::before,
.popup .input-wrap .icon.pwd::before,
.popup .input-container .icon.icon-pwd::before,
.popup .input-container .icon.icon-password::before,
.popup .input-wrap .icon.icon-pwd::before,
.popup .input-wrap .icon.icon-password::before { content: "\f023"; }

.popup .input-container.phone .icon::before,
.popup .input-wrap.phone .icon::before,
.popup .input-container .icon.phone::before,
.popup .input-container .icon.icon-phone::before,
.popup .input-wrap .icon.phone::before,
.popup .input-wrap .icon.icon-phone::before { content: "\f095"; }

.popup .input-container.code .icon::before,
.popup .input-wrap.code .icon::before,
.popup .input-container .icon.code::before,
.popup .input-container .icon.icon-code::before,
.popup .input-wrap .icon.code::before,
.popup .input-wrap .icon.icon-code::before { content: "\f084"; }

.popup .input-container.invite .icon::before,
.popup .input-wrap.invite .icon::before,
.popup .input-container .icon.invite::before,
.popup .input-container .icon.icon-invite::before,
.popup .input-wrap .icon.invite::before,
.popup .input-wrap .icon.icon-invite::before { content: "\f234"; }

.popup .input-container.bank .icon::before,
.popup .input-wrap.bank .icon::before,
.popup .input-container .icon.bank::before,
.popup .input-container .icon.icon-bank::before,
.popup .input-wrap .icon.bank::before,
.popup .input-wrap .icon.icon-bank::before { content: "\f19c"; }

.popup .input-container.money .icon::before,
.popup .input-wrap.money .icon::before,
.popup .input-container .icon.money::before,
.popup .input-container .icon.icon-money::before,
.popup .input-wrap .icon.money::before,
.popup .input-wrap .icon.icon-money::before { content: "\f155"; }

/* Generic fallback glyph if class isn't recognised */
.popup .input-container .icon:not(.user):not(.pwd):not(.phone):not(.code):not(.invite):not(.bank):not(.money):not(.icon-user):not(.icon-pwd):not(.icon-password):not(.icon-phone):not(.icon-code):not(.icon-invite):not(.icon-bank):not(.icon-money)::before,
.popup .input-wrap .icon:not(.user):not(.pwd):not(.phone):not(.code):not(.invite):not(.bank):not(.money):not(.icon-user):not(.icon-pwd):not(.icon-password):not(.icon-phone):not(.icon-code):not(.icon-invite):not(.icon-bank):not(.icon-money)::before {
    content: "\f111";
    font-size: 6px;
    opacity: 0.5;
}

/* Trailing buttons inside input rows (e.g. send-code) */
.popup .input-container .send-code,
.popup .input-wrap .send-code,
.popup .input-container .code-btn,
.popup .input-wrap .code-btn {
    background: var(--rv-gold-grad) !important;
    color: #1a1200 !important;
    border: none !important;
    border-radius: var(--rv-radius-pill) !important;
    padding: 0 14px !important;
    height: 36px !important;
    min-width: 96px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    box-shadow: 0 4px 10px rgba(255, 207, 50, 0.22) !important;
    margin-left: 8px !important;
    cursor: pointer !important;
}

/* ----- Forget password link ------------------------------- */
.popup .forget,
.forget {
    display: flex !important;
    justify-content: flex-end !important;
    margin: -4px 0 14px !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--rv-muted) !important;
    font-size: 12px !important;
}

.popup .forget a,
.forget a {
    color: var(--rv-muted) !important;
    text-decoration: none !important;
    transition: color 0.18s ease;
}

.popup .forget a:hover,
.forget a:hover { color: var(--rv-gold) !important; }

/* ----- Primary submit button ------------------------------ */
.popup .submit,
.popup button.submit,
.popup .submit-btn,
.popup .form-signin .submit,
.popup .form-signup .submit,
.submit {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    margin: 6px 0 0 !important;
    padding: 0 22px !important;
    background: var(--rv-gold-grad) !important;
    background-image: var(--rv-gold-grad) !important;
    border: none !important;
    border-radius: var(--rv-radius-pill) !important;
    color: #1a1200 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.4px !important;
    box-shadow: 0 6px 16px rgba(255, 207, 50, 0.28) !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    cursor: pointer !important;
    transition: filter 0.18s ease, transform 0.06s ease;
}

.popup .submit:hover,
.submit:hover { filter: brightness(1.05); }
.popup .submit:active,
.submit:active { transform: translateY(1px); }
.popup .submit:disabled,
.submit:disabled { filter: grayscale(0.4) brightness(0.85); cursor: not-allowed; }

/* ----- Sign-in / Sign-up form wrappers -------------------- */
.popup .form-signin,
.popup .form-signup,
.form-signin,
.form-signup {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 0 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: block !important;
}

/* Only the active tab's form is rendered IN THE AUTH POPUP (which has
   both .form-signin AND .form-signup side-by-side under .popup-account
   -container). Standalone .form-signup forms in other popups (Password,
   etc.) are unaffected by this rule. */
.popup-account-container .form-signin,
.popup-account-container .form-signup {
    display: none !important;
}

.popup-account-container .form-signin.active,
.popup-account-container .form-signup.active {
    display: block !important;
}

/* ----- Profile / userinfo popup --------------------------- */
.popup-form.popup-profile,
.popup-form.popup-reward,
.popup-form.popup-history,
.popup .popup-userinfo-container,
.popup-userinfo-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    color: var(--rv-text) !important;
}

.popup-form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ----- Deposit / payment form ----------------------------- */
.popup .payment-form-container,
.payment-form-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 0 0 !important;
    margin: 0 !important;
    color: var(--rv-text) !important;
}

.popup .payment-form-container .form-group,
.payment-form-container .form-group {
    margin-bottom: 14px !important;
    background: transparent !important;
}

.popup .payment-form-container label,
.payment-form-container label,
.popup .form-group label {
    display: block !important;
    color: var(--rv-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    background: transparent !important;
}

.popup .amount-suggestion,
.amount-suggestion {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 6px 0 8px !important;
}

.popup .amount-suggestion .el-button,
.amount-suggestion .el-button,
.popup .amount-suggestion button {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--rv-line) !important;
    color: var(--rv-text) !important;
    border-radius: var(--rv-radius-pill) !important;
    padding: 6px 14px !important;
    height: 32px !important;
    min-width: 64px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    box-shadow: none !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.popup .amount-suggestion .el-button:hover,
.amount-suggestion .el-button:hover {
    border-color: var(--rv-gold) !important;
    color: var(--rv-gold) !important;
}

.popup .amount-suggestion .el-button.is-active,
.popup .amount-suggestion .el-button.selected,
.amount-suggestion .el-button.is-active,
.amount-suggestion .el-button.selected {
    background: var(--rv-gold-grad) !important;
    color: #1a1200 !important;
    border-color: transparent !important;
}

/* Element UI select used inside payment form */
.popup .el-select,
.popup .el-input,
.el-select.white-select .el-input__inner,
.popup .el-input__inner {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    color: var(--rv-text-strong) !important;
    height: 44px !important;
    line-height: 44px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}

.popup .el-input__inner::placeholder {
    color: var(--rv-muted) !important;
}

.popup .el-input__suffix,
.popup .el-input__icon {
    color: var(--rv-muted) !important;
}

.el-select-dropdown.el-popper {
    background: var(--rv-panel-flat) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    box-shadow: var(--rv-shadow-card) !important;
    color: var(--rv-text) !important;
}

.el-select-dropdown__item {
    color: var(--rv-text) !important;
}

.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover {
    background: rgba(255, 207, 50, 0.10) !important;
    color: var(--rv-gold) !important;
}

.el-select-dropdown__item.selected {
    background: rgba(255, 207, 50, 0.16) !important;
    color: var(--rv-gold) !important;
    font-weight: 600 !important;
}

/* ----- Bank info form ------------------------------------- */
.popup .bank-form-container,
.bank-form-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 0 0 !important;
    color: var(--rv-text) !important;
}

.popup .bank-form-container .form-group,
.bank-form-container .form-group { margin-bottom: 14px !important; }

/* ----- History list --------------------------------------- */
.popup .history-list,
.history-list {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.popup .history-item,
.history-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    padding: 12px 14px !important;
    margin: 0 0 10px !important;
    color: var(--rv-text) !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.popup .history-item .amount,
.history-item .amount {
    color: var(--rv-gold) !important;
    font-weight: 700 !important;
}

.popup .history-item .status,
.history-item .status {
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: var(--rv-radius-pill) !important;
    background: rgba(255, 207, 50, 0.14) !important;
    color: var(--rv-gold) !important;
}

/* ----- Activity / reward list ----------------------------- */
.popup .active-list,
.active-list {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 12px !important;
}

.popup .active-card,
.active-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    padding: 14px !important;
    color: var(--rv-text) !important;
    box-shadow: none !important;
}

.popup .active-card .title,
.active-card .title {
    color: var(--rv-gold) !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
    font-size: 14px !important;
}

/* ----- Agency / affiliate list ---------------------------- */
.popup .agency-list,
.agency-list {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.popup .agency-item,
.agency-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    padding: 12px 14px !important;
    color: var(--rv-text) !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.popup .agency-item .label,
.agency-item .label {
    color: var(--rv-muted) !important;
    font-size: 12px !important;
}

.popup .agency-item .value,
.agency-item .value {
    color: var(--rv-text-strong) !important;
    font-weight: 600 !important;
}

/* ----- Operations row (copy / share / etc) ---------------- */
.popup .oper-line,
.oper-line {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    background: transparent !important;
    padding: 8px 0 !important;
    margin: 0 0 6px !important;
    border: none !important;
}

.popup .oper-btn,
.oper-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--rv-line) !important;
    color: var(--rv-text) !important;
    border-radius: var(--rv-radius-pill) !important;
    padding: 6px 14px !important;
    min-height: 32px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    box-shadow: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.popup .oper-btn:hover,
.oper-btn:hover {
    border-color: var(--rv-gold) !important;
    color: var(--rv-gold) !important;
}

.popup .oper-btn.primary,
.popup .oper-btn.is-primary,
.oper-btn.primary {
    background: var(--rv-gold-grad) !important;
    color: #1a1200 !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(255, 207, 50, 0.22) !important;
}

/* ----- Notify popup --------------------------------------- */
.popup-form.popup-notify .notify-item,
.popup .notify-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    padding: 12px 14px !important;
    margin: 0 0 10px !important;
    color: var(--rv-text) !important;
    box-shadow: none !important;
}

.popup .notify-item .title,
.notify-item .title {
    color: var(--rv-gold) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    margin: 0 0 4px !important;
}

.popup .notify-item .date,
.notify-item .date {
    color: var(--rv-muted) !important;
    font-size: 11px !important;
}

/* ----- Misc cleanup --------------------------------------- */
.popup img.bg,
.popup .popup-bg,
.popup .bg-img,
.popup .deco,
.popup .deco-left,
.popup .deco-right {
    display: none !important;
}

.popup *::-webkit-scrollbar { width: 8px; height: 8px; }
.popup *::-webkit-scrollbar-track { background: transparent; }
.popup *::-webkit-scrollbar-thumb {
    background: rgba(255, 207, 50, 0.18);
    border-radius: 4px;
}
.popup *::-webkit-scrollbar-thumb:hover { background: rgba(255, 207, 50, 0.32); }

/* ----- Mobile tweaks -------------------------------------- */
@media only screen and (max-width: 540px) {
    .popup,
    .popup.popup-account,
    .popup.popup-payment,
    .popup.popup-agency,
    .popup.popup-profile,
    .popup.popup-notify,
    .popup.popup-history {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        border-radius: var(--rv-radius) !important;
    }

    .popup .p-header,
    .p-header {
        padding: 12px 50px 12px 16px !important;
        font-size: 15px !important;
    }

    .popup .popup-account-container,
    .popup-account-container,
    .popup-form.popup-profile,
    .popup-form.popup-reward,
    .popup-form.popup-history,
    .popup .popup-userinfo-container {
        padding: 16px !important;
    }

    .popup .input-container input,
    .popup .input-wrap input,
    .popup .form-group input,
    .input-container input,
    .input-wrap input {
        height: 42px !important;
        font-size: 14px !important;
    }

    .popup .submit,
    .submit { height: 44px !important; font-size: 14px !important; }

    .popup .active-list,
    .active-list { grid-template-columns: 1fr !important; }
}

/* ============================================================
 * Aether-style popup overrides — patch 2
 * Covers profile/userinfo inner pieces that use distinct hooks
 * (.p-content, .info-line, .property-head, .change-avatar,
 *  .custom-button, .btn-line, oper-btn icon sprites, etc.)
 * Append-only. Scoped to .popup.
 * ============================================================ */

/* p-content wrapper around inner blocks */
.popup .p-content,
.p-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px !important;
    margin: 0 !important;
    color: var(--rv-text) !important;
}

/* ----- Info row (avatar + name/id) ------------------------ */
.popup .info-line,
.info-line {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    padding: 14px !important;
    margin: 0 0 14px !important;
    box-shadow: none !important;
}

.popup .avatar-box,
.avatar-box {
    position: relative !important;
    width: 62px !important;
    height: 62px !important;
    flex: 0 0 auto !important;
    background: transparent !important;
    border-radius: 50% !important;
    overflow: visible !important;
    box-shadow: 0 0 0 2px var(--rv-gold), 0 0 0 4px rgba(255, 207, 50, 0.18) !important;
}

.popup .avatar-box .avatar,
.popup .avatar-box img,
.avatar-box .avatar,
.avatar-box img {
    width: 62px !important;
    height: 62px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #1a1a1a !important;
    border: none !important;
}

/* "Change" pill under the avatar */
.popup .change-avatar,
.change-avatar {
    position: absolute !important;
    left: 50% !important;
    bottom: -8px !important;
    transform: translateX(-50%) !important;
    background: var(--rv-gold-grad) !important;
    background-image: var(--rv-gold-grad) !important;
    color: #1a1200 !important;
    border: none !important;
    border-radius: var(--rv-radius-pill) !important;
    padding: 2px 10px !important;
    height: 18px !important;
    line-height: 14px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 4px 10px rgba(255, 207, 50, 0.28) !important;
    width: auto !important;
    cursor: pointer !important;
}

.popup .info-box,
.info-box {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    color: var(--rv-text) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.popup .info-text,
.popup .info-text font,
.info-text,
.info-text font {
    color: var(--rv-text) !important;
    background: transparent !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.popup .info-text.bold,
.info-text.bold {
    color: var(--rv-gold) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.popup .info-text.bold font,
.info-text.bold font { color: var(--rv-gold) !important; }

/* ----- Property block (income / balance section) ---------- */
.popup .property-line,
.property-line {
    position: relative !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    padding: 14px !important;
    margin: 0 0 14px !important;
    color: var(--rv-text) !important;
    box-shadow: none !important;
}

.popup .property-head,
.property-head {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--rv-gold) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    padding: 0 0 8px !important;
    margin: 0 0 8px !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    border-bottom: 1px solid var(--rv-line) !important;
    display: flex !important;
    align-items: center !important;
}

.popup .property-head font,
.property-head font {
    color: var(--rv-gold) !important;
    background: transparent !important;
    -webkit-text-stroke: 0 !important;
}

.popup .property-info,
.property-info {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    background: transparent !important;
    padding: 4px 0 0 !important;
    color: var(--rv-text) !important;
    border: none !important;
}

.popup .property-info .income,
.property-info .income {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: var(--rv-text-strong) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    background: transparent !important;
}

.popup .property-info .income .el-button,
.popup .property-info .income .el-button--primary,
.property-info .income .el-button {
    background: var(--rv-gold-grad) !important;
    background-image: var(--rv-gold-grad) !important;
    border: none !important;
    border-radius: var(--rv-radius-pill) !important;
    color: #1a1200 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 4px 14px !important;
    height: 26px !important;
    line-height: 18px !important;
    box-shadow: 0 4px 10px rgba(255, 207, 50, 0.22) !important;
}

.popup .property-info .income .el-button span,
.property-info .income .el-button span,
.property-info .income .el-button font { color: #1a1200 !important; }

.popup .property-line .refresh,
.popup .refresh,
.property-line .refresh {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: rgba(255, 207, 50, 0.10) !important;
    border: 1px solid var(--rv-line) !important;
    color: var(--rv-gold) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: background 0.18s ease, color 0.18s ease;
}

.popup .property-line .refresh:hover,
.popup .refresh:hover {
    background: rgba(255, 207, 50, 0.20) !important;
    color: var(--rv-gold-hi) !important;
}

.popup .property-line .refresh img,
.popup .refresh img { display: none !important; }

.popup .property-line .refresh::before,
.popup .refresh::before {
    content: "\f021";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    font-size: 12px;
}

/* ----- Oper line buttons (detail / limit / password etc) -- */
.popup .oper-line,
.oper-line {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 14px !important;
    border: none !important;
}

.popup .oper-btn,
.oper-btn {
    flex-direction: column !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    padding: 12px 8px !important;
    height: auto !important;
    min-height: 70px !important;
    box-shadow: none !important;
    color: var(--rv-text) !important;
    text-align: center !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.popup .oper-btn:hover,
.oper-btn:hover {
    background: rgba(255, 207, 50, 0.08) !important;
    border-color: var(--rv-gold) !important;
    color: var(--rv-gold) !important;
}

/* Kill the data-URL sprite icons and replace with FA glyphs */
.popup .oper-btn .icon,
.oper-btn .icon {
    background-image: none !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--rv-gold) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.popup .oper-btn .icon::before,
.oper-btn .icon::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    font-size: 18px;
    color: var(--rv-gold);
    display: inline-block;
}

.popup .oper-btn .icon.detail::before,
.oper-btn .icon.detail::before    { content: "\f15c"; }      /* note */
.popup .oper-btn .icon.limit::before,
.oper-btn .icon.limit::before     { content: "\f071"; }      /* warning */
.popup .oper-btn .icon.password::before,
.oper-btn .icon.password::before  { content: "\f084"; }      /* key */
.popup .oper-btn .icon.bank::before,
.oper-btn .icon.bank::before      { content: "\f19c"; }      /* bank */
.popup .oper-btn .icon.history::before,
.oper-btn .icon.history::before   { content: "\f1da"; }      /* history */
.popup .oper-btn .icon.notify::before,
.oper-btn .icon.notify::before    { content: "\f0f3"; }      /* bell */
.popup .oper-btn .icon.invite::before,
.oper-btn .icon.invite::before    { content: "\f234"; }
.popup .oper-btn .icon.profile::before,
.oper-btn .icon.profile::before   { content: "\f007"; }
.popup .oper-btn .icon.share::before,
.oper-btn .icon.share::before     { content: "\f1e0"; }
.popup .oper-btn .icon.gift::before,
.oper-btn .icon.gift::before      { content: "\f06b"; }
.popup .oper-btn .icon.activate::before,
.oper-btn .icon.activate::before  { content: "\f5e7"; }
.popup .oper-btn .icon.agency::before,
.oper-btn .icon.agency::before    { content: "\f0c0"; }

/* Fallback dot if class isn't recognised */
.popup .oper-btn .icon:not(.detail):not(.limit):not(.password):not(.bank):not(.history):not(.notify):not(.invite):not(.profile):not(.share):not(.gift):not(.activate):not(.agency)::before,
.oper-btn .icon:not(.detail):not(.limit):not(.password):not(.bank):not(.history):not(.notify):not(.invite):not(.profile):not(.share):not(.gift):not(.activate):not(.agency)::before {
    content: "\f111";
    font-size: 8px;
    opacity: 0.6;
}

.popup .oper-btn .text,
.oper-btn .text {
    color: inherit !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

.popup .oper-btn .text font,
.oper-btn .text font {
    color: inherit !important;
    background: transparent !important;
    -webkit-text-stroke: 0 !important;
}

.popup .oper-btn:hover .icon,
.popup .oper-btn:hover .icon::before,
.popup .oper-btn:hover .text,
.popup .oper-btn:hover .text font {
    color: var(--rv-gold) !important;
}

/* ----- Bottom action button (logout, etc) ----------------- */
.popup .btn-line,
.btn-line {
    display: flex !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 0 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
}

.popup .custom-button,
.popup button.custom-button,
.custom-button,
.popup .custom-button.default {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 280px !important;
    height: 44px !important;
    padding: 0 22px !important;
    background: var(--rv-gold-grad) !important;
    background-image: var(--rv-gold-grad) !important;
    border: none !important;
    border-radius: var(--rv-radius-pill) !important;
    color: #1a1200 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.4px !important;
    box-shadow: 0 6px 16px rgba(255, 207, 50, 0.28) !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    cursor: pointer !important;
    transition: filter 0.18s ease, transform 0.06s ease;
}

.popup .custom-button:hover,
.custom-button:hover { filter: brightness(1.05); }
.popup .custom-button:active,
.custom-button:active { transform: translateY(1px); }

.popup .custom-button font,
.popup .custom-button span,
.custom-button font,
.custom-button span {
    color: #1a1200 !important;
    background: transparent !important;
    -webkit-text-stroke: 0 !important;
}

/* Variant styles that may exist alongside .default */
.popup .custom-button.cancel,
.popup .custom-button.ghost,
.popup .custom-button.secondary {
    background: rgba(255, 255, 255, 0.04) !important;
    background-image: none !important;
    border: 1px solid var(--rv-line) !important;
    color: var(--rv-text) !important;
    box-shadow: none !important;
}

.popup .custom-button.cancel font,
.popup .custom-button.ghost font,
.popup .custom-button.secondary font {
    color: var(--rv-text) !important;
}

/* Force-neutralise any leftover Google-translate <font> tags */
.popup font {
    background: transparent !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

/* ----- Bank list (within profile / bank popup) ------------ */
.popup .bank-list,
.bank-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.popup .bank-item,
.bank-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    padding: 12px 14px !important;
    color: var(--rv-text) !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.popup .add-bank,
.add-bank {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(255, 207, 50, 0.10) !important;
    background-image: none !important;
    border: 1px dashed var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    color: var(--rv-gold) !important;
    padding: 10px 14px !important;
    height: auto !important;
    min-height: 38px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    cursor: pointer !important;
}

.popup .add-bank:hover,
.add-bank:hover {
    background: rgba(255, 207, 50, 0.18) !important;
    border-color: var(--rv-gold) !important;
}

.popup .add-bank font,
.add-bank font {
    color: var(--rv-gold) !important;
    background: transparent !important;
}

/* ============================================================
 * Aether-style popup overrides — patch 3 (el-button variants)
 * ============================================================ */

/* Primary action el-button inside any popup (Pay Now / Submit) */
.popup .el-button--primary,
.popup .el-button.el-button--primary {
    background: var(--rv-gold-grad) !important;
    background-image: var(--rv-gold-grad) !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: var(--rv-radius-pill) !important;
    color: #1a1200 !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 6px 16px rgba(255, 207, 50, 0.28) !important;
    text-shadow: none !important;
}

.popup .el-button--primary span,
.popup .el-button--primary font {
    color: #1a1200 !important;
    background: transparent !important;
}

.popup .el-button--primary:hover {
    filter: brightness(1.05);
    background: var(--rv-gold-grad-hover) !important;
    background-image: var(--rv-gold-grad-hover) !important;
}

.popup .el-button--primary.is-disabled,
.popup .el-button--primary[disabled] {
    background: rgba(255, 207, 50, 0.30) !important;
    background-image: none !important;
    background-color: rgba(255, 207, 50, 0.30) !important;
    color: rgba(26, 18, 0, 0.55) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.popup .el-button--primary.is-disabled span,
.popup .el-button--primary.is-disabled font,
.popup .el-button--primary[disabled] span,
.popup .el-button--primary[disabled] font {
    color: rgba(26, 18, 0, 0.55) !important;
}

/* Success variant (some forms use it for confirm) */
.popup .el-button--success {
    background: var(--rv-gold-grad) !important;
    background-image: var(--rv-gold-grad) !important;
    border: none !important;
    border-radius: var(--rv-radius-pill) !important;
    color: #1a1200 !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 16px rgba(255, 207, 50, 0.28) !important;
}

.popup .el-button--success span,
.popup .el-button--success font { color: #1a1200 !important; }

/* Danger variant */
.popup .el-button--danger {
    background: linear-gradient(180deg, #ff7a5c 0%, #d63a1f 100%) !important;
    background-image: linear-gradient(180deg, #ff7a5c 0%, #d63a1f 100%) !important;
    border: none !important;
    border-radius: var(--rv-radius-pill) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(255, 76, 53, 0.30) !important;
}

/* Cancel / default ghost variant inside popups */
.popup .el-button--default,
.popup .btn-cancel,
.popup .el-button.btn-cancel {
    background: rgba(255, 255, 255, 0.04) !important;
    background-image: none !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius-pill) !important;
    color: var(--rv-text) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.popup .el-button--default:hover,
.popup .btn-cancel:hover {
    border-color: var(--rv-gold) !important;
    color: var(--rv-gold) !important;
}

.popup .el-button--default span,
.popup .el-button--default font,
.popup .btn-cancel span,
.popup .btn-cancel font {
    color: inherit !important;
    background: transparent !important;
}

/* Make sure mini buttons (amount suggestions) keep their pill style and stay distinct */
.popup .amount-suggestion .el-button--default,
.popup .amount-suggestion .el-button.el-button--mini {
    height: 32px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
}

/* Footer action row that holds Cancel + Pay buttons in payment form */
.popup .payment-form-container .form-group:last-child,
.popup .payment-form-container .actions,
.popup .payment-form-container .footer-actions {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    margin-top: 4px !important;
}

.popup .payment-form-container .el-button {
    height: 40px !important;
    padding: 0 22px !important;
    min-width: 110px !important;
    font-size: 14px !important;
}

/* Info marker that appears next to "(MXN)" amount label */
.popup .form-group .el-tooltip,
.popup .form-group .info-icon {
    color: var(--rv-muted) !important;
    margin-left: 6px !important;
}

/* =========================================================================
   Popup panel layout fix (appended)
   - Widen the modal panel on desktop and center it
   - Anchor .p-header inside the dark panel (not floating above)
   - Quick-amount pills as single-row flex with wrap
   - Vertical stack form-group (label above input)
   - Mobile breakpoint
   ========================================================================= */

/* The actual modal column that holds .p-header + .popup + .close-footer */
.el-dialog__body {
    width: min(100% - 32px, 520px) !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

/* Make the dark panel fill the constrained body */
.el-dialog__body > .popup,
.popup.popup-account-container,
.popup.popup-userinfo-container,
.popup-form.popup-reward .popup,
.popup {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 320px !important;
    margin: 0 auto !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
}

.popup .p-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 20px !important;
}

/* Anchor the tab toggle inside the panel as its top header */
.el-dialog__body > .p-header,
.p-header {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 12px 16px 8px !important;
    z-index: 1 !important;
}

/* Quick-amount pills row */
.popup .amount-suggestion,
.popup-form .amount-suggestion,
.payment-form-container .amount-suggestion {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    margin: 8px 0 12px !important;
}

.popup .amount-suggestion .el-button,
.popup .amount-suggestion .el-button--default,
.popup .amount-suggestion .el-button.el-button--mini {
    flex: 1 1 auto !important;
    min-width: 70px !important;
    margin: 0 !important;
}

/* Form group: stack label above input */
.popup .form-group,
.popup-form .form-group,
.payment-form-container .form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

.popup .form-group > label,
.popup-form .form-group > label,
.payment-form-container .form-group > label {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    display: block !important;
}

.popup .form-group .el-input,
.popup .form-group .el-select,
.popup-form .form-group .el-input,
.popup-form .form-group .el-select {
    width: 100% !important;
}

.popup .form-group .amount-note,
.popup-form .form-group .amount-note {
    margin-top: 4px !important;
    display: block !important;
}



/* Mobile breakpoint */
@media (max-width: 600px) {
    .el-dialog__body {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
    }
    .popup .amount-suggestion .el-button,
    .popup .amount-suggestion .el-button--default,
    .popup .amount-suggestion .el-button.el-button--mini {
        flex: 1 1 calc(33.333% - 8px) !important;
        min-width: 0 !important;
    }
    .popup .p-content {
        padding: 12px 14px !important;
    }
}

/* ============================================================
   POPUP POLISH — anchor tab toggle inside dark panel + fill primary buttons
   ============================================================ */

/* Make the dialog body itself BE the dark panel; remove the child-panel
   distinction so the tab toggle (p-header) sits flush at the panel top */
.el-dialog__body,
.el-dialog__body.popup,
.popup-form .el-dialog__body {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.96) 0%, rgba(8, 8, 8, 0.96) 100%) !important;
    border: 1px solid rgba(255, 207, 50, 0.28) !important;
    border-radius: 22px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.4) !important;
    padding: 0 24px 24px !important;
    overflow: visible !important;
}

/* Make the p-header sit FLUSH inside the dark panel as its title bar */
.el-dialog__body > .p-header,
.popup > .p-header,
.popup-form .p-header {
    background: transparent !important;
    position: relative !important;
    margin: 0 -24px 16px !important;
    padding: 16px 24px 12px !important;
    border-bottom: 1px solid rgba(255, 207, 50, 0.18);
    border-radius: 22px 22px 0 0 !important;
    overflow: visible !important;
    height: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Kill the legacy translucent gold gradient that made it look like a second bar */
.el-dialog__body .p-header::before,
.el-dialog__body .p-header::after,
.popup .p-header::before,
.popup .p-header::after {
    display: none !important;
}

/* Remove the extra .close-top X — leave only the el-dialog close (top-right) */
.el-dialog__body .close-top,
.popup .close-top {
    display: none !important;
}

/* The standard el-dialog close button — small gold circle top-right */
.el-dialog__headerbtn,
.el-dialog__close,
.el-dialog .el-dialog__close {
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 207, 50, 0.10) !important;
    border: 1px solid rgba(255, 207, 50, 0.40) !important;
    color: var(--rv-gold) !important;
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.el-dialog__headerbtn:hover,
.el-dialog__close:hover {
    background: rgba(255, 207, 50, 0.22) !important;
}

/* Fill the Pay-Now primary button with gold gradient — both enabled and disabled
   states get the proper appearance */
.el-dialog__body .el-button--primary,
.popup .el-button--primary,
.el-dialog__body button.el-button.el-button--primary {
    background: linear-gradient(180deg, #ffe070 0%, #f0a420 100%) !important;
    color: #1a1100 !important;
    border: 0 !important;
    box-shadow: 0 8px 18px rgba(240, 164, 32, 0.30), inset 0 -2px 0 rgba(0, 0, 0, 0.18) !important;
    font-weight: 800 !important;
    padding: 10px 24px !important;
    border-radius: 999px !important;
    min-height: 42px;
}

.el-dialog__body .el-button--primary:hover,
.popup .el-button--primary:hover {
    background: linear-gradient(180deg, #ffe98c 0%, #ffb01f 100%) !important;
    transform: translateY(-1px);
}

/* Disabled = darker gold, lower opacity, no shadow */
.el-dialog__body .el-button--primary.is-disabled,
.el-dialog__body .el-button--primary[disabled],
.popup .el-button--primary.is-disabled {
    background: linear-gradient(180deg, rgba(255, 224, 112, 0.30) 0%, rgba(240, 164, 32, 0.30) 100%) !important;
    color: rgba(26, 17, 0, 0.55) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* Cancel = ghost gold pill */
.el-dialog__body .btn-cancel,
.popup .btn-cancel {
    background: transparent !important;
    color: var(--rv-text) !important;
    border: 1px solid rgba(255, 207, 50, 0.40) !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    min-height: 42px;
}

.el-dialog__body .btn-cancel:hover,
.popup .btn-cancel:hover {
    background: rgba(255, 207, 50, 0.08) !important;
    color: var(--rv-gold) !important;
}

/* Action bar spacing */
.el-dialog__body .form-actions {
    display: flex !important;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .el-dialog__body,
    .el-dialog__body.popup {
        padding: 0 16px 16px !important;
    }
    .el-dialog__body > .p-header,
    .popup > .p-header {
        margin: 0 -16px 12px !important;
        padding: 12px 16px 10px !important;
    }
}

/* ============================================================
   RV-REVAMP: Category pills row + Provider showcase row
   Decorative bridge between hero and game grid (no backend deps).
   ============================================================ */

/* --- Category pills row -------------------------------------- */
.rv-cat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 12px 4px;
    margin: 0 auto;
    max-width: 1240px;
}

.rv-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    min-height: 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(20, 14, 4, 0.92) 0%, rgba(10, 7, 2, 0.94) 100%);
    border: 1px solid rgba(255, 207, 50, 0.55);
    color: #f6e6b0;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 0 rgba(255, 224, 130, 0.10) inset, 0 6px 14px rgba(0, 0, 0, 0.35);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    cursor: pointer;
    white-space: nowrap;
}

.rv-cat-pill .rv-cat-ico {
    color: #ffd34a;
    font-size: 15px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.rv-cat-pill:hover,
.rv-cat-pill:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 224, 130, 0.95);
    color: #fff3c4;
    box-shadow: 0 1px 0 rgba(255, 224, 130, 0.20) inset, 0 8px 22px rgba(255, 196, 64, 0.18);
    outline: none;
}

.rv-cat-pill:active {
    transform: translateY(0);
}

/* --- Provider showcase row ----------------------------------- */
.rv-providers {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    padding: 14px 12px 18px;
    margin: 0 auto;
    max-width: 1240px;
    overflow-x: visible;
    scrollbar-width: thin;
}

.rv-provider-tile {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 168px;
    aspect-ratio: 0.85 / 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 14px 10px 12px;
    border-radius: 14px;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(255, 196, 64, 0.18) 0%, rgba(255, 196, 64, 0.00) 60%),
        linear-gradient(180deg, #1a1305 0%, #0a0702 100%);
    border: 1px solid rgba(255, 207, 50, 0.42);
    box-shadow:
        0 1px 0 rgba(255, 224, 130, 0.12) inset,
        0 10px 24px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    color: #f6e6b0;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    cursor: pointer;
}

.rv-provider-tile::before {
    /* subtle inner top sheen */
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 38%;
    background: linear-gradient(180deg, rgba(255, 224, 130, 0.10) 0%, rgba(255, 224, 130, 0.00) 100%);
    pointer-events: none;
}

.rv-provider-tile::after {
    /* corner ribbon dot */
    content: "";
    position: absolute;
    right: 8px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffd34a;
    box-shadow: 0 0 8px rgba(255, 207, 50, 0.75);
    opacity: 0.85;
}

.rv-provider-tile:hover,
.rv-provider-tile:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 224, 130, 0.95);
    box-shadow:
        0 1px 0 rgba(255, 224, 130, 0.22) inset,
        0 14px 32px rgba(255, 196, 64, 0.22);
    outline: none;
}

.rv-provider-art {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #ffd34a;
    text-shadow: 0 4px 14px rgba(255, 196, 64, 0.35);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    line-height: 1;
}

.rv-provider-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.0;
    text-align: center;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 207, 50, 0.18);
    gap: 2px;
}

.rv-provider-name .rv-prov-line1,
.rv-provider-name .rv-prov-line2 {
    font-weight: 900;
    letter-spacing: 0.6px;
    background: linear-gradient(180deg, #ffe88a 0%, #f0a420 60%, #c47a08 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.rv-provider-name .rv-prov-line1 {
    font-size: 15px;
}

.rv-provider-name .rv-prov-line2 {
    font-size: 11px;
    letter-spacing: 1.1px;
    opacity: 0.95;
}

/* --- Mobile / narrow viewports (≤ 810px) --------------------- */
@media (max-width: 810px) {
    .rv-cat-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 10px 2px;
    }
    .rv-cat-pill {
        padding: 7px 14px;
        min-height: 34px;
        font-size: 13px;
    }
    .rv-cat-pill .rv-cat-ico {
        font-size: 14px;
    }

    .rv-providers {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 10px 14px;
        scroll-snap-type: x mandatory;
    }
    .rv-providers::-webkit-scrollbar { height: 4px; }
    .rv-providers::-webkit-scrollbar-thumb {
        background: rgba(255, 207, 50, 0.45);
        border-radius: 4px;
    }
    .rv-provider-tile {
        flex: 0 0 122px;
        max-width: 122px;
        scroll-snap-align: start;
    }
    .rv-provider-art {
        font-size: 34px;
    }
    .rv-provider-name .rv-prov-line1 { font-size: 13px; }
    .rv-provider-name .rv-prov-line2 { font-size: 10px; }
}

@media (max-width: 420px) {
    .rv-cat-pill {
        padding: 6px 12px;
        font-size: 12px;
    }
    .rv-provider-tile {
        flex: 0 0 108px;
        max-width: 108px;
    }
}

/* Smooth scroll for in-page anchors */
html { scroll-behavior: smooth; }
#game-grid { scroll-margin-top: 12px; }

/* ============================================================
   RV-REVAMP fix v2: text sizing so all provider names fit cleanly
   ============================================================ */
.rv-provider-tile {
    padding: 14px 8px 12px;
}

.rv-provider-name .rv-prov-line1 {
    font-size: 13px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.rv-provider-name .rv-prov-line2 {
    font-size: 10px;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* PRAGMATIC is the widest single word — shrink it specifically */
.rv-prov-pp .rv-prov-line1 {
    font-size: 11px;
    letter-spacing: 0.1px;
}

@media (max-width: 810px) {
    .rv-provider-name .rv-prov-line1 { font-size: 12px; }
    .rv-provider-name .rv-prov-line2 { font-size: 9px; }
    .rv-prov-pp .rv-prov-line1 { font-size: 10px; }
}

/* ============================================================
   RV-REVAMP fix v3: ensure tile width is reasonable; pills look right
   Override earlier flex collapse — give tiles a real min-width.
   ============================================================ */
.rv-providers {
    gap: 14px;
}

.rv-provider-tile {
    flex: 1 1 140px;
    min-width: 130px;
    max-width: 168px;
    padding: 14px 8px 12px;
}

.rv-provider-art {
    font-size: 40px;
}

.rv-provider-name {
    padding-top: 6px;
}

.rv-provider-name .rv-prov-line1 {
    font-size: 14px;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.rv-provider-name .rv-prov-line2 {
    font-size: 11px;
    letter-spacing: 0.9px;
    white-space: nowrap;
}

.rv-prov-pp .rv-prov-line1 {
    font-size: 12px;
    letter-spacing: 0.1px;
}

@media (max-width: 1024px) {
    .rv-provider-tile {
        flex: 1 1 120px;
        min-width: 116px;
        max-width: 150px;
    }
    .rv-provider-art { font-size: 36px; }
}

@media (max-width: 810px) {
    .rv-providers {
        gap: 10px;
    }
    .rv-provider-tile {
        flex: 0 0 122px;
        min-width: 122px;
        max-width: 122px;
    }
    .rv-provider-art { font-size: 32px; }
    .rv-provider-name .rv-prov-line1 { font-size: 13px; }
    .rv-provider-name .rv-prov-line2 { font-size: 10px; }
    .rv-prov-pp .rv-prov-line1 { font-size: 11px; }
}

/* ============================================================
   SCROLL PERFORMANCE PATCH
   ============================================================
   Removes paint-heavy properties that caused jank around the grid:
   simplified shadows, no backdrop-filter, content-visibility on cards,
   no ::before sheen, only animated layers get will-change.
   ============================================================ */

.van-list .game-list-container-pc .game-card,
.van-list .game-list-container .game-card,
.van-list .game-card-box {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45),
                inset 0 0 0 1px rgba(255, 207, 50, 0.30) !important;
}

.van-list .game-list-container-pc .game-card:hover,
.van-list .game-list-container .game-card:hover,
.van-list .game-card-box:hover {
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55),
                inset 0 0 0 1px rgba(255, 207, 50, 0.6) !important;
    filter: none !important;
}

.van-list .game-card,
.van-list .game-card-box {
    content-visibility: auto;
    contain-intrinsic-size: 200px 200px;
}

.van-list .game-card::before,
.van-list .game-card-box::before {
    display: none !important;
}

.revamp-header,
header.header.pc.revamp-header,
.header.revamp-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.98) 0%, rgba(6, 6, 6, 0.96) 100%) !important;
}

.revamp-bottom-nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.95) !important;
}

.revamp-announcement__track,
.marquee-box .marquee {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.rv-provider-tile {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35) !important;
}
.rv-provider-tile:hover {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 207, 50, 0.6) !important;
}

.revamp-payments__item {
    box-shadow: none !important;
}

body {
    background-attachment: scroll !important;
}


/* ============================================================
   SCROLL PERFORMANCE PATCH PART 2
   ============================================================
   Stop continuous animations when their host is off-screen
   and reduce paint cost on the icon strips.
   ============================================================ */

/* Marquees: pause when the parent is not visible to the viewport */
.revamp-announcement,
.marquee-box {
    contain: layout style paint;
}

/* Skip painting the announcement marquee when scrolled past it */
.revamp-announcement {
    content-visibility: auto;
    contain-intrinsic-size: 100% 42px;
}

/* Provider showcase row: skip render off-screen */
.rv-providers,
.rv-cat-row {
    content-visibility: auto;
    contain-intrinsic-size: 100% 160px;
}

/* Bank/payment strip: skip render when not in view */
.revamp-payments {
    content-visibility: auto;
    contain-intrinsic-size: 100% 100px;
}

/* Footer: same */
.revamp-site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 100% 280px;
}

/* Game grid host */
.van-list,
#gameLobby {
    contain: layout paint;
}

/* Drop transitions on game cards during fast scroll — only animate on actual hover */
@media (hover: hover) {
    .van-list .game-card,
    .van-list .game-card-box {
        transition: none;
    }
    .van-list .game-card:hover,
    .van-list .game-card-box:hover {
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }
}

/* On touch devices (no hover) — no transition at all */
@media (hover: none) {
    .van-list .game-card,
    .van-list .game-card-box {
        transition: none !important;
    }
}

/* Floating chat widget — promote so it doesn't repaint on scroll */
[class*="floating"],
[id*="floating"],
.revamp-floating-support {
    will-change: transform;
    transform: translateZ(0);
}


/* ============================================================
   GAME TILE — CLEAN AETHER-STYLE
   ============================================================
   Drops the heavy gold frame + sparkles. Source art now fills
   the tile cleanly via background-size: cover (center-crops sides
   to make square). Subtle drop shadow + 1px gold rim only.
   Sharpness comes from the LANCZOS 2× upscale done on disk.
   ============================================================ */

.van-list .game-list-container-pc .game-card,
.van-list .game-list-container .game-card,
.van-list .game-card-box {
    aspect-ratio: 1 / 1 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #0a0a0a !important;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 207, 50, 0.22) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    cursor: pointer;
    isolation: isolate;
    /* image-rendering hints help when source is slightly under display size */
    image-rendering: -webkit-optimize-contrast;
}

.van-list .game-list-container-pc .game-card:hover,
.van-list .game-list-container .game-card:hover,
.van-list .game-card-box:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.55),
        inset 0 0 0 1px rgba(255, 207, 50, 0.6) !important;
}

/* Art fills the tile edge-to-edge — no margin, no inner padding */
.van-list .game-list-container-pc .game-card-img,
.van-list .game-list-container .game-card-img,
.van-list .game-list-container-pc .game-img,
.van-list .game-list-container .game-img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #0a0a0a;
    z-index: 1;
    position: relative;
}

/* Kill any ::before / ::after overlay we added before */
.van-list .game-card::before,
.van-list .game-card::after,
.van-list .game-card-box::before,
.van-list .game-card-box::after {
    display: none !important;
}

/* ============================================================
   POPUP FINAL PASS — Support/Notify + Profile avatar fallback
   Appended (popqa1) — overrides legacy parchment + broken avatar
   ============================================================ */

/* --- 1. Support / Notify popup: kill parchment, restyle rows ----- */

/* The bg_announce.png parchment lives on .r-box inside the
   support popup. Strip it and any border-image, replace with
   a clean dark panel. */
.popup-reward .popup-upcoming-announce-container .r-box,
.popup-reward .popup-upcoming-announce-container .r,
.popup-reward .popup-upcoming-announce-container .r-text-box {
    background-image: none !important;
    border-image: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}

.popup-reward .popup-upcoming-announce-container {
    background: var(--rv-panel-flat) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Container list cleanup */
.popup-reward .popup-upcoming-announce-container .agency-list.active-list,
.popup-reward .popup-upcoming-announce-container ul.active-list {
    background: transparent !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 0 !important;
}

/* Each support contact card */
.popup-reward .popup-upcoming-announce-container .agency-item {
    background: rgba(255, 207, 50, 0.04) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Each contact row inside the item (Telegram / WhatsApp / Phone) */
.popup-reward .popup-upcoming-announce-container .agency-item > .text {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid var(--rv-line-soft) !important;
}
.popup-reward .popup-upcoming-announce-container .agency-item > .text:last-child {
    border-bottom: none !important;
}

/* Row layout: label left (min-width 120px), value right (flex) */
.popup-reward .popup-upcoming-announce-container .agency-item .title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    min-height: 44px !important;
    color: #e9e9e9 !important;
    font-size: 14px !important;
    white-space: normal !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Label column - Telegram / WhatsApp / Phone */
.popup-reward .popup-upcoming-announce-container .agency-item .title > span {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 120px !important;
    width: 120px !important;
    flex: 0 0 120px !important;
    color: var(--rv-gold) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-align: left !important;
}

/* Value column - link / phone number / image */
.popup-reward .popup-upcoming-announce-container .agency-item .title > a {
    flex: 1 1 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    color: #fff !important;
    text-decoration: none !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
}

.popup-reward .popup-upcoming-announce-container .agency-item .title > a img {
    max-height: 28px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Also kill parchment if it ever leaks into the tab 1 (active-card)
   list via stray bg images. */
.popup-reward .popup-upcoming-activities-container .active-card,
.popup-reward .popup-upcoming-activities-container .active-list {
    border-image: none !important;
}

/* --- 2. Profile popup avatar fallback ----- */

/* Make the avatar slot a circular gold-bordered placeholder with
   a centered fa-user glyph behind any <img>. If the image loads
   it covers the icon; if broken (naturalWidth=0 / alt-text only)
   the icon shows through. We also hide the alt-text fallback by
   sizing the img to fill the box and clipping overflow. */
.popup-profile .avatar-box {
    position: relative !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 50% !important;
    background: var(--rv-bg-soft) !important;
    border: 2px solid var(--rv-gold) !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    isolation: isolate;
}

/* FA fallback icon — sits BEHIND the img. Uses Font Awesome
   free Unicode for fa-user (\f007). The fa-solid family is
   already loaded site-wide. */
.popup-profile .avatar-box::before {
    content: "\f007";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 28px;
    color: var(--rv-gold);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

/* The img — when it loads it covers the icon. When broken
   (naturalWidth=0), the empty img has zero rendered size
   for the alt text via font-size:0 trick, so only the FA
   icon shows. */
.popup-profile .avatar-box img,
.popup-profile .avatar-box img.avatar {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    /* Hide broken-image alt-text: zero out font, color and
       outline so nothing of the alt text renders. */
    font-size: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
    background: transparent !important;
}

/* Change-avatar pill under the photo */
.popup-profile .avatar-box .change-avatar {
    position: absolute !important;
    left: 50% !important;
    bottom: -6px !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    line-height: 1 !important;
    padding: 4px 12px !important;
    height: auto !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #ffe070 0%, #f0a420 100%) !important;
    background-image: linear-gradient(180deg, #ffe070 0%, #f0a420 100%) !important;
    color: #1a1200 !important;
    border: 0 !important;
    box-shadow: 0 4px 10px rgba(240, 164, 32, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.18) !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

/* --- 3. Cross-popup hardening: ensure tab buttons render the
        new translated strings without overflow */
.popup-reward .p-header .header-box .tab-btn,
.popup-profile .p-header .header-box .tab-btn {
    white-space: nowrap;
    overflow: visible;
}

/* ============================================================
   RV-REVAMP v4 — Aether-style polish pass (2026-05-23)
   Adds:
     - Cream-bleed fix (.home-view background was beige in legacy)
     - Announcement bullhorn micro-pulse + gold pill
     - Hero atmospheric particles + optional <video> support
     - Per-brand provider tile accent colors
     - Live Casino preview strip
     - Promotions carousel section
     - Richer winners ticker
   All additive — no existing rules altered.
   ============================================================ */

/* --- A. Kill legacy cream body bleed ------------------------- */
.home-view {
    background-color: transparent !important;
    padding-bottom: 0 !important;
}
.banner-game .swiper-mask {
    background: transparent !important;
    display: none !important;
}

/* --- B. Announcement bullhorn — soft gold pill + pulse ------ */
.revamp-announcement__icon {
    position: relative;
    color: #1a0e02 !important;
    background: linear-gradient(180deg, #ffd870 0%, #f0a420 100%);
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    margin-left: 10px !important;
    padding: 0 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4) inset,
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 0 16px rgba(255, 196, 64, 0.5);
    flex-shrink: 0 !important;
    animation: rv-bullhorn-pulse 2.4s ease-in-out infinite;
}
.revamp-announcement__icon i {
    color: #1a0e02 !important;
}
@keyframes rv-bullhorn-pulse {
    0%, 100% { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 196, 64, 0.5); }
    50%      { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 26px rgba(255, 196, 64, 0.85); }
}

/* --- C. Hero atmospheric layers ----------------------------- */
.rv-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    border-radius: var(--rv-radius-lg);
    mix-blend-mode: screen;
}
.rv-hero-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6cf 0%, #ffd34a 45%, rgba(255, 175, 30, 0) 70%);
    opacity: 0;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 4px rgba(255, 207, 50, 0.7));
}
.rv-hero-particles span:nth-child(1) { width: 8px;  height: 8px;  left:  8%; animation: rv-particle-drift 11s ease-in-out  0.0s infinite; }
.rv-hero-particles span:nth-child(2) { width: 14px; height: 14px; left: 22%; animation: rv-particle-drift 13s ease-in-out  1.2s infinite; }
.rv-hero-particles span:nth-child(3) { width: 5px;  height: 5px;  left: 38%; animation: rv-particle-drift 9s  ease-in-out  2.8s infinite; }
.rv-hero-particles span:nth-child(4) { width: 11px; height: 11px; left: 55%; animation: rv-particle-drift 12s ease-in-out  0.5s infinite; }
.rv-hero-particles span:nth-child(5) { width: 7px;  height: 7px;  left: 70%; animation: rv-particle-drift 14s ease-in-out  3.6s infinite; }
.rv-hero-particles span:nth-child(6) { width: 12px; height: 12px; left: 85%; animation: rv-particle-drift 10s ease-in-out  1.8s infinite; }
.rv-hero-particles span:nth-child(7) { width: 6px;  height: 6px;  left: 94%; animation: rv-particle-drift 13s ease-in-out  4.2s infinite; }
@keyframes rv-particle-drift {
    0%   { transform: translate3d(0, 110%, 0) scale(0.7); opacity: 0; }
    15%  { opacity: 0.9; }
    50%  { transform: translate3d(20px, 40%, 0) scale(1); opacity: 1; }
    85%  { opacity: 0.6; }
    100% { transform: translate3d(-10px, -20%, 0) scale(0.85); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .rv-hero-particles span { animation: none; opacity: 0.4; }
    .revamp-announcement__icon { animation: none; }
}

.rv-hero-rim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    border-radius: var(--rv-radius-lg);
    background: linear-gradient(135deg,
        rgba(255, 224, 112, 0.22) 0%,
        transparent 18%,
        transparent 82%,
        rgba(255, 175, 30, 0.18) 100%);
    mix-blend-mode: screen;
}

/* Optional <video> banner — fills the slot if present */
.rv-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    border-radius: var(--rv-radius-lg);
    background: #050505;
}
.rv-hero-video + .swiper-wrapper,
.rv-hero-video ~ .swiper-wrapper {
    display: none !important;
}

/* --- D. Provider tile per-brand accents --------------------- */
.rv-prov-pg  { --pa: #b46bff; --pb: #4a1d8b; }
.rv-prov-pp  { --pa: #ff6244; --pb: #8a1d12; }
.rv-prov-rg  { --pa: #ff9b3a; --pb: #6a2802; }
.rv-prov-jl  { --pa: #3ec1ff; --pb: #0c3b66; }
.rv-prov-sg  { --pa: #7c8cff; --pb: #1d2070; }
.rv-prov-cq  { --pa: #ff4d6b; --pb: #6a0a18; }
.rv-prov-km  { --pa: #4fe39a; --pb: #074a2c; }

.rv-provider-tile[class*="rv-prov-"] {
    background:
        radial-gradient(120% 70% at 50% 0%,
            color-mix(in srgb, var(--pa) 35%, transparent) 0%,
            color-mix(in srgb, var(--pa) 0%,  transparent) 60%),
        linear-gradient(180deg,
            color-mix(in srgb, var(--pb) 55%, #0a0702) 0%,
            #050402 100%) !important;
    border-color: color-mix(in srgb, var(--pa) 55%, rgba(255,207,50,0.42)) !important;
}
.rv-provider-tile[class*="rv-prov-"] .rv-provider-art {
    color: var(--pa) !important;
    text-shadow: 0 4px 18px color-mix(in srgb, var(--pa) 60%, transparent) !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
    transition: transform 280ms ease;
}
.rv-provider-tile[class*="rv-prov-"]::after {
    background: var(--pa) !important;
    box-shadow: 0 0 10px var(--pa) !important;
}
.rv-provider-tile[class*="rv-prov-"]:hover,
.rv-provider-tile[class*="rv-prov-"]:focus-visible {
    border-color: color-mix(in srgb, var(--pa) 90%, white) !important;
    box-shadow:
        0 14px 32px color-mix(in srgb, var(--pa) 30%, rgba(0,0,0,0.45)),
        0 0 0 1px color-mix(in srgb, var(--pa) 70%, transparent) !important;
}
.rv-provider-tile[class*="rv-prov-"]:hover .rv-provider-art {
    transform: scale(1.08) rotate(-3deg);
}
.rv-provider-tile[class*="rv-prov-"] .rv-prov-line1,
.rv-provider-tile[class*="rv-prov-"] .rv-prov-line2 {
    background: linear-gradient(180deg,
        #fff 0%,
        color-mix(in srgb, var(--pa) 60%, #fff) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* --- E. Live Casino preview strip --------------------------- */
.rv-live-strip {
    width: min(100% - 32px, var(--rv-container));
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
}
.rv-live-strip__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 14px;
    border-right: 1px solid var(--rv-line);
    min-width: 160px;
}
.rv-live-strip__title,
.rv-promos__title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.3px;
    background: linear-gradient(180deg, #ffe88a 0%, #f0a420 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
}
.rv-live-strip__sub,
.rv-promos__sub {
    font-size: 11px;
    color: var(--rv-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.rv-live-strip__dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #ff4c35;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px #ff4c35;
    animation: rv-live-pulse 1.5s ease-in-out infinite;
}
@keyframes rv-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.7); }
}
.rv-live-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.rv-live-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 207, 50, 0.35);
    background:
        radial-gradient(120% 100% at 50% 0%, var(--lc-a, #2b1b08) 0%, var(--lc-b, #060300) 60%),
        linear-gradient(180deg, #1a0e02, #060300);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    cursor: pointer;
    isolation: isolate;
}
.rv-live-card::before {
    content: var(--lc-glyph, "\2660");
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 76px;
    line-height: 1;
    color: var(--lc-a, #ffd34a);
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.65), 0 0 28px color-mix(in srgb, var(--lc-a, #ffd34a) 35%, transparent);
    opacity: 0.85;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
    z-index: 1;
    transform: translateY(-6px);
    transition: transform 280ms ease;
}
.rv-live-card::after {
    content: "";
    position: absolute;
    inset: -20% -50%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 700ms ease;
    z-index: 2;
}
.rv-live-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--lc-a, #ffd34a) 85%, white);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55),
                0 0 0 1px color-mix(in srgb, var(--lc-a, #ffd34a) 70%, transparent);
}
.rv-live-card:hover::after { transform: translateX(60%); }
.rv-live-card:hover::before { transform: translateY(-10px) scale(1.06); }
.rv-live-card__label {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 3;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.rv-live-card__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 76, 53, 0.6);
    color: #ffd0c5;
}
.rv-live-card__tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4c35;
    box-shadow: 0 0 6px #ff4c35;
    animation: rv-live-pulse 1.5s ease-in-out infinite;
}
.rv-live-card--baccarat { --lc-a: #3ec1ff; --lc-b: #061a2a; --lc-glyph: "\265F"; }
.rv-live-card--roulette { --lc-a: #ff4c35; --lc-b: #2a0606; --lc-glyph: "\26AB"; }
.rv-live-card--blackjack{ --lc-a: #ffd34a; --lc-b: #1f1502; --lc-glyph: "\2660"; }
.rv-live-card--sicbo    { --lc-a: #4fe39a; --lc-b: #062a18; --lc-glyph: "\2685"; }
.rv-live-card--lottery  { --lc-a: #b46bff; --lc-b: #1f0a2a; --lc-glyph: "\1F3B0"; }

/* --- F. Promotions section ---------------------------------- */
.rv-promos {
    width: min(100% - 32px, var(--rv-container));
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
}
.rv-promos__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 14px;
    border-right: 1px solid var(--rv-line);
    min-width: 160px;
}
.rv-promo-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.rv-promo-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    padding: 18px 16px 16px;
    min-height: 130px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 207, 50, 0.35);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
    background:
        radial-gradient(120% 100% at 100% 0%, var(--pc-a, #ffae3a) 0%, transparent 55%),
        linear-gradient(180deg, var(--pc-b, #2a1502) 0%, #060300 100%);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
}
.rv-promo-card::before {
    content: var(--pc-glyph, "\2605");
    position: absolute;
    right: -10px;
    bottom: -22px;
    font-size: 120px;
    line-height: 1;
    color: var(--pc-a, #ffae3a);
    opacity: 0.18;
    filter: drop-shadow(0 0 12px var(--pc-a, #ffae3a));
    z-index: 0;
    pointer-events: none;
}
.rv-promo-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--pc-a, #ffae3a) 85%, white);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55),
                0 0 0 1px color-mix(in srgb, var(--pc-a, #ffae3a) 70%, transparent);
}
.rv-promo-card__tag {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid color-mix(in srgb, var(--pc-a, #ffae3a) 60%, transparent);
    color: color-mix(in srgb, var(--pc-a, #ffae3a) 75%, white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.rv-promo-card__title {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.3px;
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--pc-a, #ffae3a) 50%, #fff) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.rv-promo-card__copy {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.35;
}
.rv-promo-card__cta {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--rv-gold-grad);
    color: #1a1100;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 12px rgba(240, 164, 32, 0.35);
}
.rv-promo--welcome  { --pc-a: #ffd34a; --pc-b: #2a1f02; --pc-glyph: "\1F381"; }
.rv-promo--cashback { --pc-a: #4fe39a; --pc-b: #062a18; --pc-glyph: "\1F4B0"; }
.rv-promo--referral { --pc-a: #3ec1ff; --pc-b: #061a2a; --pc-glyph: "\1F465"; }
.rv-promo--vip      { --pc-a: #b46bff; --pc-b: #1f0a2a; --pc-glyph: "\1F451"; }

/* --- G. Winners ticker -------------------------------------- */
.rv-winners {
    width: min(100% - 32px, var(--rv-container));
    margin: 22px auto 0;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.92), rgba(8, 8, 8, 0.92));
    border: 1px solid var(--rv-line);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.rv-winners__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--rv-gold);
    padding-right: 12px;
    border-right: 1px solid var(--rv-line);
}
.rv-winners__viewport {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.rv-winners__track {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-width: max-content;
    animation: revamp-marquee 60s linear infinite;
    will-change: transform;
}
.rv-winners:hover .rv-winners__track {
    animation-play-state: paused;
}
.rv-winner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: rgba(255, 207, 50, 0.05);
    border: 1px solid var(--rv-line-soft);
    border-radius: 999px;
    font-size: 12px;
    color: var(--rv-text);
    white-space: nowrap;
}
.rv-winner__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rv-gold-grad);
    color: #1a1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.rv-winner__name { font-weight: 700; color: var(--rv-text-strong); }
.rv-winner__game { color: var(--rv-muted); font-size: 11px; }
.rv-winner__amount {
    margin-left: 4px;
    font-weight: 800;
    color: #4fe39a;
    font-size: 12.5px;
}

/* --- H. Responsive ------------------------------------------ */
@media (max-width: 1100px) {
    .rv-live-cards  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .rv-promo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 810px) {
    .rv-live-strip,
    .rv-promos {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .rv-live-strip__head,
    .rv-promos__head {
        border-right: 0;
        border-bottom: 1px solid var(--rv-line);
        padding-right: 0;
        padding-bottom: 10px;
        min-width: 0;
    }
    .rv-live-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rv-live-card::before { font-size: 56px; }
    .rv-live-card__label { font-size: 12px; }
    .rv-promo-card { min-height: 110px; padding: 14px 12px; }
    .rv-promo-card__title { font-size: 18px; }
    .rv-winners { width: calc(100% - 16px); padding: 8px 10px; gap: 10px; }
    .rv-winners__label { font-size: 10px; padding-right: 8px; }
}
@media (max-width: 480px) {
    .rv-live-cards  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rv-promo-cards { grid-template-columns: 1fr; }
}


/* ============================================================
   PATCH 2026-05-23 (mobile-header)
   - Login/Register pills were flush to the right edge because
     mobile padding was 0 4px. Widen to 12px and prevent the auth
     row from wrapping.
   - Kill the legacy red inset glow on the Login pill bleeding
     through from style.css's .header .login rule.
   ============================================================ */

@media only screen and (max-width: 810px) {
    .revamp-header__inner {
        padding: 0 12px !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .revamp-header__right { gap: 6px !important; }
    .revamp-header__right,
    .revamp-header__auth {
        flex-wrap: nowrap !important;
        display: inline-flex !important;
    }
    .revamp-header__auth { gap: 6px !important; }
    .revamp-header__lang .lang-switcher__label--full { display: none !important; }
    .revamp-header__lang .lang-switcher__label--short { display: inline !important; }
    .revamp-header__lang .lang-switcher__btn {
        padding: 6px 10px !important;
        gap: 4px !important;
    }
}

@media only screen and (max-width: 380px) {
    .revamp-header__inner { padding: 0 10px !important; gap: 6px !important; }
    .revamp-btn,
    .header .el-button.revamp-btn {
        padding: 0 10px !important;
        font-size: 11px !important;
        height: 32px !important;
        line-height: 32px !important;
        min-width: 0 !important;
    }
}

/* Kill legacy red/orange inset shadow on Login ghost pill */
.header .login.revamp-btn,
.header .login.revamp-btn--ghost {
    width: auto !important;
    margin-left: 0 !important;
    box-shadow: none !important;
    background: rgba(255, 207, 50, 0.08) !important;
}

.header .regist.revamp-btn,
.header .regist.revamp-btn--gold {
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-shadow: 0 6px 14px rgba(240, 164, 32, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.15) !important;
}

/* Marquee inside the hero on mobile should not overflow the rounded card */
@media only screen and (max-width: 810px) {
    .banner-container.revamp-hero .marquee-box,
    .revamp-hero .marquee-box {
        width: calc(100% - 16px) !important;
        margin: 8px auto 10px !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
    }
    .marquee-box .marquee {
        gap: 32px !important;
        font-size: 12px !important;
    }
}


/* ============================================================
   RV-REVAMP v5 — My-info popup polish pass (2026-05-23)
   Fixes:
     - oper-btn locked to legacy 1.62rem width (61px) → fill grid cell
     - "password" label breaking mid-word
     - Logout button getting cut off the bottom
     - Stray red/brown outer frame from legacy el-dialog wrapper
   Additive only.
   ============================================================ */

/* The visible "My info" popup body — give it breathing room. */
.popup.popup-profile,
.popup-form.popup-profile,
.popup-profile {
    width: min(92vw, 480px) !important;
    max-height: 90vh !important;
    padding-bottom: 22px !important;
    overflow: visible !important;
}

/* Let the popup grow tall enough to show the Logout button (no inner
   scroll — the modal itself already has max-height: 90vh). */
.popup-profile .popup-userinfo-container,
.popup-profile .p-content {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 18px !important;
}

/* Kill the legacy wrapper border that bleeds a brown frame around the
   panel on the dark page. */
.el-dialog__wrapper .el-dialog,
.popup-profile .el-dialog,
.popup-profile.el-dialog,
body > .v-modal {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* --- Action row (History / Bank / Password) ---------------------- */

/* The legacy .popup-profile .oper-line .oper-btn rule pins a square
   1.62rem button.  Force the buttons to fill their grid cell so they
   actually look like cards. */
.popup-profile .oper-line,
.popup.popup-profile .oper-line {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 14px !important;
    justify-content: stretch !important;
    justify-items: stretch !important;
}

.popup-profile .oper-line .oper-btn,
.popup.popup-profile .oper-line .oper-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 92px !important;
    padding: 14px 8px !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Don't let single-word labels (e.g. "password") wrap mid-word. */
.popup-profile .oper-line .oper-btn .text,
.popup-profile .oper-line .oper-btn span,
.popup.popup-profile .oper-line .oper-btn .text,
.popup.popup-profile .oper-line .oper-btn span {
    display: block !important;
    width: 100% !important;
    color: var(--rv-text) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-shadow: none !important;
    margin-top: 0 !important;
}

.popup-profile .oper-line .oper-btn .icon,
.popup.popup-profile .oper-line .oper-btn .icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 22px !important;
    color: var(--rv-gold) !important;
    background: transparent !important;
    border: 0 !important;
}

/* --- Logout pill: always rendered, gold gradient ---------------- */
.popup-profile .btn-line,
.popup.popup-profile .btn-line {
    margin: 18px 0 6px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.popup-profile .btn-line .btn,
.popup-profile .btn-line button,
.popup-profile .btn-line .el-button,
.popup.popup-profile .btn-line .btn,
.popup.popup-profile .btn-line button,
.popup.popup-profile .btn-line .el-button {
    background: linear-gradient(180deg, #ffe070 0%, #f0a420 100%) !important;
    background-image: linear-gradient(180deg, #ffe070 0%, #f0a420 100%) !important;
    color: #1a1200 !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-width: 180px !important;
    height: 44px !important;
    line-height: 44px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 6px 14px rgba(240, 164, 32, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.15) !important;
    text-shadow: none !important;
    padding: 0 24px !important;
}

/* --- Mobile tweak (popup goes nearly full-width) ----------------- */
@media (max-width: 600px) {
    .popup.popup-profile,
    .popup-form.popup-profile,
    .popup-profile {
        width: 94vw !important;
        max-height: 92vh !important;
    }
    .popup-profile .oper-line .oper-btn .text,
    .popup.popup-profile .oper-line .oper-btn .text {
        font-size: 11px !important;
    }
}


/* ============================================================
   RV-REVAMP v5.1 — kill the duplicate el-dialog close footer
   that was covering the real Log out button, and force the
   popup to grow tall enough to fit its content.
   ============================================================ */

/* Reposition .close-footer as a small top-right X overlaid on the popup
   instead of a wide pill below it, so it stops covering the Log out
   button but still gives the user a way to dismiss the dialog. */
.el-dialog__body > .close-footer {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 50 !important;
    display: block !important;
}

.el-dialog__body > .close-footer .btn-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 207, 50, 0.10) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 207, 50, 0.35) !important;
    color: var(--rv-gold) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    position: relative !important;
    box-shadow: none !important;
}

.el-dialog__body > .close-footer .btn-close::before {
    content: "\00d7" !important;          /* unicode "×" */
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: var(--rv-gold) !important;
    background: none !important;
}

.el-dialog__body > .close-footer .btn-close:hover {
    background: rgba(255, 207, 50, 0.18) !important;
    border-color: var(--rv-gold) !important;
}

/* The el-dialog__body needs position: relative for the absolute X to
   anchor against it. */
.el-dialog__body { position: relative !important; }


/* Make the popup grow to fit its content so Log out is always inside the
   panel (no overflow). */
.popup.popup-profile,
.popup-form.popup-profile,
.popup-profile {
    height: auto !important;
    min-height: 0 !important;
}

.popup-profile .popup-userinfo-container {
    margin-bottom: 0 !important;
}




/* ============================================================
   RV-REVAMP v5.3 — popup alignment + close-button fixes
   - .submit was display:block, so justify-content:center on it did
     nothing; the inline-flex button hugged the left edge.  Make it
     a flex container so every submit (Login, Register, Save, etc.)
     centers within the form.
   - The close X was 32px, anchored to the dialog body's outer
     padding, so it floated in the empty gutter beside the popup.
     Bigger, gold-pill, and pinned to the popup's actual top-right
     corner with calc()-based positioning.
   - Also center the .input-container / .input-wrap rows that were
     sitting off-axis on narrower popups.
   ============================================================ */

/* --- Centre every submit pill (Login / Register / Save / etc.) --- */
.popup .submit,
.popup-form .submit,
.popup .form .submit,
.popup .form-signin .submit,
.popup .form-signup .submit,
.submit {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
}

.popup .submit > *,
.popup-form .submit > *,
.submit > * {
    margin: 0 auto !important;
}

/* --- Generic centring of the form column ----------------------- */
.popup .popup-account-container,
.popup-account-container {
    align-items: stretch !important;
    flex-direction: column !important;
}

.popup .popup-account-container .form,
.popup-account-container .form {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
}

/* --- The Phone-number row in the register form had the country
       picker squeezed to the left of the input.  Keep it tidy. ---- */
.popup .input-container.phone-number,
.popup .input-container:has(.input-select),
.input-container:has(.input-select) {
    display: flex !important;
    gap: 8px !important;
    align-items: stretch !important;
}

.popup .input-container .input-select,
.input-container .input-select {
    flex: 0 0 auto !important;
    min-width: 80px !important;
}

/* --- Close X: bigger, more obvious, and pinned to the popup's
       actual top-right corner.  The popup is centred inside the
       el-dialog__body which has 24px horizontal padding, so the
       popup's right edge is right:24px from the body right.
       The p-header takes ~60px above the popup, plus 30px for the
       dialog body offset, so anchoring at top: ~10px puts the X
       above the popup; we want it INSIDE the popup, so we pin to
       top: 92px (just inside the popup's top edge) and use a
       transform fall-back so it always lines up. ---------------- */
.el-dialog__body > .close-footer,
.el-dialog__body > .close-top {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 10001 !important;     /* above .popup which is z-index: 9999 */
    display: block !important;
    opacity: 1 !important;
}

.el-dialog__body > .close-footer * { opacity: 1 !important; }

/* Only show one of the two — prefer .close-footer (Vue handler same
   on both, but we don't want a double-X). */
.el-dialog__body > .close-top { display: none !important; }

.el-dialog__body > .close-footer .btn-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(180deg, #ffe070 0%, #f0a420 100%) !important;
    background-image: linear-gradient(180deg, #ffe070 0%, #f0a420 100%) !important;
    border: 0 !important;
    color: #1a1200 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    position: relative !important;
    box-shadow: 0 6px 14px rgba(240, 164, 32, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-shadow: none !important;
}

.el-dialog__body > .close-footer .btn-close::before {
    content: "\00d7" !important;
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: "Helvetica Neue", Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #1a1200 !important;
    background: none !important;
    margin: 0 !important;
}

.el-dialog__body > .close-footer .btn-close::after { content: none !important; }

.el-dialog__body > .close-footer .btn-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(240, 164, 32, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.15) !important;
    filter: brightness(1.05);
}

/* el-dialog__body anchors the absolute close button. */
.el-dialog__body { position: relative !important; }

/* On the My Info popup the popup has no p-header above it (the
   "My info" chip sits inline), so move the X up to the very top.
   We can target .popup-profile via :has() (modern browsers). */
.el-dialog__body:has(.popup-profile) > .close-footer {
    top: 12px !important;
    right: 16px !important;
}

/* Mobile tweak: pull the X tight to the corner */
@media (max-width: 600px) {
    .el-dialog__body > .close-footer {
        top: 76px !important;
        right: 16px !important;
    }
    .el-dialog__body > .close-footer .btn-close {
        width: 36px !important;
        height: 36px !important;
    }
    .el-dialog__body > .close-footer .btn-close::before { font-size: 22px !important; }
    .el-dialog__body:has(.popup-profile) > .close-footer {
        top: 8px !important;
        right: 8px !important;
    }
}



/* ============================================================
   RV-REVAMP v6 — /user/history page restyle (2026-05-23)
   The history page ships with its own inline <style> block that
   uses a light theme (white tables, blue buttons, gray borders).
   Override every meaningful selector here to match the dark/gold
   revamp theme.  Append-only.
   ============================================================ */

/* Page shell: respect the fixed header on top */
.user-view.user-view-d {
    width: min(100% - 32px, var(--rv-container)) !important;
    margin: calc(86px + 22px) auto 32px !important;
    padding: 0 !important;
    background: transparent !important;
}

.history-container {
    width: 100% !important;
    background: var(--rv-panel) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius-lg) !important;
    box-shadow: var(--rv-shadow-card) !important;
    padding: 24px !important;
    color: var(--rv-text) !important;
}

/* --- Tabs row (Bet / Refund / Transaction history) --- */
.history-container .history-tabs {
    display: flex !important;
    gap: 8px !important;
    border-bottom: 1px solid var(--rv-line) !important;
    margin-bottom: 22px !important;
    padding-bottom: 0 !important;
}

.history-container .tab-button {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    color: var(--rv-muted) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 18px !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.history-container .tab-button:hover {
    color: var(--rv-gold) !important;
}

.history-container .tab-button.active {
    color: var(--rv-gold) !important;
    border-bottom-color: var(--rv-gold) !important;
}

/* --- Filter row (date select + Search button) --- */
.history-container .history-filters {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.history-container .history-filters select {
    background: rgba(20, 20, 20, 0.7) !important;
    color: var(--rv-text) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius-pill) !important;
    padding: 10px 18px !important;
    height: 40px !important;
    min-width: 160px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23ffcc33' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 38px !important;
    cursor: pointer !important;
}

.history-container .history-filters select option {
    background: #0d0d0d !important;
    color: var(--rv-text) !important;
}

.history-container #searchBtn {
    background: var(--rv-gold-grad) !important;
    background-image: var(--rv-gold-grad) !important;
    color: #1a1200 !important;
    border: 0 !important;
    border-radius: var(--rv-radius-pill) !important;
    height: 40px !important;
    min-width: 110px !important;
    padding: 0 22px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 6px 14px rgba(240, 164, 32, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.15) !important;
    text-shadow: none !important;
    cursor: pointer !important;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.history-container #searchBtn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

/* --- Summary panel (Total bet / won / lost) --- */
.history-container #historySummary {
    background: linear-gradient(180deg, rgba(255, 207, 50, 0.05), rgba(255, 207, 50, 0)) !important;
    border: 1px solid var(--rv-line) !important;
    border-radius: var(--rv-radius) !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    color: var(--rv-text) !important;
    box-shadow: var(--rv-shadow-soft) !important;
}

.history-container #historySummary strong {
    color: var(--rv-muted) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.04em !important;
}

.history-container #historySummary .summary-grid {
    display: flex !important;
    gap: 28px !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
}

.history-container #historySummary span {
    color: var(--rv-text-strong) !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    margin-left: 6px !important;
}

/* Loss/win color hints (kept distinguishable on dark bg) */
.history-container #historySummary span[style*="color: red"],
.history-container #historySummary span[style*="color:red"]   { color: var(--rv-red) !important; }
.history-container #historySummary span[style*="color: green"],
.history-container #historySummary span[style*="color:green"] { color: #6fd97a !important; }
.history-container #historySummary span[style*="color: blue"],
.history-container #historySummary span[style*="color:blue"]  { color: var(--rv-gold) !important; }

/* --- Loading indicator --- */
.history-container #loadingIndicator {
    color: var(--rv-gold) !important;
    padding: 30px 0 !important;
}

.history-container #loadingIndicator p { color: var(--rv-muted) !important; }

/* --- Data table --- */
.history-container .table-responsive {
    overflow-x: auto !important;
    border-radius: var(--rv-radius) !important;
    border: 1px solid var(--rv-line) !important;
    background: rgba(20, 20, 20, 0.6) !important;
}

.history-container .history-table {
    width: 100% !important;
    min-width: 600px !important;
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: var(--rv-text) !important;
}

.history-container .history-table thead tr {
    background: rgba(255, 207, 50, 0.08) !important;
}

.history-container .history-table th {
    color: var(--rv-gold) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rv-line) !important;
    padding: 12px 14px !important;
    text-align: left !important;
    background: transparent !important;
}

.history-container .history-table td {
    color: var(--rv-text) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rv-line-soft) !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
    background: transparent !important;
}

.history-container .history-table tbody tr {
    transition: background 0.18s ease;
}

.history-container .history-table tbody tr:hover {
    background: rgba(255, 207, 50, 0.06) !important;
}

.history-container .detail-row,
.history-container .detail-row:hover {
    background: rgba(255, 207, 50, 0.04) !important;
    cursor: default !important;
}

.history-container .detail-content {
    padding: 14px 18px !important;
    line-height: 1.7 !important;
    color: var(--rv-text) !important;
}

.history-container .detail-label {
    color: var(--rv-muted) !important;
    font-weight: 700 !important;
    min-width: 150px !important;
}

.history-container .detail-value {
    color: var(--rv-text) !important;
}

/* --- Empty state ("No data") --- */
.history-container #dataTableContainer:empty::after,
.history-container .no-data,
.history-container .empty-state {
    content: "No data" !important;
    display: block !important;
    color: var(--rv-muted) !important;
    text-align: center !important;
    padding: 40px 0 !important;
    font-size: 15px !important;
}

/* If the controller renders "No data" as plain text inside the container */
.history-container #dataTableContainer {
    color: var(--rv-muted) !important;
    text-align: center !important;
    font-size: 15px !important;
    min-height: 60px !important;
}

.history-container #dataTableContainer .history-table {
    text-align: left !important;
}

/* --- Pagination --- */
.history-container .pagination-wrapper {
    margin-top: 20px !important;
    text-align: center !important;
}

.history-container .pagination-container {
    display: inline-flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.history-container .pagination-btn {
    background: rgba(255, 207, 50, 0.06) !important;
    border: 1px solid var(--rv-line) !important;
    color: var(--rv-text) !important;
    border-radius: var(--rv-radius-pill) !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    min-width: 36px !important;
    cursor: pointer !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.history-container .pagination-btn:hover {
    background: rgba(255, 207, 50, 0.16) !important;
    border-color: var(--rv-gold) !important;
    color: var(--rv-gold) !important;
}

.history-container .pagination-btn.active {
    background: var(--rv-gold-grad) !important;
    background-image: var(--rv-gold-grad) !important;
    color: #1a1200 !important;
    border-color: transparent !important;
    box-shadow: 0 4px 10px rgba(240, 164, 32, 0.28) !important;
}

/* Responsive: keep filters one-per-line on phones */
@media (max-width: 600px) {
    .user-view.user-view-d {
        margin-top: calc(64px + 14px) !important;
        width: calc(100% - 16px) !important;
    }
    .history-container { padding: 14px !important; }
    .history-container .history-filters select { min-width: 100% !important; }
    .history-container #searchBtn { width: 100% !important; }
    .history-container .history-table th,
    .history-container .history-table td { padding: 10px 8px !important; font-size: 12px !important; }
}

/* ============================================================
   PATCH 2026-05-23 (ui-cleanup)
   1. Tab text clipping in popups: .p-header had only 24px right
      padding but the absolute-positioned close-X (32-40px @ right:8px)
      occupies the right ~50-60px. Reserve space so the rightmost tab
      ("Maintenance", "Mantenimiento", etc.) doesn't pass under the X.
   2. Sticky header overlapping promo card titles: html scroll-padding
      so in-page nav lands below the 86px fixed header.
   ============================================================ */

/* Reserve room for the top-right close X on tab bars */
.el-dialog__body > .p-header,
.popup > .p-header,
.popup-form .p-header,
.popup .p-header {
    padding-right: 60px !important;
    box-sizing: border-box !important;
}

/* If header-box has its own bg, keep it within the reserved area */
.popup .header-box,
.el-dialog__body .header-box {
    max-width: 100% !important;
    overflow: visible !important;
}

/* Slightly shrink tab text when locale-strings push the row past
   the reserved space (Spanish "Mantenimiento" is 13 chars). */
.popup-reward .p-header .tab-btn,
.popup-form .p-header .tab-btn,
.el-dialog__body .p-header .tab-btn {
    white-space: nowrap !important;
    flex: 0 1 auto !important;
}

@media (max-width: 700px) {
    .el-dialog__body > .p-header,
    .popup > .p-header,
    .popup-form .p-header,
    .popup .p-header {
        padding-right: 50px !important;
    }
    .popup-reward .p-header .tab-btn,
    .popup-form .p-header .tab-btn,
    .el-dialog__body .p-header .tab-btn {
        font-size: 12.5px !important;
        padding: 8px 12px !important;
    }
}

/* Sticky header overlapping anchored sections (promo strip, etc.):
   give scroll anchoring a top offset equal to the fixed header. */
html {
    scroll-padding-top: 100px;
}

/* Specifically pad the promo strip and live winners strip when they
   sit immediately under the fixed header on first paint. The header
   is 86px (or 64px on mobile) tall. */
.rv-promos,
.rv-live-strip {
    scroll-margin-top: 100px;
}

@media only screen and (max-width: 810px) {
    html { scroll-padding-top: 80px; }
    .rv-promos,
    .rv-live-strip { scroll-margin-top: 80px; }
}

/* ============================================================
   PATCH 2026-05-23 (close-X-clear-tabs)
   Stop the close X from overlapping the tab strip and the border
   line under it:
   1. Lift the X up and out (negative top so its center sits on the
      panel's top-right corner, not on the tab row).
   2. Give the X a solid dark "puck" background that masks the
      tab-row border line passing under it.
   3. Open up extra right padding on the tab row so the rightmost
      tab text never approaches the X.
   ============================================================ */

.el-dialog__body > .close-footer,
.el-dialog__wrapper .el-dialog__body > .close-footer {
    position: absolute !important;
    top: -14px !important;
    right: -14px !important;
    left: auto !important;
    bottom: auto !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 60 !important;
    display: block !important;
}

.el-dialog__body > .close-footer .btn-close,
.el-dialog__wrapper .el-dialog__body > .close-footer .btn-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    /* Solid dark "puck" so anything underneath (border, tab text)
       is fully masked, with a gold ring + glow that stands out
       against any popup. */
    background: #0a0805 !important;
    background-image: none !important;
    border: 1px solid rgba(255, 207, 50, 0.55) !important;
    color: var(--rv-gold) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    position: relative !important;
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.6),         /* dark halo masking line below */
        0 4px 10px rgba(0, 0, 0, 0.6),
        0 0 14px rgba(255, 207, 50, 0.25) !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

.el-dialog__body > .close-footer .btn-close::before,
.el-dialog__wrapper .el-dialog__body > .close-footer .btn-close::before {
    content: "\00d7" !important;
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: var(--rv-gold) !important;
    background: none !important;
}

.el-dialog__body > .close-footer .btn-close:hover,
.el-dialog__wrapper .el-dialog__body > .close-footer .btn-close:hover {
    background: #1a1408 !important;
    border-color: var(--rv-gold) !important;
    transform: scale(1.05);
}

/* Now the X is OUTSIDE the tab strip — we can relax the reserved
   right padding I added before so the tab row uses its full width. */
.el-dialog__body > .p-header,
.popup > .p-header,
.popup-form .p-header,
.popup .p-header {
    padding-right: 24px !important;
}

@media (max-width: 700px) {
    .el-dialog__body > .p-header,
    .popup > .p-header,
    .popup-form .p-header,
    .popup .p-header {
        padding-right: 20px !important;
    }
    .el-dialog__body > .close-footer,
    .el-dialog__wrapper .el-dialog__body > .close-footer {
        top: -12px !important;
        right: -12px !important;
        width: 34px !important;
        height: 34px !important;
    }
    .el-dialog__body > .close-footer .btn-close,
    .el-dialog__wrapper .el-dialog__body > .close-footer .btn-close {
        width: 34px !important;
        height: 34px !important;
    }
    .el-dialog__body > .close-footer .btn-close::before {
        font-size: 18px !important;
    }
}

/* The el-dialog__body needs overflow: visible so the half-outside X
   doesn't get clipped at the panel's rounded corner. */
.el-dialog__body { overflow: visible !important; }

/* ============================================================
   PATCH 2026-05-23 (polish-dialog-alignment)
   1. The legacy .header-box uses position:relative + top:44px
      which shoves the tab pills DOWN into the p-header's
      border-bottom line, so the border cuts through the tab text.
      Reset header-box positioning and let the flex parent center
      the tabs cleanly.
   2. Drop the border-bottom on .p-header entirely — the tab pills
      themselves are visual enough; the border was decorative and
      caused the line-through-text effect.
   3. Tighten and properly center the tab text.
   4. Collapse the nested inner panel ring inside .popup so the
      dialog reads as a single dark card.
   ============================================================ */

/* 1. Reset header-box absolute positioning */
.el-dialog__body .header-box,
.popup .header-box,
.popup-form .header-box,
.popup-reward .header-box {
    position: static !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* 2. Drop the border line under .p-header — it was passing under tabs */
.el-dialog__body > .p-header,
.popup > .p-header,
.popup-form .p-header,
.popup .p-header {
    border-bottom: 0 !important;
    padding: 18px 24px 14px !important;
    margin: 0 -24px 14px !important;
    min-height: 0 !important;
    background: transparent !important;
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
}

/* 3. Tab pills: ensure properly centered text + consistent type */
.el-dialog__body .tab-btn,
.popup .tab-btn,
.popup-form .tab-btn,
.popup-reward .tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    text-transform: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    padding: 10px 22px !important;
    min-height: 36px !important;
    white-space: nowrap !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    flex: 0 1 auto !important;
}

/* 4. The inner panel (.popup > .p-content + nested wrappers) was
   rendering its own rounded gold ring inside the dialog — collapse it
   so the el-dialog__body card is the only ring. */
.el-dialog__body > .popup,
.el-dialog__body .popup-account-container,
.el-dialog__body .popup-userinfo-container,
.el-dialog__body .popup-reset-password-container {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* The .p-content within .popup also had an inner border-radius */
.el-dialog__body .popup .p-content,
.el-dialog__body .p-content {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 4px 0 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* 5. Center common content sections that were sometimes left-aligned */
.el-dialog__body .submit,
.popup .submit {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 18px auto !important;
    width: 100% !important;
}

.el-dialog__body .forget,
.popup .forget {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 8px 0 !important;
}

/* 6. PAYMENT METHOD label and AMOUNT label centering — these are
   form-group labels in the deposit popup, ensure they read left-
   aligned but inputs are 100% width */
.el-dialog__body .form-group label,
.popup .form-group label,
.popup-form .form-group label {
    display: block !important;
    text-align: left !important;
    margin-bottom: 6px !important;
    font-weight: 700 !important;
    color: var(--rv-gold) !important;
    font-size: 12px !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
}

/* 7. Dialog body min-height removed — let it size to content,
      and add top padding so content isn't flush against the rounded corner */
.el-dialog__body,
.el-dialog__body.popup,
.popup-form .el-dialog__body {
    min-height: 0 !important;
    padding-top: 8px !important;
}

/* ============================================================
   PATCH 2026-05-23 (polish-v2)
   - Capitalize tab labels (auth.login/register source is lowercase
     in EN/ES lang files; Thai is unaffected since :first-letter
     doesn't apply to non-cased scripts).
   ============================================================ */

.el-dialog__body .tab-btn,
.popup .tab-btn,
.popup-form .tab-btn,
.popup-reward .tab-btn {
    text-transform: capitalize !important;
}

/* ============================================================
   PATCH 2026-05-23 (polish-v3): keep tabs on one row
   The earlier polish set header-box flex-wrap:wrap which pushed
   "Maintenance" to row 2. Force nowrap and add horizontal scroll
   as graceful fallback when locale strings are very long.
   ============================================================ */

.el-dialog__body .header-box,
.popup .header-box,
.popup-form .header-box,
.popup-reward .header-box {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.el-dialog__body .header-box::-webkit-scrollbar,
.popup .header-box::-webkit-scrollbar,
.popup-form .header-box::-webkit-scrollbar,
.popup-reward .header-box::-webkit-scrollbar { display: none; }

/* Shrink tabs slightly so 3 fit comfortably on a 520px dialog */
.el-dialog__body .tab-btn,
.popup .tab-btn,
.popup-form .tab-btn,
.popup-reward .tab-btn {
    padding: 9px 16px !important;
    font-size: 13.5px !important;
}
