/*==================================================================================
  LOBBY PAGE — Hero Splide Carousel
  ==================================================================================*/

.lobby-hero-splide-wrap {
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #13264a 40%, #1a3060 100%);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    padding: 55px 5px 10px;
    margin-bottom: 0;
}

.lobby-hero-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(194, 167, 111, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Splide container overrides ---- */
#lobbyBannerCarousel {
    position: relative;
    z-index: 2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-height: 220px; /* match .lobby-slide-inner min-height so skeleton has height before slides load */
}

#lobbyBannerCarousel .splide__track {
    border-radius: 14px;
}

#lobbyBannerCarousel .splide__slide {
    position: relative;
    overflow: hidden;
    width: 100%; /* fallback before Splide sets inline width */
    flex-shrink: 0; /* prevent collapsing in flex */
}

/* Use the slide wrapper to enforce aspect ratio without breaking Splide width calculation */
#lobbyBannerCarousel .splide__slide .lobby-slide-inner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 30%; /* tighter crop — images centered via object-position */
    min-height: 220px;
    overflow: hidden;
}

#lobbyBannerCarousel .splide__slide .lobby-slide-inner img,
#lobbyBannerCarousel .splide__slide .lobby-slide-inner video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#lobbyBannerCarousel .splide__slide .lobby-slide-inner video {
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
}

/* Gradient overlay on slides — covers the lobby-slide-inner area */
#lobbyBannerCarousel .splide__slide .lobby-slide-inner::after {
    content: none;
}

/* ---- Text overlay ---- */
.lobby-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 40px 36px;
    z-index: 3;
    background: linear-gradient(transparent 0%, rgba(10, 22, 40, 0.6) 60%, rgba(10, 22, 40, 0.9) 100%);
}

.lobby-hero-tag {
    display: inline-block;
    background: rgba(194, 167, 111, 0.2);
    border: 1px solid rgba(194, 167, 111, 0.4);
    color: #f3c14a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.lobby-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #e3eeff;
    margin: 0 0 8px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.lobby-hero-desc {
    color: #bccde0;
    font-size: 15px;
    margin: 0 0 18px;
    max-width: 480px;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.lobby-hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #c2a76f, #d4b97f);
    color: #000;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lobby-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 167, 111, 0.3);
    color: #000;
}

/* ---- Splide Arrow Overrides ---- */
#lobbyBannerCarousel .splide__arrow {
    background: rgba(13, 28, 53, 0.85);
    border: 1px solid rgba(194, 167, 111, 0.3);
    width: 40px;
    height: 40px;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

#lobbyBannerCarousel .splide__arrow:hover {
    background: rgba(34, 60, 102, 0.9);
    border-color: rgba(194, 167, 111, 0.6);
    box-shadow: 0 0 12px rgba(194, 167, 111, 0.2);
    opacity: 1;
}

#lobbyBannerCarousel .splide__arrow svg {
    fill: #c2a76f;
}

#lobbyBannerCarousel:hover .splide__arrow {
    opacity: 0.8;
}

@media (hover: none) and (pointer: coarse) {
    #lobbyBannerCarousel .splide__arrow {
        opacity: 0.5;
    }
}

/* ---- Splide Pagination Overrides ---- */
#lobbyBannerCarousel .splide__pagination {
    bottom: 16px;
    position: absolute;
    z-index: 5;
}

#lobbyBannerCarousel .splide__pagination__page {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 12px;
    height: 12px;
    margin: 0 5px;
    opacity: 1;
    transition: all 0.25s ease;
}

#lobbyBannerCarousel .splide__pagination__page.is-active {
    background: #c2a76f;
    border-color: #c2a76f;
    transform: scale(1.25);
}

/* ---- Responsive Hero ---- */
@media (min-width: 768px) {
    .lobby-hero-title {
        font-size: 34px;
    }
    .lobby-hero-overlay {
        padding: 48px 48px 40px;
    }
}

@media (min-width: 1025px) {
    .lobby-hero-splide-wrap {
        padding: 32px 15px 16px;
    }
    .lobby-hero-title {
        font-size: 40px;
    }
    .lobby-hero-desc {
        font-size: 16px;
    }
    .lobby-hero-overlay {
        padding: 56px 56px 44px;
    }
}

@media (max-width: 640px) {
    .lobby-hero-splide-wrap {
        padding: 55px 5px 10px;
    }

    #lobbyBannerCarousel {
        min-height: 180px;
    }

    #lobbyBannerCarousel .splide__slide .lobby-slide-inner {
        padding-bottom: 37%; /* match 1352×500 image ratio — no side cropping */
        min-height: 180px;
    }
    .lobby-hero-overlay {
        padding: 24px 20px 20px;
    }
    .lobby-hero-title {
        font-size: 20px;
    }
    .lobby-hero-desc {
        font-size: 13px;
        margin-bottom: 14px;
        max-width: 100%;
    }
    .lobby-hero-tag {
        font-size: 9px;
        padding: 3px 10px;
        margin-bottom: 6px;
    }
    .lobby-hero-cta {
        font-size: 13px;
        padding: 10px 22px;
    }
    #lobbyBannerCarousel .splide__arrow {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    #lobbyBannerCarousel {
        min-height: 150px;
    }

    #lobbyBannerCarousel .splide__slide .lobby-slide-inner {
        padding-bottom: 37%; /* match 1352×500 image ratio — no side cropping */
        min-height: 150px;
    }

    /* Sync half-banner min-height with full-image banners */
    #lobbyBannerCarousel .splide__slide .lobby-slide-inner.lobby-slide-half {
        min-height: 150px;
    }
    .lobby-hero-overlay {
        padding: 16px 14px 14px;
    }
    .lobby-hero-title {
        font-size: 16px;
    }
    .lobby-hero-desc {
        display: none;
    }
    .lobby-hero-tag {
        font-size: 8px;
        padding: 2px 8px;
    }
    .lobby-hero-cta {
        font-size: 12px;
        padding: 8px 18px;
    }
    #lobbyBannerCarousel .splide__arrow {
        display: none;
    }

    #lobbyBannerCarousel .splide__pagination__page {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* Very small phones — reduce min-height further so 37% ratio governs */
@media (max-width: 375px) {
    #lobbyBannerCarousel {
        min-height: 145px;
    }

    #lobbyBannerCarousel .splide__slide .lobby-slide-inner {
        min-height: 145px;
    }

    /* Sync half-banner min-height with full-image banners */
    #lobbyBannerCarousel .splide__slide .lobby-slide-inner.lobby-slide-half {
        min-height: 145px;
    }
}

/* ---- Banner Skeleton Loader ---- */
.lobby-banner-skeleton {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(135deg, #0a1628 0%, #0d1c35 40%, #0a1628 100%);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.lobby-banner-skeleton.is-hidden {
    display: none;
}

.lobby-banner-skeleton-inner {
    padding: 48px 56px;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lobby-skeleton-block {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 200% 100%;
    border-radius: 6px;
    animation: lobbySkeletonShimmer 1.8s ease-in-out infinite;
}

.lobby-skeleton-tag {
    width: 120px;
    height: 22px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.lobby-skeleton-title {
    width: 100%;
    height: 52px;
    border-radius: 8px;
}

.lobby-skeleton-desc {
    width: 70%;
    height: 16px;
    border-radius: 4px;
}

.lobby-skeleton-cta {
    width: 160px;
    height: 46px;
    border-radius: 8px;
    margin-top: 8px;
}

@keyframes lobbySkeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 640px) {
    .lobby-banner-skeleton-inner {
        padding: 24px 20px;
        max-width: 100%;
        gap: 12px;
    }
    .lobby-skeleton-title {
        height: 36px;
    }
    .lobby-skeleton-desc {
        height: 14px;
    }
    .lobby-skeleton-cta {
        width: 130px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .lobby-banner-skeleton-inner {
        padding: 16px 14px;
        gap: 10px;
    }
    .lobby-skeleton-title {
        height: 28px;
    }
    .lobby-skeleton-desc {
        display: none;
    }
    .lobby-skeleton-cta {
        width: 110px;
        height: 32px;
    }
}

/*==================================================================================
  LOBBY — Jackpot Ticker / Winners Bar
  ==================================================================================*/

.lobby-ticker-bar {
    background: linear-gradient(135deg, #0a1628 0%, #13264a 50%, #0a1628 100%);
    border-top: 1px solid rgba(194, 167, 111, 0.2);
    border-bottom: 1px solid rgba(194, 167, 111, 0.2);
    padding: 0;
    position: relative;
    z-index: 5;
}

.lobby-ticker-inner {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    min-height: 48px;
}

.lobby-ticker-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.lobby-ticker-jackpot {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(194, 167, 111, 0.1);
    border: 1px solid rgba(194, 167, 111, 0.3);
    border-radius: 8px;
    padding: 5px 14px 5px 75px;
    white-space: nowrap;
    position: relative;
    animation: lobbyJackpotPulse 2s ease-in-out infinite;
}

@keyframes lobbyJackpotPulse {
    0%, 100% { border-color: rgba(194, 167, 111, 0.3); box-shadow: 0 0 0 rgba(194, 167, 111, 0); }
    50% { border-color: rgba(194, 167, 111, 0.7); box-shadow: 0 0 12px rgba(194, 167, 111, 0.15); }
}

.lobby-ticker-jackpot-icon {
    display: block;
    position: absolute;
    left: 10px;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    object-fit: contain;
    flex-shrink: 0;
    animation: lobbyTrophyBounce 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes lobbyTrophyBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* .lobby-ticker-jackpot-label removed — replaced by image */

.lobby-ticker-jackpot-amount {
    color: #f3c14a;
    font-size: 18px;
    font-weight: 700;
    font-family: 'CasinoNumbers', 'CasinoText', sans-serif;
    text-shadow: 0 0 12px rgba(194, 167, 111, 0.3);
}

.lobby-ticker-divider {
    width: 1px;
    height: 30px;
    background: rgba(194, 167, 111, 0.2);
    flex-shrink: 0;
}

.lobby-ticker-right {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.lobby-ticker-winners-label {
    color: #7a8ba8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: #0a1628;
    padding: 2px 8px;
    border-radius: 4px;
}

.lobby-ticker-winners-scroll {
    display: flex;
    gap: 30px;
    white-space: nowrap;
    animation: lobbyTickerScroll 30s linear infinite;
}

@keyframes lobbyTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.lobby-ticker-winner-entry {
    color: #a0b4d0;
    font-size: 13px;
    position: relative;
}

.lobby-ticker-winner-entry::before {
    content: "\2726";
    color: #c2a76f;
    margin-right: 8px;
    font-size: 10px;
}

/*==================================================================================
  LOBBY — Category Navigation
  ==================================================================================*/

.lobby-category-nav-wrap {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(13, 28, 53, 0.98) 0%, rgba(10, 22, 44, 0.98) 100%);
    border-bottom: 1px solid rgba(194, 167, 111, 0.1);
    padding: 0;
    position: sticky;
    top: 50px;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lobby-category-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(194, 167, 111, 0.3) transparent;
}

.lobby-category-nav::-webkit-scrollbar {
    height: 3px;
}

.lobby-category-nav::-webkit-scrollbar-track {
    background: transparent;
}

.lobby-category-nav::-webkit-scrollbar-thumb {
    background: rgba(194, 167, 111, 0.3);
    border-radius: 3px;
}

.lobby-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid rgba(194, 167, 111, 0.15);
    border-radius: 20px;
    background: transparent;
    color: #7a8ba8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
}

.lobby-cat-btn:hover {
    border-color: rgba(194, 167, 111, 0.4);
    color: #bccde0;
    background: rgba(194, 167, 111, 0.05);
}

.lobby-cat-btn.active {
    background: linear-gradient(135deg, rgba(194, 167, 111, 0.2) 0%, rgba(194, 167, 111, 0.1) 100%);
    border-color: #c2a76f;
    color: #f3c14a;
    box-shadow: 0 0 15px rgba(194, 167, 111, 0.1);
}

.lobby-cat-btn svg {
    flex-shrink: 0;
}

.lobby-cat-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/*==================================================================================
  LOBBY — Game Sections Container
  ==================================================================================*/

.lobby-games-container {
    padding: 20px 15px 10px;
}

.lobby-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #7a8ba8;
}

.lobby-loading p {
    margin-top: 15px;
    font-size: 14px;
    letter-spacing: 1px;
    color: #5a6b80;
}

/* ---- Game Section ---- */

.lobby-game-section {
    margin-bottom: 28px;
    content-visibility: auto;
    contain-intrinsic-size: 400px; /* estimated height */
}

.lobby-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.lobby-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e3eeff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lobby-section-title .lobby-section-arrow {
    color: #c2a76f;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.lobby-section-title:hover .lobby-section-arrow {
    transform: translateX(4px);
}

.lobby-section-count {
    font-size: 12px;
    color: #5a6b80;
    font-weight: 400;
    letter-spacing: 0;
}

.lobby-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #c2a76f;
    font-size: 15px;
    flex-shrink: 0;
}


/* ---- Splide Carousel Styles ---- */

#lobbyGamesContainer .splide {
    padding: 0 2px;
}

#lobbyGamesContainer .splide__track {
    padding: 4px 0 8px;
}

#lobbyGamesContainer .splide__arrow {
    background: rgba(13, 28, 53, 0.9);
    border: 1px solid rgba(194, 167, 111, 0.3);
    width: 36px;
    height: 36px;
    transition: all 0.25s ease;
}

#lobbyGamesContainer .splide__arrow:hover {
    background: rgba(34, 60, 102, 0.9);
    border-color: rgba(194, 167, 111, 0.6);
    box-shadow: 0 0 12px rgba(194, 167, 111, 0.2);
    opacity: 1;
}

#lobbyGamesContainer .splide__arrow svg {
    fill: #c2a76f;
}

@media (hover: none) and (pointer: coarse) {
    #lobbyGamesContainer .splide__arrow {
        opacity: 0.5;
    }
}

#lobbyGamesContainer .splide__arrow--prev {
    left: -4px;
}

#lobbyGamesContainer .splide__arrow--next {
    right: -4px;
}

#lobbyGamesContainer .splide__pagination {
    bottom: -1.5rem;
}

#lobbyGamesContainer .splide__pagination__page {
    background: #223c66;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    transition: all 0.2s ease;
}

#lobbyGamesContainer .splide__pagination__page.is-active {
    background: #c2a76f;
    opacity: 1;
    transform: scale(1.2);
}

#lobbyGamesContainer .splide:hover .splide__arrow {
    opacity: 0.8;
}

#lobbyGamesContainer .splide__arrow:disabled {
    opacity: 0.2;
}

/* ---- Game Card ---- */

.lobby-game-card {
    border-radius: 10px;
    overflow: hidden;
    background: #0d1c35;
    border: 1px solid rgba(194, 167, 111, 0.1);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    height: 100%;
}

.lobby-game-card:hover {
    transform: scale(1.03);
    border-color: rgba(194, 167, 111, 0.55);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(194, 167, 111, 0.08);
    z-index: 2;
}

.lobby-game-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 150 / 200;
    overflow: hidden;
    background: #060e1b;
}

.lobby-game-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lobby-game-card:hover .lobby-game-card-img-wrap img {
    transform: scale(1.1);
}

.lobby-game-card-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lobby-game-badge-new {
    background: linear-gradient(135deg, #f3c14a, #c2a76f);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(194, 167, 111, 0.3);
}

.lobby-game-badge-hot {
    background: linear-gradient(135deg, #ff6b35, #e74c3c);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.lobby-game-card-title {
    padding: 8px 10px;
    text-align: center;
}

.lobby-game-card-title span {
    color: #c8d6e8;
    font-size: 12px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Favorite Heart Button ---- */

.lobby-fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
    font-family: inherit;
}

.lobby-fav-btn:hover {
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.7);
    border-color: #e74c3c;
}

.lobby-fav-btn.favorited {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(0, 0, 0, 0.6);
}

.lobby-fav-btn.favorited:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.lobby-fav-btn i {
    pointer-events: none;
}

/* ---- Jackpot Bar (progressive games only) ---- */

.lobby-jackpot-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(10, 22, 40, 0.85), rgba(30, 20, 10, 0.88));
    border-top: 1px solid rgba(243, 193, 74, 0.5);
    box-shadow: 0 -2px 8px rgba(243, 193, 74, 0.15);
    color: #f3c14a;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.lobby-jp-icon {
    font-size: 10px;
    color: #f3c14a;
    flex-shrink: 0;
}

.lobby-jp-amount {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.lobby-game-card:hover .lobby-jackpot-bar {
    border-top-color: rgba(243, 193, 74, 0.7);
    box-shadow: 0 -2px 12px rgba(243, 193, 74, 0.25);
}

/* List view jackpot column */
.lobby-list-jp {
    color: #f3c14a;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lobby-list-jp i {
    font-size: 11px;
}

/* Grid view heart overrides — smaller size */
.lobby-all-grid-inner .lobby-fav-btn {
    width: 26px;
    height: 26px;
    font-size: 11px;
    top: 4px;
    right: 4px;
}

/*==================================================================================
  LOBBY — Progressives Section
  ==================================================================================*/

.lobby-progressives {
    padding: 30px 15px 40px;
}

.lobby-progressives h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.lobby-prog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.lobby-prog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 14px;
    background: linear-gradient(135deg, rgba(13, 28, 53, 0.8), rgba(10, 22, 44, 0.9));
    border: 1px solid rgba(194, 167, 111, 0.15);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lobby-prog-card:hover {
    border-color: rgba(194, 167, 111, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.lobby-prog-name {
    color: #8aa0c0;
    font-size: 13px;
    font-weight: 500;
}

.lobby-prog-amount {
    color: #f3c14a;
    font-size: 20px;
    font-weight: 700;
    font-family: 'CasinoNumbers', 'CasinoText', sans-serif;
    text-shadow: 0 0 10px rgba(194, 167, 111, 0.2);
}

/*==================================================================================
  LOBBY — No Games State
  ==================================================================================*/

.lobby-no-games {
    text-align: center;
    padding: 40px 20px;
    color: #5a6b80;
    font-size: 14px;
}

/*==================================================================================
  LOBBY — Grid View (Expanded Category — All Sliders Hidden)
  ==================================================================================*/

.lobby-section-title {
    cursor: pointer;
    user-select: none;
}

.lobby-section-title:hover {
    color: #f3c14a;
}

.lobby-section-title.active-grid {
    color: #f3c14a;
}

.lobby-section-title.active-grid .lobby-section-count {
    color: #8a7a50;
}

.lobby-section-arrow {
    transition: transform 0.3s ease;
}

.lobby-section-arrow.expanded {
    transform: rotate(90deg);
}

.lobby-section-title:hover .lobby-section-arrow.expanded {
    transform: rotate(90deg) translateX(4px);
}

/* ---- All-Games Grid Container ---- */

.lobby-all-grid {
    display: none;
    padding: 8px 4px 20px;
}

.lobby-all-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(194, 167, 111, 0.2);
}

.lobby-grid-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lobby-all-grid-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e3eeff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lobby-grid-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #f3c14a;
    font-size: 16px;
    flex-shrink: 0;
}

.lobby-all-grid-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(194, 167, 111, 0.3);
    border-radius: 50%;
    background: rgba(13, 28, 53, 0.8);
    color: #c2a76f;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    line-height: 1;
}

.lobby-all-grid-close:hover {
    background: rgba(194, 167, 111, 0.15);
    border-color: rgba(194, 167, 111, 0.6);
    color: #f3c14a;
    transform: rotate(90deg);
}

/* ---- Grid Filter Dropdowns ---- */

.lobby-grid-filters {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lobby-grid-search-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(13, 28, 53, 0.9);
    border: 1px solid rgba(194, 167, 111, 0.2);
    border-radius: 6px;
    padding: 0 7px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 130px;
    flex-shrink: 0;
}

.lobby-grid-search-wrap:focus-within {
    border-color: rgba(194, 167, 111, 0.5);
    box-shadow: 0 0 10px rgba(194, 167, 111, 0.1);
}

.lobby-grid-search-icon {
    color: #5a6b80;
    font-size: 11px;
    flex-shrink: 0;
}

.lobby-grid-search-input {
    flex: 1;
    min-width: 0;
    width: 60px;
    background: transparent;
    border: none;
    outline: none;
    color: #e3eeff;
    font-size: 12px;
    font-family: inherit;
    padding: 6px 0;
}

.lobby-grid-search-input::placeholder {
    color: #5a6b80;
}

.lobby-grid-select {
    background: rgba(13, 28, 53, 0.9);
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 6px;
    color: #bccde0;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    padding: 6px 28px 6px 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%23c2a76f'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 6px;
    min-width: 120px;
    outline: none;
}

.lobby-grid-select:hover {
    border-color: rgba(194, 167, 111, 0.5);
}

.lobby-grid-select:focus {
    border-color: rgba(194, 167, 111, 0.6);
    box-shadow: 0 0 0 2px rgba(194, 167, 111, 0.1);
}

.lobby-grid-select option {
    background: #0d1c35;
    color: #bccde0;
    padding: 4px 8px;
}

@media (max-width: 640px) {
    .lobby-all-grid-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 4px 0 10px;
    }

    .lobby-all-grid-title {
        font-size: 15px;
    }

    .lobby-grid-header-right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        flex-shrink: 1;
    }

    .lobby-grid-filters {
        flex: 0 0 100%;
        flex-direction: column;
        gap: 6px;
    }

    .lobby-grid-search-wrap {
        width: 100%;
    }

    .lobby-grid-select {
        width: 100%;
        min-width: 0;
    }

    /* Action row: view toggle + close button in a row, right-aligned */
    .lobby-view-toggle {
        margin: 0;
        margin-left: auto;
    }

    .lobby-all-grid-close {
        flex-shrink: 0;
        align-self: center;
    }
}

.lobby-all-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

@media (min-width: 640px) {
    .lobby-all-grid-inner {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
}

@media (min-width: 1200px) {
    .lobby-all-grid-inner {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

/* ---- Grid Card Overrides (smaller tiles) ---- */

.lobby-all-grid-inner .lobby-game-card {
    border-radius: 8px;
}

.lobby-all-grid-inner .lobby-game-card:hover {
    transform: scale(1.02);
}

.lobby-all-grid-inner .lobby-game-card-badge {
    top: 4px;
    left: 4px;
    gap: 3px;
}

.lobby-all-grid-inner .lobby-game-badge-new,
.lobby-all-grid-inner .lobby-game-badge-hot {
    font-size: 7px;
    padding: 1px 5px;
    border-radius: 3px;
}



/* ---- List View Mode Override ---- */

/* ---- Staggered Fade-In Animation ---- */

@keyframes lobbyGridCardIn {
    from {
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lobby-all-grid-inner:not(.lobby-list-mode) .lobby-game-card {
    animation: lobbyGridCardIn 0.35s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    .lobby-all-grid-inner .lobby-game-card,
    .lobby-all-grid-inner .lobby-list-row {
        animation: none;
        opacity: 1;
    }
}

.lobby-all-grid-inner.lobby-list-mode {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0;
}

.lobby-all-grid-inner.lobby-list-mode .lobby-list-row {
    animation: lobbyGridCardIn 0.35s ease forwards;
}

.lobby-all-grid-inner.lobby-list-mode > .lobby-list-header,
.lobby-all-grid-inner.lobby-list-mode > .lobby-list-row {
    width: 100%;
}

/* ---- View Toggle Buttons ---- */

.lobby-view-toggle {
    display: flex;
    align-items: center;
    gap: 1px;
    margin: 0 4px;
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.lobby-view-btn {
    background: rgba(13, 28, 53, 0.9);
    border: none;
    color: #5a6b80;
    font-size: 16px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lobby-view-btn:hover {
    background: rgba(34, 60, 102, 0.9);
    color: #bccde0;
}

.lobby-empty-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.lobby-empty-grid-icon {
    font-size: 48px;
    color: #c2a76f;
    margin-bottom: 16px;
    opacity: 0.6;
}

.lobby-empty-grid-msg {
    color: #7a8ba8;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.lobby-view-btn.active {
    background: rgba(194, 167, 111, 0.15);
    color: #f3c14a;
}

.lobby-view-btn:first-child {
    border-right: 1px solid rgba(194, 167, 111, 0.15);
}

/* ---- List View ---- */

.lobby-list-header,
.lobby-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.lobby-list-header {
    background: rgba(13, 28, 53, 0.6);
    border-bottom: 1px solid rgba(194, 167, 111, 0.12);
    border-radius: 8px 8px 0 0;
    color: #5a6b80;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.lobby-list-row {
    text-decoration: none;
    border-bottom: 1px solid rgba(194, 167, 111, 0.06);
    transition: background 0.2s ease;
}

.lobby-list-row:hover {
    background: rgba(194, 167, 111, 0.04);
}

.lobby-list-row:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.lobby-list-col {
    font-size: 13px;
    color: #bccde0;
}

.lobby-list-col-game {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lobby-list-col-lines {
    flex: 0 0 80px;
    text-align: center;
    font-weight: 600;
    color: #e3eeff;
}

.lobby-list-col-volatility {
    flex: 0 0 100px;
    text-align: center;
}

.lobby-list-col-jackpot {
    flex: 0 0 100px;
    text-align: center;
    color: #c2a76f;
    font-weight: 600;
}

.lobby-list-col-action {
    flex: 0 0 110px;
    text-align: right;
}

.lobby-list-thumb {
    width: 42px;
    height: 56px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    background: #060e1b;
}

.lobby-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lobby-list-name {
    font-size: 14px;
    font-weight: 600;
    color: #e3eeff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lobby-list-row:hover .lobby-list-name {
    color: #f3c14a;
}

.lobby-list-play-btn {
    display: inline-block;
    background: linear-gradient(135deg, #c2a76f, #d4b97f);
    color: #000;
    font-weight: 700;
    font-size: 11px;
    padding: 6px 16px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.2s ease;
}

.lobby-list-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(194, 167, 111, 0.3);
}

@media (max-width: 640px) {
    .lobby-all-grid-inner.lobby-list-mode {
        overflow: visible;
    }

    .lobby-list-header {
        display: none;
    }

    .lobby-list-row {
        flex-wrap: wrap;
        gap: 6px 8px;
        padding: 10px 12px;
    }

    .lobby-list-col-game {
        flex: 0 0 100%;
        margin-bottom: 4px;
    }

    .lobby-list-thumb {
        width: 36px;
        height: 48px;
        border-radius: 4px;
    }

    .lobby-list-name {
        font-size: 13px;
    }

    .lobby-list-row .lobby-list-col-lines::before {
        content: "Lines \00a0";
        color: #5a6b80;
        font-weight: 400;
    }

    .lobby-list-row .lobby-list-col-volatility::before {
        content: "Volatility \00a0";
        color: #5a6b80;
        font-weight: 400;
    }

    .lobby-list-row .lobby-list-col-jackpot::before {
        content: "Jackpot \00a0";
        color: #8a7a50;
        font-weight: 400;
    }

    /* Prevent duplicate labels on header columns */
    .lobby-list-header .lobby-list-col-lines::before,
    .lobby-list-header .lobby-list-col-volatility::before,
    .lobby-list-header .lobby-list-col-jackpot::before {
        display: none;
    }

    .lobby-list-col-lines,
    .lobby-list-col-volatility,
    .lobby-list-col-jackpot {
        flex: 0 0 auto;
        font-size: 11px;
        padding: 3px 8px;
        background: rgba(13, 28, 53, 0.5);
        border-radius: 4px;
        color: #bccde0;
        font-weight: 600;
    }

    .lobby-list-col-lines,
    .lobby-list-col-volatility {
        color: #8aa0c0;
        font-weight: 500;
    }

    .lobby-list-col-jackpot {
        color: #f3c14a;
        font-weight: 700;
    }

    .lobby-list-col-action {
        margin-left: auto;
    }
}

/*==================================================================================
  LOBBY — Search Nav Button
  ==================================================================================*/

/* Make .conti a flex container so the search button sits beside the scrollable nav */
#lobbyCategoryNavWrap .conti {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Give the nav flex: 1 so it takes remaining space and scrolls */
#lobbyCategoryNavWrap .lobby-category-nav {
    flex: 1;
    min-width: 0;
}

.lobby-search-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(194, 167, 111, 0.3);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(194, 167, 111, 0.15), rgba(194, 167, 111, 0.05));
    color: #c2a76f;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 0 6px 0 10px;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.lobby-search-nav-btn:hover {
    border-color: #c2a76f;
    color: #f3c14a;
    background: linear-gradient(135deg, rgba(194, 167, 111, 0.25), rgba(194, 167, 111, 0.1));
    box-shadow: 0 0 14px rgba(194, 167, 111, 0.3);
    transform: scale(1.1);
}

/*==================================================================================
  LOBBY — Search Modal
  ==================================================================================*/

.lobby-search-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none; /* Changed from display: flex to support toggling via JS */
    flex-direction: column;
    align-items: center;
}

.lobby-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lobby-search-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    margin-top: 60px;
    background: linear-gradient(180deg, #0d1c35 0%, #0a1628 100%);
    border: 1px solid rgba(194, 167, 111, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

@media (max-width: 840px) {
    .lobby-search-modal-content {
        max-width: 95vw;
        margin-top: 40px;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .lobby-search-modal-content {
        max-width: 100vw;
        margin-top: 0;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }
}

.lobby-search-header {
    flex-shrink: 0;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(194, 167, 111, 0.15);
}

.lobby-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(13, 28, 53, 0.9);
    border: 2px solid rgba(194, 167, 111, 0.3);
    border-radius: 10px;
    padding: 0 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lobby-search-input-wrap:focus-within {
    border-color: #c2a76f;
    box-shadow: 0 0 15px rgba(194, 167, 111, 0.15);
}

.lobby-search-input-icon {
    color: #5a6b80;
    font-size: 16px;
    flex-shrink: 0;
}

.lobby-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e3eeff;
    font-size: 16px;
    font-family: inherit;
    padding: 12px 0;
    min-width: 0;
}

.lobby-search-input::placeholder {
    color: #5a6b80;
}

.lobby-search-header-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(194, 167, 111, 0.2);
    border-radius: 50%;
    background: transparent;
    color: #7a8ba8;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    flex-shrink: 0;
    padding: 0;
}

.lobby-search-header-close:hover {
    background: rgba(194, 167, 111, 0.12);
    border-color: rgba(194, 167, 111, 0.5);
    color: #f3c14a;
    transform: rotate(90deg);
}

.lobby-search-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 20px;
}

.lobby-search-body::-webkit-scrollbar {
    width: 6px;
}

.lobby-search-body::-webkit-scrollbar-track {
    background: transparent;
}

.lobby-search-body::-webkit-scrollbar-thumb {
    background: rgba(194, 167, 111, 0.25);
    border-radius: 3px;
}

.lobby-search-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c2a76f;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.lobby-search-section-title i {
    font-size: 14px;
    color: #f3c14a;
}

.lobby-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

@media (min-width: 640px) {
    .lobby-search-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .lobby-search-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }
}

.lobby-search-results-count {
    color: #7a8ba8;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
    padding-left: 2px;
}

#lobbySearchResults {
    display: none;
}

/* Search modal card sizing */
.lobby-search-grid .lobby-game-card {
    border-radius: 8px;
}

.lobby-search-grid .lobby-game-card:hover {
    transform: scale(1.02);
}

.lobby-search-grid .lobby-game-card-badge {
    top: 4px;
    left: 4px;
    gap: 3px;
}

.lobby-search-grid .lobby-game-badge-new,
.lobby-search-grid .lobby-game-badge-hot {
    font-size: 7px;
    padding: 1px 5px;
    border-radius: 3px;
}



.lobby-search-grid .lobby-fav-btn {
    width: 26px;
    height: 26px;
    font-size: 11px;
    top: 4px;
    right: 4px;
}

/*==================================================================================
  LOBBY — Game Detail Panel (Desktop Drawer / Mobile Bottom Sheet)
  ==================================================================================*/

.lobby-game-detail {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lobby-game-detail.dp-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Volatility Custom Badge Colors (replaces inline styles) */
.dp-info-pill.dp-vol-low {
    color: #2ecc71 !important;
}
.dp-info-pill.dp-vol-med {
    color: #f39c12 !important;
}
.dp-info-pill.dp-vol-high {
    color: #e74c3c !important;
}

.lobby-game-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.lobby-game-detail-panel {
    position: relative;
    z-index: 2;
    width: 440px;
    max-width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #0d1c35 0%, #0a1628 100%);
    border-left: 1px solid rgba(194, 167, 111, 0.15);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lobby-game-detail.dp-open .lobby-game-detail-panel {
    transform: translateX(0);
}

/* Close button */
.lobby-game-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lobby-game-detail-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #c2a76f;
    color: #f3c14a;
    transform: rotate(90deg);
}

/* Image area */
.dp-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    flex-shrink: 0;
    background: #060e1b;
}

.dp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dp-image-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15%;
    background: linear-gradient(transparent, #0d1c35);
    pointer-events: none;
}

.dp-badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    font-size: 11px;
    padding: 3px 10px;
}

.dp-badge-hot {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    font-size: 11px;
    padding: 3px 10px;
}

/* Content area (scrollable) */
.dp-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 24px;
    -webkit-overflow-scrolling: touch;
}

.dp-content::-webkit-scrollbar {
    width: 5px;
}

.dp-content::-webkit-scrollbar-track {
    background: transparent;
}

.dp-content::-webkit-scrollbar-thumb {
    background: rgba(194, 167, 111, 0.25);
    border-radius: 3px;
}

/* Title */
.dp-title {
    color: #e3eeff;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

/* Category tags */
.dp-cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.dp-cat-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(194, 167, 111, 0.12);
    border: 1px solid rgba(194, 167, 111, 0.25);
    color: #c2a76f;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Jackpot */
.dp-jackpot {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f3c14a;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    font-family: 'CasinoNumbers', 'CasinoText', sans-serif;
    text-shadow: 0 0 12px rgba(194, 167, 111, 0.2);
    animation: dpJackpotPulse 2.5s ease-in-out infinite;
}

@keyframes dpJackpotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.dp-jackpot i {
    font-size: 18px;
    color: #f3c14a;
    animation: dpTrophyBounce 2.5s ease-in-out infinite;
}

@keyframes dpTrophyBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Info row */
.dp-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.dp-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(13, 28, 53, 0.8);
    border: 1px solid rgba(194, 167, 111, 0.12);
    color: #bccde0;
    font-size: 12px;
    font-weight: 600;
}

.dp-info-sep {
    color: #c2a76f;
    font-size: 12px;
}

.dp-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-badge-fs {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #2ecc71;
}

.dp-badge-fs i {
    font-size: 12px;
}

/* ===== Active Free Spins Detail ===== */

.dp-fs-detail {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(46, 204, 113, 0.03) 100%);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    animation: dpFsFadeIn 0.4s ease;
}

@keyframes dpFsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dp-fs-detail-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #2ecc71;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-fs-detail-header i {
    font-size: 14px;
}

.dp-fs-detail-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #bccde0;
    font-size: 13px;
    line-height: 1.5;
}



.dp-fs-completed-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2ecc71;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 6px;
}

.dp-fs-completed-label::before {
    content: '\2713';
    font-weight: 700;
    font-size: 14px;
}

.dp-fs-spins-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 2px 8px;
    margin-left: auto;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 4px;
    color: #2ecc71;
    font-size: 14px;
    font-weight: 700;
    font-family: 'CasinoNumbers', 'CasinoText', sans-serif;
}

.dp-fs-detail-bet {
    font-size: 12px;
    color: #8aa0c0;
}

.dp-fs-deposit-note {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(194, 167, 111, 0.08);
    border: 1px solid rgba(194, 167, 111, 0.15);
    border-radius: 6px;
    color: #c2a76f;
    font-size: 11px;
    font-weight: 600;
}

.dp-fs-deposit-note i {
    font-size: 12px;
}

@media (max-width: 480px) {
    .dp-fs-detail {
        padding: 12px 14px;
    }
    .dp-fs-detail-header {
        font-size: 12px;
    }
    .dp-fs-spins-count {
        font-size: 11px;
    }

}

/* Description */
.dp-description {
    margin-bottom: 20px;
}

.dp-section-label {
    color: #5a6b80;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.dp-description p {
    color: #8aa0c0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Action buttons */
.dp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.dp-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #c2a76f, #d4b97f);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.dp-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 167, 111, 0.35);
    color: #000;
    text-decoration: none;
}

.dp-play-btn i {
    font-size: 14px;
}

.dp-fav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: transparent;
    color: #e3eeff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.dp-fav-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.06);
}

.dp-fav-btn.favorited {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.dp-fav-btn.favorited:hover {
    background: rgba(231, 76, 60, 0.18);
}

.dp-fav-btn i {
    font-size: 16px;
    transition: transform 0.25s ease;
}

.dp-fav-btn:hover i {
    transform: scale(1.2);
}

.dp-fav-btn.favorited i {
    animation: dpHeartPop 0.35s ease;
}

@keyframes dpHeartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Play for Fun button */
.dp-fun-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 20px;
    border: 2px solid rgba(194, 167, 111, 0.3);
    border-radius: 10px;
    background: transparent;
    color: #c2a76f;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.dp-fun-btn:hover {
    border-color: #c2a76f;
    background: rgba(194, 167, 111, 0.06);
    color: #f3c14a;
}

.dp-fun-btn i {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.dp-fun-btn:hover i {
    transform: scale(1.1);
}

/* Row layout for Play for Fun + Favorite (authenticated) */
.dp-row-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.dp-row-actions .dp-fun-btn,
.dp-row-actions .dp-fav-btn {
    flex: 1;
    min-width: 0;
}

/* ---- Drag Handle for Mobile Swipe ---- */
.dp-drag-handle {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 6px 0 6px;
    flex-shrink: 0;
}

.dp-drag-handle span {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
}



@media (max-width: 768px) {
    .dp-drag-handle {
        display: flex;
    }
}

/* ===== Mobile: Bottom Sheet ===== */
@media (max-width: 768px) {
    .lobby-game-detail {
        align-items: flex-end;
        justify-content: center;
    }

    .lobby-game-detail-panel {
        width: 100%;
        max-width: 100vw;
        height: 82vh;
        border-left: none;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        transform: translateY(100%);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }

    .lobby-game-detail.dp-open .lobby-game-detail-panel {
        transform: translateY(0);
    }

    .dp-image-wrap {
        aspect-ratio: 16 / 9;
    }

    .dp-content {
        padding: 12px 20px 20px;
    }

    .dp-title {
        font-size: 20px;
    }

    .dp-description {
        margin-bottom: 14px;
    }

    .dp-description p {
        font-size: 13px;
        line-height: 1.5;
    }

    .dp-info-row {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .lobby-game-detail-panel {
        height: 85vh;
        border-radius: 16px 16px 0 0;
    }

    .dp-image-wrap {
        aspect-ratio: 16 / 10;
    }

    .dp-content {
        padding: 10px 14px 20px;
    }

    .dp-title {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .dp-jackpot {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .dp-cat-tags {
        margin-bottom: 10px;
    }

    .dp-info-row {
        margin-bottom: 10px;
        gap: 6px;
    }

    .dp-description {
        margin-bottom: 12px;
    }

    .dp-description p {
        font-size: 12px;
        line-height: 1.45;
    }

    .dp-play-btn {
        font-size: 14px;
        padding: 12px 16px;
    }

    .dp-fun-btn {
        font-size: 13px;
        padding: 8px 14px;
    }

    .dp-fav-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .dp-row-actions {
        gap: 8px;
    }
}

/* ===== All-Games Grid / Search modal card overrides ===== */
/* Ensure cards in grid/search use the same div-based click behavior */
.lobby-all-grid-inner .lobby-game-card[data-game-link],
.lobby-search-grid .lobby-game-card[data-game-link] {
    cursor: pointer;
}



/* List view play button as <a> */
.lobby-list-play-btn {
    display: inline-block;
    background: linear-gradient(135deg, #c2a76f, #d4b97f);
    color: #000;
    font-weight: 700;
    font-size: 11px;
    padding: 6px 16px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.lobby-list-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(194, 167, 111, 0.3);
    color: #000;
    text-decoration: none;
}

/*==================================================================================
  LOBBY — Game Iframe Overlay (In-Page Game Player)
  ==================================================================================*/

.lobby-game-iframe-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lobby-game-iframe-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lobby-game-iframe-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease, background 0.5s ease;
}

.lobby-game-iframe-overlay.active .lobby-game-iframe-backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lobby-game-iframe-container {
    position: relative;
    z-index: 2;
    width: 95vw;
    max-width: 1100px;
    height: 85vh;
    max-height: 800px;
    background: #060e1b;
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lobby-game-iframe-overlay.active .lobby-game-iframe-container {
    transform: scale(1) translateY(0);
}

.lobby-game-iframe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0d1c35 0%, #13264a 100%);
    border-bottom: 1px solid rgba(194, 167, 111, 0.15);
    flex-shrink: 0;
    position: relative;
}

.lobby-game-iframe-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 167, 111, 0.4), transparent);
    pointer-events: none;
}

.lobby-game-iframe-title {
    color: #e3eeff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lobby-game-iframe-title .lobby-game-iframe-mode {
    color: #8aa0c0;
    font-size: 11px;
    font-weight: 500;
    background: rgba(194, 167, 111, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lobby-game-iframe-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.lobby-game-iframe-fs-btn,
.lobby-game-iframe-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: transparent;
    color: #8aa0c0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.lobby-game-iframe-fs-btn:hover {
    border-color: rgba(194, 167, 111, 0.4);
    color: #c2a76f;
    background: rgba(194, 167, 111, 0.08);
}

.lobby-game-iframe-close {
    font-size: 20px;
    font-weight: 700;
    border-color: rgba(255, 255, 255, 0.15);
}

.lobby-game-iframe-close:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.lobby-game-iframe-wrap {
    flex: 1;
    position: relative;
    background: #000;
}

.lobby-game-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Loading spinner shown while iframe loads */
.lobby-game-iframe-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

.lobby-game-iframe-loader.hidden {
    pointer-events: none;
    display: none;
}

/* Game art background shown behind loading spinner */
.lobby-iframe-loader-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px) brightness(0.25);
    transform: scale(1.1);
    transition: opacity 0.6s ease;
}

.lobby-iframe-loader-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lobby-game-iframe-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(194, 167, 111, 0.15);
    border-top-color: #c2a76f;
    border-radius: 50%;
    animation: lobbyIframeSpin 0.8s linear infinite;
}

@keyframes lobbyIframeSpin {
    to { transform: rotate(360deg); }
}

.lobby-game-iframe-loader-text {
    color: #8aa0c0;
    font-size: 13px;
    margin-top: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Header thumbnail image */
.lobby-iframe-header-thumb {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    display: none;
    border: 1px solid rgba(194, 167, 111, 0.2);
}

.lobby-iframe-header-thumb[src]:not([src=""]) {
    display: block;
}

/* Error state */
.lobby-iframe-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628, #13264a);
    z-index: 3;
    padding: 30px;
    text-align: center;
}

.lobby-iframe-error-icon {
    font-size: 42px;
    color: #c2a76f;
    margin-bottom: 14px;
    opacity: 0.7;
}

.lobby-iframe-error-title {
    color: #e3eeff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lobby-iframe-error-text {
    color: #8aa0c0;
    font-size: 14px;
    max-width: 280px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.lobby-iframe-error-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid rgba(194, 167, 111, 0.4);
    border-radius: 8px;
    background: rgba(194, 167, 111, 0.1);
    color: #c2a76f;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lobby-iframe-error-btn:hover {
    background: rgba(194, 167, 111, 0.2);
    border-color: #c2a76f;
    color: #f3c14a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 167, 111, 0.2);
}

/* Fullscreen mode */
.lobby-game-iframe-overlay.is-fullscreen .lobby-game-iframe-container {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
}

.lobby-game-iframe-overlay.is-fullscreen .lobby-game-iframe-header {
    padding: 8px 14px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lobby-game-iframe-container {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }

    .lobby-game-iframe-header {
        padding: 8px 12px;
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
    }

    .lobby-game-iframe-title {
        font-size: 13px;
    }

    .lobby-game-iframe-fs-btn {
        display: none; /* hide fullscreen btn on mobile - already full viewport */
    }
}

/* Fullscreen mode - also use dvh */
.lobby-game-iframe-overlay.is-fullscreen .lobby-game-iframe-container {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
}

.lobby-game-iframe-overlay.is-fullscreen .lobby-game-iframe-header {
    padding: 8px 14px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

/* ---- Jackpot Opt-In/Out Toggle + Info Buttons ---- */

.lobby-ticker-jackpot-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.lobby-jackpot-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 8px;
    background: rgba(194, 167, 111, 0.06);
    color: #c2a76f;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
    position: relative;
}

.lobby-jackpot-info-btn:hover {
    border-color: #c2a76f;
    background: rgba(194, 167, 111, 0.15);
    color: #f3c14a;
    box-shadow: 0 0 12px rgba(194, 167, 111, 0.15);
    transform: translateY(-1px);
}

.lobby-jackpot-info-btn:active {
    transform: scale(0.94);
}

/* Glow pulse when player has unclaimed winnings */
.lobby-jackpot-info-btn.has-winnings {
    border-color: rgba(46, 204, 113, 0.5);
    color: #2ecc71;
    animation: jiInfoPulse 1.5s ease-in-out infinite;
}

.lobby-jackpot-info-btn.has-winnings:hover {
    border-color: #2ecc71;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

@keyframes jiInfoPulse {
    0%, 100% {
        box-shadow: 0 0 4px rgba(46, 204, 113, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(46, 204, 113, 0.5);
        transform: scale(1.08);
    }
}

/* Small indicator dot for extra visibility */
.lobby-jackpot-info-btn.has-winnings::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    border: 2px solid #0a1628;
    animation: jiDotPulse 1.5s ease-in-out infinite;
}

@keyframes jiDotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.lobby-jackpot-opt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(194, 167, 111, 0.3);
    border-radius: 8px;
    background: rgba(194, 167, 111, 0.08);
    color: #c2a76f;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lobby-jackpot-opt-btn:hover {
    border-color: #c2a76f;
    background: rgba(194, 167, 111, 0.15);
    color: #f3c14a;
    box-shadow: 0 0 12px rgba(194, 167, 111, 0.15);
}

.lobby-jackpot-opt-btn:active {
    transform: scale(0.96);
}

.lobby-jackpot-opt-btn.opted-in {
    border-color: rgba(46, 204, 113, 0.4);
    background: rgba(46, 204, 113, 0.08);
    color: #2ecc71;
}

.lobby-jackpot-opt-btn.opted-in:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.15);
}

.lobby-jackpot-opt-btn i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.lobby-jackpot-opt-btn:hover i {
    transform: scale(1.15);
}

.lobby-jackpot-opt-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.lobby-jackpot-opt-btn.loading i {
    animation: lobbyOptSpin 0.8s linear infinite;
}

@keyframes lobbyOptSpin {
    to { transform: rotate(360deg); }
}

/*==================================================================================
  LOBBY — Responsive (ticker, category, etc.)
  ==================================================================================*/

/*==================================================================================
  LOBBY — Jackpot Info Modal
  ==================================================================================*/

#jackpotInfoModal .modal-dialog {
    max-width: 440px;
}

#jackpotInfoModal .modal-content {
    border: 1px solid rgba(194, 167, 111, 0.25);
    background: linear-gradient(180deg, #0d1c35 0%, #0a1628 100%);
    border-radius: 12px;
    overflow: hidden;
}

#jackpotInfoModal .modal-body {
    padding: 18px 18px 14px;
    position: relative;
}

/* Modal header */
.ji-header {
    color: #e3eeff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ji-header::before,
.ji-header::after {
    content: '';
    flex: 1;
    height: 1px;
    max-width: 60px;
    background: linear-gradient(90deg, transparent, rgba(194, 167, 111, 0.3), transparent);
}

.ji-header::before {
    background: linear-gradient(90deg, transparent, rgba(194, 167, 111, 0.3));
}

.ji-header::after {
    background: linear-gradient(90deg, rgba(194, 167, 111, 0.3), transparent);
}

/* Top row: jackpot + winnings side by side */
.ji-top-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.ji-top-row > * {
    flex: 1;
    min-width: 0;
}

/* Jackpot amount section */
.ji-jackpot-section {
    padding: 12px 10px;
    background: rgba(194, 167, 111, 0.06);
    border: 1px solid rgba(194, 167, 111, 0.15);
    border-radius: 8px;
}

.ji-jackpot-label {
    color: #7a8ba8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.ji-jackpot-amount {
    color: #f3c14a;
    font-size: 24px;
    font-weight: 800;
    font-family: 'CasinoNumbers', 'CasinoText', sans-serif;
    text-shadow: 0 0 16px rgba(194, 167, 111, 0.3);
    line-height: 1.1;
}

/* Player's unclaimed winnings section */
.ji-winnings-section {
    padding: 12px 10px;
    background: rgba(46, 204, 113, 0.06);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 8px;
    display: none;
}

.ji-winnings-label {
    color: #7a8ba8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.ji-winnings-amount {
    color: #2ecc71;
    font-size: 18px;
    font-weight: 800;
    font-family: 'CasinoNumbers', 'CasinoText', sans-serif;
    line-height: 1.1;
}

.ji-winnings-note {
    color: #5a6b80;
    font-size: 10px;
    margin-top: 3px;
    margin-bottom: 6px;
}

/* Claim Winnings button */
.ji-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(46, 204, 113, 0.35);
    border-radius: 6px;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ji-claim-btn:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.15);
}

.ji-claim-btn:active {
    transform: scale(0.96);
}

.ji-claim-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.ji-claim-btn i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.ji-claim-btn:hover i {
    transform: scale(1.15);
}

/* Recent winners table */
.ji-winners-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e3eeff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ji-winners-title i {
    color: #f3c14a;
    font-size: 12px;
}

.ji-winners-table-wrap {
    border: 1px solid rgba(194, 167, 111, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.ji-winners-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ji-winners-table thead {
    background: rgba(13, 28, 53, 0.8);
}

.ji-winners-table th {
    color: #5a6b80;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(194, 167, 111, 0.08);
}

.ji-winners-table th:last-child {
    text-align: right;
}

.ji-winners-table th:nth-child(2) {
    text-align: center;
}

.ji-winners-table td {
    padding: 6px 10px;
    color: #bccde0;
    border-bottom: 1px solid rgba(194, 167, 111, 0.05);
}

.ji-winners-table tbody tr:last-child td {
    border-bottom: none;
}

.ji-winners-table tbody tr:hover {
    background: rgba(194, 167, 111, 0.04);
}

.ji-winners-table td:last-child {
    text-align: right;
    color: #7a8ba8;
    font-size: 11px;
}

.ji-winners-table td:nth-child(2) {
    text-align: center;
    color: #f3c14a;
    font-weight: 700;
}

.ji-winners-empty {
    text-align: center !important;
    color: #5a6b80 !important;
    font-style: italic;
    padding: 16px 10px !important;
}

.ji-winner-player {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ji-winner-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d1c35, #1a3060);
    border: 1px solid rgba(194, 167, 111, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c2a76f;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Modal responsive */
@media (max-width: 576px) {
    #jackpotInfoModal .modal-dialog {
        max-width: 360px;
    }

    #jackpotInfoModal .modal-body {
        padding: 14px 12px 10px;
    }

    .ji-top-row {
        flex-direction: column;
        gap: 8px;
    }

    .ji-jackpot-section {
        padding: 10px 8px;
    }

    .ji-jackpot-amount {
        font-size: 22px;
    }

    .ji-winnings-amount {
        font-size: 16px;
    }

    .ji-winnings-section {
        padding: 10px 8px;
    }

    .ji-winners-table th,
    .ji-winners-table td {
        padding: 5px 8px;
    }

    .ji-winners-title {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

/* ---- Ticker Responsive ---- */

@media (max-width: 768px) {
    .lobby-ticker-inner {
        padding: 8px 12px;
        gap: 10px;
        min-height: 42px;
    }

    .lobby-ticker-jackpot {
        padding: 4px 10px 4px 38px;
        gap: 6px;
    }

    .lobby-ticker-jackpot-amount {
        font-size: 15px;
    }

    .lobby-ticker-winners-label {
        font-size: 10px;
        padding: 1px 6px;
    }

    .lobby-ticker-winner-entry {
        font-size: 12px;
    }

    .lobby-jackpot-opt-btn {
        font-size: 10px;
        padding: 4px 10px;
        gap: 4px;
        letter-spacing: 0.3px;
    }

    .lobby-jackpot-info-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .lobby-ticker-jackpot-actions {
        gap: 4px;
    }
}

@media (max-width: 640px) {
    .lobby-cat-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .lobby-ticker-inner {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 10px;
    }

    .lobby-ticker-divider {
        display: none;
    }

    /* Reorder: Jackpot (1) + Actions (2) on row 1, Winners (3) on row 2 */
    .lobby-ticker-left {
        flex: 1;
        min-width: 0;
        order: 1;
    }

    .lobby-ticker-jackpot-actions {
        margin-left: 0;
        flex-shrink: 0;
        order: 2;
    }

    /* Row 2: Winners scroll full width */
    .lobby-ticker-right {
        width: 100%;
        flex: 0 0 100%;
        gap: 8px;
        order: 3;
    }

    .lobby-ticker-jackpot {
        padding: 3px 8px 3px 45px;
        gap: 5px;
    }

    .lobby-ticker-jackpot-icon {
        width: 44px;
        height: 44px;
        left: -5px;
    }

    .lobby-ticker-jackpot-amount {
        font-size: 14px;
    }

    .lobby-ticker-winners-label {
        font-size: 9px;
        padding: 1px 5px;
    }

    .lobby-ticker-winner-entry {
        font-size: 11px;
    }

    .lobby-jackpot-opt-btn {
        font-size: 9px;
        padding: 3px 8px;
        gap: 3px;
        letter-spacing: 0.2px;
    }

    .lobby-jackpot-info-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .lobby-ticker-jackpot-actions {
        gap: 3px;
    }

    /* Hide the green indicator dot on mobile since it overlaps with the edge */
    .lobby-jackpot-info-btn.has-winnings::after {
        width: 6px;
        height: 6px;
        top: -1px;
        right: -1px;
    }
}

@media (max-width: 400px) {
    .lobby-ticker-inner {
        padding: 6px 8px;
        gap: 4px;
    }

    .lobby-ticker-jackpot {
        padding: 2px 6px 2px 48px;
        gap: 4px;
    }

    .lobby-ticker-jackpot-icon {
        width: 38px;
        height: 38px;
        left: -4px;
    }

    .lobby-ticker-jackpot-amount {
        font-size: 12px;
    }

    .lobby-ticker-winners-label {
        font-size: 8px;
        padding: 1px 4px;
    }

    .lobby-ticker-winner-entry {
        font-size: 10px;
    }

    .lobby-ticker-winners-scroll {
        gap: 20px;
    }

    .lobby-jackpot-opt-btn {
        font-size: 8px;
        padding: 2px 6px;
    }

    .lobby-jackpot-opt-btn i {
        font-size: 10px;
    }

    .lobby-jackpot-info-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .lobby-ticker-jackpot-actions {
        gap: 2px;
    }

    .lobby-jackpot-info-btn.has-winnings::after {
        width: 5px;
        height: 5px;
        top: -1px;
        right: -1px;
    }
}

/*==================================================================================
  LOBBY — Skeleton Loading States
  ==================================================================================*/
@keyframes skShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.sk-shimmer-bg {
    background: linear-gradient(110deg, #0d1c35 30%, #2a4a78 50%, #0d1c35 70%);
    background-size: 200% 100%;
    animation: skShimmer 1.6s ease-in-out infinite;
}

.lobby-cat-skeleton-wrap {
    display: flex;
    gap: 6px;
    padding: 8px 0;
    overflow-x: auto;
    flex-shrink: 0;
}

.lobby-cat-skeleton-pill {
    height: 34px;
    border-radius: 20px;
    flex-shrink: 0;
    background: linear-gradient(110deg, #0d1c35 30%, #2a4a78 50%, #0d1c35 70%);
    background-size: 200% 100%;
    animation: skShimmer 1.6s ease-in-out infinite;
}

.lobby-games-skeleton-wrap {
    width: 100%;
}

.lobby-game-section-skeleton {
    margin-bottom: 28px;
}

.lobby-section-title-skeleton {
    width: 140px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(110deg, #0d1c35 30%, #2a4a78 50%, #0d1c35 70%);
    background-size: 200% 100%;
    animation: skShimmer 1.6s ease-in-out infinite;
}

.lobby-section-count-skeleton {
    width: 60px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(110deg, #0d1c35 30%, #2a4a78 50%, #0d1c35 70%);
    background-size: 200% 100%;
    animation: skShimmer 1.6s ease-in-out infinite;
}

.lobby-game-cards-skeleton {
    display: flex;
    gap: 8px;
    overflow: hidden;
    padding: 2px 0;
}

.lobby-card-skeleton {
    flex: 0 0 130px;
    width: 130px;
    height: 173px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(110deg, #0d1c35 30%, #2a4a78 50%, #0d1c35 70%);
    background-size: 200% 100%;
    animation: skShimmer 1.6s ease-in-out infinite;
}

/*==================================================================================
  BALANCE DROPDOWN — Anchored to wallet button
  ==================================================================================*/

.balance-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    z-index: 400;
    min-width: 290px;
    background: linear-gradient(180deg, #0e1d35 0%, #0a1628 100%);
    border: 1px solid rgba(194, 167, 111, 0.3);
    border-radius: 10px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: bottom center;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    margin-bottom: 6px;
}

.balance-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.balance-dropdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 8px;
    color: #c2a76f;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(194, 167, 111, 0.15);
}

.balance-dropdown-header i {
    font-size: 14px;
}

.balance-dropdown-body {
    padding: 6px 0;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 16px;
    transition: background 0.15s ease;
}

.balance-row:hover {
    background: rgba(194, 167, 111, 0.06);
}

.balance-label {
    color: #8aa0c0;
    font-size: 13px;
    font-weight: 500;
}

.balance-value {
    color: #e3eeff;
    font-size: 14px;
    font-weight: 600;
    font-family: "CasinoNumbers", "CasinoText", sans-serif;
}

.balance-row-divider {
    margin-top: 4px;
    border-top: 1px solid rgba(194, 167, 111, 0.12);
    padding-top: 10px;
}

.balance-label-strong {
    color: #c2a76f;
    font-weight: 700;
    font-size: 13px;
}

.balance-value-strong {
    color: #c2a76f;
    font-weight: 700;
    font-size: 15px;
}

.balance-dropdown-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 16px 12px;
}

.balance-footer-row {
    display: flex;
    gap: 6px;
}

.balance-footer-row .balance-deposit-btn,
.balance-footer-row .balance-withdraw-btn {
    flex: 1;
    font-size: 12px;
    padding: 8px 4px;
}



.balance-deposit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 0;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #c2a76f 0%, #d4b87a 100%);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-deposit-btn:hover {
    background: linear-gradient(135deg, #d4b87a 0%, #e4cc8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 167, 111, 0.3);
}

.balance-deposit-btn:active {
    transform: translateY(0);
}

.balance-withdraw-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 0;
    border: 1px solid rgba(194, 167, 111, 0.3);
    border-radius: 6px;
    background: transparent;
    color: #8aa0c0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-withdraw-btn:hover {
    border-color: #c2a76f;
    color: #e3eeff;
    background: rgba(194, 167, 111, 0.08);
    transform: translateY(-1px);
}

.balance-withdraw-btn:active {
    transform: translateY(0);
}

.balance-redeem-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 0;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #1a3a5c 0%, #223c66 100%);
    color: #c2a76f;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-redeem-btn:hover {
    background: linear-gradient(135deg, #223c66 0%, #2a4a7a 100%);
    color: #e3eeff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 60, 102, 0.4);
}

.balance-redeem-btn:active {
    transform: translateY(0);
}

/* Desktop: dropdown appears below the wallet button, anchored to the right */
@media (min-width: 768px) {
    .balance-dropdown {
        top: 100%;
        bottom: auto;
        left: auto;
        right: 0;
        margin-top: 6px;
        margin-bottom: 0;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
        transform: translateY(-8px) scale(0.96);
        transform-origin: top right;
        min-width: 320px;
    }

    .balance-dropdown.open {
        transform: translateY(0) scale(1);
    }
}

/* Tighten padding on very small screens */
@media (max-width: 380px) {
    .balance-dropdown {
        min-width: 260px;
    }

    .balance-row {
        padding: 5px 12px;
    }

    .balance-dropdown-header {
        padding: 10px 12px 6px;
    }

    .balance-dropdown-footer {
        padding: 6px 12px 10px;
    }
}

/*==================================================================================
  BALANCE DROPDOWN — Redeem View
  ==================================================================================*/

.redeem-view {
    display: none;
}

.redeem-back-row {
    padding: 10px 16px 0;
    display: flex;
}

.redeem-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 6px;
    background: transparent;
    color: #8aa0c0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.redeem-back-btn:hover {
    border-color: #c2a76f;
    color: #e3eeff;
    background: rgba(194, 167, 111, 0.08);
}

.redeem-body {
    padding: 6px 16px 16px;
}

.redeem-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c2a76f;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 0 10px;
    border-bottom: 1px solid rgba(194, 167, 111, 0.15);
    margin-bottom: 12px;
}

.redeem-header i {
    font-size: 14px;
}

.redeem-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(194, 167, 111, 0.08);
    border: 1px solid rgba(194, 167, 111, 0.15);
    border-radius: 8px;
    margin-bottom: 10px;
}

.redeem-balance-label {
    color: #8aa0c0;
    font-size: 13px;
    font-weight: 500;
}

.redeem-balance-value {
    color: #c2a76f;
    font-size: 16px;
    font-weight: 700;
    font-family: "CasinoNumbers", "CasinoText", sans-serif;
}

.redeem-info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(194, 167, 111, 0.05);
    border: 1px solid rgba(194, 167, 111, 0.12);
    border-radius: 6px;
    margin-bottom: 10px;
    color: #8aa0c0;
    font-size: 12px;
    line-height: 1.4;
}

.redeem-info-box i {
    color: #c2a76f;
    font-size: 13px;
    margin-top: 1px;
    flex-shrink: 0;
}

.redeem-info-box b {
    color: #f3c14a;
}

.redeem-converter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    color: #7a8ba8;
    font-size: 12px;
    font-weight: 500;
}

.redeem-converter i {
    color: #c2a76f;
    font-size: 11px;
    opacity: 0.6;
}

.redeem-converter-value {
    color: #2ecc71;
    font-weight: 700;
    font-size: 14px;
    font-family: "CasinoNumbers", "CasinoText", sans-serif;
}

.redeem-input-row {
    margin-bottom: 8px;
}

.redeem-input-label {
    display: block;
    color: #7a8ba8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.redeem-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 6px;
    background: rgba(13, 28, 53, 0.8);
    color: #e3eeff;
    font-size: 15px;
    font-family: "CasinoNumbers", "CasinoText", sans-serif;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -moz-appearance: textfield;
}

.redeem-input::-webkit-outer-spin-button,
.redeem-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.redeem-input:focus {
    border-color: #c2a76f;
    box-shadow: 0 0 10px rgba(194, 167, 111, 0.15);
}

.redeem-input::placeholder {
    color: #4a6080;
}

.redeem-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 14px;
    background: rgba(46, 204, 113, 0.06);
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: 6px;
}

.redeem-preview-label {
    color: #8aa0c0;
    font-size: 12px;
    font-weight: 500;
}

.redeem-preview-value {
    color: #2ecc71;
    font-size: 18px;
    font-weight: 700;
    font-family: "CasinoNumbers", "CasinoText", sans-serif;
}

.redeem-error {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 6px;
    color: #e74c3c;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.redeem-error i {
    font-size: 14px;
    flex-shrink: 0;
}

.redeem-error.redeem-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.redeem-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 0;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #c2a76f 0%, #d4b87a 100%);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.redeem-now-btn:hover {
    background: linear-gradient(135deg, #d4b87a 0%, #e4cc8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 167, 111, 0.3);
}

.redeem-now-btn:active {
    transform: translateY(0);
}

.redeem-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.redeem-now-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Tighten redeem view on very small screens */
@media (max-width: 380px) {
    .redeem-back-row {
        padding: 8px 12px 0;
    }

    .redeem-body {
        padding: 4px 12px 12px;
    }

    .redeem-balance-row {
        padding: 6px 10px;
    }

    .redeem-converter {
        font-size: 11px;
        gap: 6px;
    }

    .redeem-input {
        padding: 8px 10px;
        font-size: 14px;
    }

    .redeem-preview {
        padding: 6px 10px;
    }

    .redeem-preview-value {
        font-size: 16px;
    }
}



@media (min-width: 768px) {
    #messagesBtn {
        width: auto;
        min-width: 40px;
        flex: 0 0 auto;
        padding: 6px 10px;
        font-size: 15px;
    }
}

/*==================================================================================
  CASHIER — Iframe Overlay (Global Layout)
  ==================================================================================*/

.cashier-iframe-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cashier-iframe-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cashier-iframe-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, background 0.3s ease;
}

.cashier-iframe-overlay.active .cashier-iframe-backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cashier-iframe-container {
    position: relative;
    z-index: 2;
    width: 95vw;
    max-width: 900px;
    height: 90vh;
    max-height: 750px;
    background: #060e1b;
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cashier-iframe-overlay.active .cashier-iframe-container {
    transform: scale(1) translateY(0);
}

.cashier-iframe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(135deg, #0d1c35 0%, #13264a 100%);
    border-bottom: 1px solid rgba(194, 167, 111, 0.15);
    flex-shrink: 0;
    position: relative;
}

.cashier-iframe-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 167, 111, 0.4), transparent);
    pointer-events: none;
}

.cashier-iframe-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e3eeff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.cashier-iframe-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cashier-iframe-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: transparent;
    color: #8aa0c0;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.cashier-iframe-close:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.cashier-iframe-wrap {
    flex: 1;
    position: relative;
    background: #fff;
}

.cashier-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Loading spinner shown while iframe loads */
.cashier-iframe-loader {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: linear-gradient(135deg, #0a1628, #13264a);
    transition: opacity 0.3s ease;
}

.cashier-iframe-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(194, 167, 111, 0.15);
    border-top-color: #c2a76f;
    border-radius: 50%;
    animation: cashierIframeSpin 0.8s linear infinite;
}

@keyframes cashierIframeSpin {
    to { transform: rotate(360deg); }
}

.cashier-iframe-loader-text {
    color: #8aa0c0;
    font-size: 14px;
    margin-top: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cashier-iframe-container {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }

    .cashier-iframe-header {
        padding: 10px 14px;
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
    }

    .cashier-iframe-title {
        font-size: 14px;
    }
}

/* Narrow message icon button — sits alongside wallet + cashier */
#supportBtn {
    width: auto;
    min-width: 44px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 16px;
    position: relative;
    border-radius: 7px;
}

#messagesBtn {
    width: auto;
    min-width: 44px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 16px;
    position: relative;
    border-radius: 7px;
}

.messages-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    pointer-events: none;
}

/*==================================================================================
  MESSAGES — Inbox Overlay (Global Layout)
  ==================================================================================*/

.messages-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.messages-overlay.active {
    opacity: 1;
    visibility: visible;
}

.messages-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, background 0.3s ease;
}

.messages-overlay.active .messages-backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.messages-container {
    position: relative;
    z-index: 2;
    width: 95vw;
    max-width: 700px;
    height: 85vh;
    max-height: 650px;
    background: #060e1b;
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.messages-overlay.active .messages-container {
    transform: scale(1) translateY(0);
}

.messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(135deg, #0d1c35 0%, #13264a 100%);
    border-bottom: 1px solid rgba(194, 167, 111, 0.15);
    flex-shrink: 0;
    position: relative;
}

.messages-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 167, 111, 0.4), transparent);
    pointer-events: none;
}

.messages-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e3eeff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.messages-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.messages-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: transparent;
    color: #8aa0c0;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.messages-close:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.messages-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: transparent;
    color: #8aa0c0;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.messages-refresh:hover {
    border-color: #c2a76f;
    color: #c2a76f;
    background: rgba(194, 167, 111, 0.1);
}

.messages-refresh.spinning .fa-rotate {
    animation: messagesRefreshSpin 0.5s ease-in-out;
}

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

.messages-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* ===== List View ===== */
.messages-list-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== Selection Toolbar ===== */
.messages-select-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(10, 22, 40, 0.95);
    border-bottom: 1px solid rgba(194, 167, 111, 0.15);
    flex-shrink: 0;
    position: relative;
    min-height: 44px;
    animation: messagesSelectBarIn 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes messagesSelectBarIn {
    from {
        transform: translateY(-8px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 44px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

.messages-select-bar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 167, 111, 0.4), transparent);
    pointer-events: none;
}

.messages-select-all-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
}

.messages-checkbox {
    display: none;
}

.messages-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(194, 167, 111, 0.4);
    border-radius: 4px;
    background: transparent;
    position: relative;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.messages-checkbox-custom::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.messages-checkbox:checked + .messages-checkbox-custom {
    background: #c2a76f;
    border-color: #c2a76f;
    box-shadow: 0 0 8px rgba(194, 167, 111, 0.35);
}

.messages-checkbox:checked + .messages-checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.messages-checkbox-custom:hover {
    border-color: #c2a76f;
}

.messages-select-count {
    color: #8aa0c0;
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-delete-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 6px;
    background: transparent;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.5;
    pointer-events: none;
}

.messages-delete-btn:enabled {
    opacity: 1;
    pointer-events: auto;
}

.messages-delete-btn:enabled:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.12);
    color: #ff6b6b;
}

.messages-delete-btn:enabled:active {
    background: rgba(231, 76, 60, 0.2);
}

/* ===== List ===== */
.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.messages-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 14px 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

.messages-list-item:hover {
    background: rgba(194, 167, 111, 0.08);
}

.messages-list-item:active {
    background: rgba(194, 167, 111, 0.12);
}

/* Checkbox on each item */
.messages-item-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 36px;
    cursor: pointer;
    padding-top: 2px;
}

.messages-item-checkbox .messages-checkbox-custom {
    width: 18px;
    height: 18px;
}

.messages-item-checkbox:hover .messages-checkbox-custom {
    border-color: #c2a76f;
}

/* Selected state */
.messages-list-item {
    transition: background 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.messages-list-item--selected {
    background: rgba(194, 167, 111, 0.12);
}

.messages-list-item--selected:hover {
    background: rgba(194, 167, 111, 0.16);
}

/* Unread messages — bolder, brighter, with gold accent */
.messages-list-item--unread {
    border-left: 3px solid #c2a76f;
    padding-left: 7px;
    background: linear-gradient(90deg, rgba(194, 167, 111, 0.06) 0%, transparent 100%);
}

.messages-list-item--unread.messages-list-item--selected {
    background: rgba(194, 167, 111, 0.18);
}

.messages-list-item--unread .messages-item-icon {
    background: rgba(194, 167, 111, 0.2);
    color: #c2a76f;
}

.messages-list-item--unread .messages-item-title {
    color: #ffffff;
    font-weight: 700;
}

.messages-list-item--unread .messages-item-date {
    color: #8aa0c0;
    font-weight: 500;
}

.messages-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(194, 167, 111, 0.12);
    border-radius: 8px;
    color: #c2a76f;
    font-size: 14px;
    margin-top: 2px;
}

.messages-item-content {
    flex: 1;
    min-width: 0;
}

.messages-item-title {
    color: #e3eeff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.messages-item-date {
    color: #6a82a0;
    font-size: 12px;
    font-weight: 400;
}

.messages-item-arrow {
    flex-shrink: 0;
    color: #4a6080;
    font-size: 14px;
    margin-top: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-4px);
}

.messages-list-item:hover .messages-item-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Prevent hover arrow from expanding selected items */
.messages-list-item--selected .messages-item-arrow {
    opacity: 0 !important;
    transform: translateX(-4px) !important;
}

.messages-list-item--selected .messages-item-checkbox .messages-checkbox-custom {
    border-color: #c2a76f;
}

/* ===== List Loader ===== */
.messages-list-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: linear-gradient(135deg, #0a1628, #13264a);
}

.messages-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(194, 167, 111, 0.15);
    border-top-color: #c2a76f;
    border-radius: 50%;
    animation: messagesSpin 0.8s linear infinite;
}

@keyframes messagesSpin {
    to { transform: rotate(360deg); }
}

.messages-loader-text {
    color: #8aa0c0;
    font-size: 14px;
    margin-top: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ===== Empty State ===== */
.messages-list-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #4a6080;
}

.messages-list-empty p {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* ===== Detail View ===== */
.messages-detail-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.messages-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #0d1c35 0%, #13264a 100%);
    border-bottom: 1px solid rgba(194, 167, 111, 0.15);
    flex-shrink: 0;
}

.messages-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: transparent;
    color: #8aa0c0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.messages-back-btn:hover {
    border-color: #c2a76f;
    color: #c2a76f;
    background: rgba(194, 167, 111, 0.1);
}

.messages-detail-title {
    color: #e3eeff;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.messages-detail-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 6px;
    background: transparent;
    color: #e74c3c;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.messages-detail-delete-btn:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.12);
    color: #ff6b6b;
}

.messages-detail-delete-btn:active {
    background: rgba(231, 76, 60, 0.2);
}

.messages-detail-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: linear-gradient(135deg, #0a1628, #13264a);
}

.messages-detail-content {
    flex: 1;
    position: relative;
    background: #fff;
}

.messages-detail-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .messages-container {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }

    .messages-header {
        padding: 10px 14px;
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
    }

    .messages-title {
        font-size: 14px;
    }

    .messages-list-item {
        padding: 12px 14px;
    }
}
/*==================================================================================
  COUPONS OVERLAY
  ==================================================================================*/

/* ---- Overlay Shell ---- */
.coupons-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.coupons-overlay.active {
    opacity: 1;
    visibility: visible;
}

.coupons-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, background 0.3s ease;
}

.coupons-overlay.active .coupons-backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.coupons-container {
    position: relative;
    z-index: 2;
    width: 95vw;
    max-width: 800px;
    height: 88vh;
    max-height: 700px;
    background: linear-gradient(180deg, #0d1c35 0%, #0a1628 100%);
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.coupons-overlay.active .coupons-container {
    transform: scale(1) translateY(0);
}

/* ---- Header ---- */
.coupons-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(135deg, #0d1c35 0%, #13264a 100%);
    border-bottom: 1px solid rgba(194, 167, 111, 0.15);
    flex-shrink: 0;
    position: relative;
}

.coupons-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 167, 111, 0.4), transparent);
    pointer-events: none;
}

.coupons-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e3eeff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.coupons-title i {
    color: #c2a76f;
    font-size: 15px;
}

.coupons-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.coupons-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: transparent;
    color: #8aa0c0;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.coupons-close:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.coupons-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: transparent;
    color: #8aa0c0;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.coupons-refresh:hover {
    border-color: #c2a76f;
    color: #c2a76f;
    background: rgba(194, 167, 111, 0.1);
}

.coupons-refresh.spinning .fa-rotate {
    animation: couponsRefreshSpin 0.5s ease-in-out;
}

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

/* ---- Body (scrollable) ---- */
.coupons-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 20px;
    -webkit-overflow-scrolling: touch;
}

.coupons-body::-webkit-scrollbar {
    width: 6px;
}

.coupons-body::-webkit-scrollbar-track {
    background: transparent;
}

.coupons-body::-webkit-scrollbar-thumb {
    background: rgba(194, 167, 111, 0.25);
    border-radius: 3px;
}

/* ===== Redeem Coupon Section ===== */
.coupons-redeem-section {
    margin-bottom: 24px;
    padding: 16px 18px;
    background: rgba(13, 28, 53, 0.6);
    border: 1px solid rgba(194, 167, 111, 0.15);
    border-radius: 10px;
}

.coupons-redeem-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e3eeff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.coupons-redeem-title i {
    color: #c2a76f;
    font-size: 14px;
}

.coupons-redeem-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.coupons-redeem-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: rgba(13, 28, 53, 0.8);
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 8px;
    color: #e3eeff;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.coupons-redeem-input::placeholder {
    color: #4a6080;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.coupons-redeem-input:focus {
    border-color: #c2a76f;
    box-shadow: 0 0 10px rgba(194, 167, 111, 0.12);
}

.coupons-redeem-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #c2a76f 0%, #d4b87a 100%);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.coupons-redeem-btn:hover {
    background: linear-gradient(135deg, #d4b87a 0%, #e4cc8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 167, 111, 0.3);
}

.coupons-redeem-btn:active {
    transform: translateY(0);
}

.coupons-redeem-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.coupons-redeem-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.coupons-redeem-btn.loading i {
    animation: couponsBtnSpin 0.8s linear infinite;
}

@keyframes couponsBtnSpin {
    to { transform: rotate(360deg); }
}

.coupons-redeem-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: none;
    line-height: 1.4;
}

.coupons-redeem-message.show {
    display: block;
}

.coupons-redeem-message.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.coupons-redeem-message.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* ===== Available Coupons Section Header ===== */
.coupons-available-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e3eeff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(194, 167, 111, 0.12);
}

.coupons-available-header i {
    color: #f3c14a;
    font-size: 14px;
}

.coupons-available-header span {
    color: #5a6b80;
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: auto;
}

/* ===== Coupon Card Grid ===== */
.coupons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

@media (min-width: 640px) {
    .coupons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        align-items: start;
    }
}

/* ===== Coupon Card ===== */
.coupon-card {
    background: linear-gradient(135deg, rgba(13, 28, 53, 0.8), rgba(10, 22, 44, 0.9));
    border: 1px solid rgba(194, 167, 111, 0.15);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.coupon-card:hover {
    border-color: rgba(194, 167, 111, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Card Image */
.coupon-card-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #060e1b;
}

.coupon-card-img-wrap img {
    width: 100%;
    height: auto;
    
    display: block;
    transition: transform 0.4s ease;
}

.coupon-card:hover .coupon-card-img-wrap img {
    transform: scale(1.05);
}

.coupon-card-img-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10%;
    background: linear-gradient(transparent, rgba(10, 22, 40, 0.8));
    pointer-events: none;
}

/* Card Body */
.coupon-card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.coupon-card-title {
    color: #e3eeff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}

.coupon-card-description {
    color: #8aa0c0;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 0;
    flex: 1;
    overflow: hidden;
    max-height: 80px;
    transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.coupon-card-description.collapsed {
    -webkit-line-clamp: 4;
}

.coupon-card-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

/* Coupon Description Toggle (Show more / Show less) */
.coupon-card-description-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #c2a76f;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 3px 0 0;
    font-family: inherit;
    transition: color 0.2s ease;
}

.coupon-card-description-toggle:hover {
    color: #f3c14a;
}

.coupon-card-description-toggle i {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.coupon-card-description-toggle.expanded i {
    transform: rotate(180deg);
}

.coupon-card-description a,
.coupon-card-description .coupon-terms-link {
    color: #c2a76f;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.coupon-card-description a:hover {
    color: #f3c14a;
}

/* Coupon Code Badge */

.coupon-card-code i {
    font-size: 11px;
    color: #c2a76f;
}

/* Card Actions */
.coupon-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(194, 167, 111, 0.08);
}

.coupon-card-redeem-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 9px 14px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(135deg, #c2a76f 0%, #d4b87a 100%);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-card-redeem-btn:hover {
    background: linear-gradient(135deg, #d4b87a 0%, #e4cc8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 167, 111, 0.3);
}

.coupon-card-redeem-btn:active {
    transform: translateY(0);
}

.coupon-card-redeem-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.coupon-card-redeem-btn.loading i {
    animation: couponsBtnSpin 0.8s linear infinite;
}

.coupon-card-redeem-btn.redeemed {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #2ecc71;
    pointer-events: none;
}

.coupon-card-terms-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 1px solid rgba(194, 167, 111, 0.2);
    border-radius: 7px;
    background: transparent;
    color: #8aa0c0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    flex-shrink: 0;
    text-decoration: none;
}

.coupon-card-terms-btn:hover {
    border-color: #c2a76f;
    color: #c2a76f;
    background: rgba(194, 167, 111, 0.06);
}

/* ===== Loading & Empty States ===== */

.coupons-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
}

.coupons-empty i {
    font-size: 40px;
    color: #c2a76f;
    margin-bottom: 14px;
    opacity: 0.5;
}

.coupons-empty p {
    color: #5a6b80;
    font-size: 14px;
    margin: 0;
}

.coupons-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.coupons-error i {
    font-size: 36px;
    color: #e74c3c;
    margin-bottom: 12px;
    opacity: 0.7;
}

.coupons-error p {
    color: #8aa0c0;
    font-size: 14px;
    margin: 0 0 6px;
}

.coupons-error-sub {
    color: #5a6b80;
    font-size: 12px;
}




/*==================================================================================
  COUPONS OVERLAY — Active Coupon Section
  ==================================================================================*/

.coupons-active-section {
    padding: 0;
}

.active-coupon-card {
    background: linear-gradient(135deg, #0d1c35 0%, #13264a 100%);
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.active-coupon-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(46, 204, 113, 0.12), rgba(46, 204, 113, 0.05));
    border-bottom: 1px solid rgba(46, 204, 113, 0.15);
}

.active-coupon-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.active-coupon-banner-left i {
    color: #2ecc71;
    font-size: 16px;
}

.active-coupon-banner-text {
    color: #2ecc71;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.active-coupon-code {
    font-family: "CasinoNumbers", "CasinoText", monospace;
    background: rgba(194, 167, 111, 0.12);
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 6px;
    padding: 4px 12px;
    color: #f3c14a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}
/* ===== Active Coupon Type Badge ===== */
.active-coupon-type-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 6px;
    line-height: 1.4;
    border: 1px solid;
}

.active-coupon-type-badge.type-match-spins {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.35);
    color: #2ecc71;
}

.active-coupon-type-badge.type-match {
    background: rgba(194, 167, 111, 0.15);
    border-color: rgba(194, 167, 111, 0.35);
    color: #f3c14a;
}

.active-coupon-type-badge.type-chip-spins {
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.35);
    color: #5dade2;
}

.active-coupon-type-badge.type-chip {
    background: rgba(155, 89, 182, 0.15);
    border-color: rgba(155, 89, 182, 0.35);
    color: #af7ac5;
}

.active-coupon-body {
    padding: 16px;
}

.active-coupon-type-badge.type-fs {
    background: rgba(26, 188, 156, 0.15);
    border-color: rgba(26, 188, 156, 0.35);
    color: #1abc9c;
}

.active-coupon-title {
    color: #e3eeff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.active-coupon-description {
    color: #8aa0c0;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.active-coupon-description a {
    color: #c2a76f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.active-coupon-description a:hover {
    color: #f3c14a;
}

.active-coupon-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
    background: rgba(10, 22, 40, 0.5);
    border: 1px solid rgba(194, 167, 111, 0.1);
    border-radius: 8px;
}

.active-coupon-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 8px;
    background: rgba(13, 28, 53, 0.5);
    border-radius: 6px;
}

.active-coupon-detail-label {
    color: #5a6b80;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.active-coupon-detail-value {
    color: #e3eeff;
    font-size: 13px;
    font-weight: 600;
}

.active-coupon-detail-value.gold {
    color: #f3c14a;
}

.active-coupon-detail-value.green {
    color: #2ecc71;
}

.active-coupon-playthrough {
    padding: 12px;
    background: rgba(10, 22, 40, 0.5);
    border: 1px solid rgba(194, 167, 111, 0.1);
    border-radius: 8px;
    margin-bottom: 14px;
}

.active-coupon-playthrough-title {
    color: #c2a76f;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.active-coupon-playthrough-title i {
    font-size: 12px;
}

.active-coupon-pt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 12px;
}

.active-coupon-pt-label {
    color: #7a8ba8;
}

.active-coupon-pt-value {
    color: #bccde0;
    font-weight: 600;
    font-family: "CasinoNumbers", "CasinoText", monospace;
}

.active-coupon-pt-value.played {
    color: #2ecc71;
}

.active-coupon-pt-value.needed {
    color: #f3c14a;
}
/* ===== Awaiting Deposit State ===== */
.ac-pt-awaiting {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7a8ba8;
    font-weight: 500;
    font-size: 12px;
    animation: acPtAwaitingPulse 2s ease-in-out infinite;
}

.ac-pt-awaiting i {
    font-size: 12px;
    opacity: 0.7;
}

@keyframes acPtAwaitingPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}


.active-coupon-pt-progress {
    margin-top: 8px;
    height: 6px;
    background: rgba(194, 167, 111, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.active-coupon-pt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 3px;
    transition: width 0.6s ease;
    min-width: 0;
}

.active-coupon-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}

.active-coupon-actions .active-coupon-tnc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid rgba(194, 167, 111, 0.3);
    border-radius: 8px;
    background: transparent;
    color: #c2a76f;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.active-coupon-actions .active-coupon-tnc-btn:hover {
    border-color: #c2a76f;
    background: rgba(194, 167, 111, 0.1);
    color: #f3c14a;
    text-decoration: none;
}

.active-coupon-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 9px 12px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    background: transparent;
    color: #e74c3c;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.active-coupon-cancel-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.active-coupon-cancel-btn:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #ff6b6b;
}

.active-coupon-deposit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #c2a76f, #d4b97f);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-coupon-deposit-btn:hover {
    background: linear-gradient(135deg, #d4b97f, #e4cc8f);
    box-shadow: 0 4px 12px rgba(194, 167, 111, 0.3);
}

.active-coupon-games {
    border-top: 1px solid rgba(194, 167, 111, 0.12);
}

.active-coupon-games-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #e3eeff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.active-coupon-games-toggle:hover {
    background: rgba(194, 167, 111, 0.06);
    color: #f3c14a;
}

.active-coupon-games-toggle .toggle-icon {
    transition: transform 0.25s ease;
    font-size: 12px;
    color: #c2a76f;
}

.active-coupon-games-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

.active-coupon-games-content {
    display: none;
    padding: 0 16px 12px;
}

.active-coupon-games-content.open {
    display: block;
}


/* Playthrough note subtitle */
.active-coupon-pt-note {
    font-size: 12px;
    color: #8aa0c0;
    font-style: italic;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(194, 167, 111, 0.1);
    margin-bottom: 10px;
}

.active-coupon-game-group {
    margin-bottom: 6px;
    border: 1px solid rgba(194, 167, 111, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.active-coupon-game-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    background: rgba(194, 167, 111, 0.04);
    border: none;
    color: #bccde0;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.active-coupon-game-group-header:hover {
    background: rgba(194, 167, 111, 0.08);
    color: #f3c14a;
}

.active-coupon-game-group-header .group-count {
    color: #5a6b80;
    font-size: 11px;
    font-weight: 500;
}

.active-coupon-game-group-header .group-arrow {
    transition: transform 0.25s ease;
    font-size: 10px;
    color: #c2a76f;
}

.active-coupon-game-group-header.open .group-arrow {
    transform: rotate(90deg);
}

.active-coupon-game-group-body {
    display: none;
    padding: 4px 12px 8px;
}

.active-coupon-game-group-body.open {
    display: block;
}


.active-coupon-game-item {
    color: #6a829e;
    font-size: 11px;
    padding: 3px 0 3px 16px;
    position: relative;
    line-height: 1.4;
}

.active-coupon-game-item::before {
    content: "\2022";
    position: absolute;
    left: 4px;
    color: #c2a76f;
    opacity: 0.5;
}

.active-coupon-game-item.inc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 12px 3px 16px;
}

.active-coupon-game-item.excl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 12px 3px 16px;
    color: #5a6b80;
}

.active-coupon-game-item .item-name {
    flex: 1;
    min-width: 0;
}

.active-coupon-pt-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: #2ecc71;
    font-size: 10px;
    font-weight: 700;
    font-family: 'CasinoNumbers', 'CasinoText', sans-serif;
    flex-shrink: 0;
    margin-left: 8px;
    line-height: 1.3;
}

.active-coupon-game-group-header .active-coupon-pt-badge {
    margin-left: auto;
    margin-right: 6px;
}


.active-coupon-exclusion-group {
    margin-bottom: 4px;
}

.active-coupon-exclusion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: #e74c3c;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    opacity: 0.8;
}

.active-coupon-exclusion-header:hover {
    opacity: 1;
    background: rgba(231, 76, 60, 0.04);
}

.active-coupon-exclusion-header .group-arrow {
    transition: transform 0.25s ease;
    font-size: 10px;
    color: #e74c3c;
}

.active-coupon-exclusion-header.open .group-arrow {
    transform: rotate(90deg);
}

.active-coupon-exclusion-body {
    display: none;
    padding: 2px 12px 6px;
}

.active-coupon-exclusion-body.open {
    display: block;
}

.active-coupon-exclusion-item {
    color: #6a829e;
    font-size: 11px;
    padding: 2px 0 2px 16px;
    position: relative;
}

.active-coupon-exclusion-item::before {
    content: "✖";
    position: absolute;
    left: 2px;
    color: #e74c3c;
    font-size: 9px;
    opacity: 0.6;
}

.active-coupon-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #7a8ba8;
    gap: 12px;
}

.active-coupon-loader-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(194, 167, 111, 0.15);
    border-top-color: #c2a76f;
    border-radius: 50%;
    animation: activeCouponSpin 0.8s linear infinite;
}

@keyframes activeCouponSpin {
    to { transform: rotate(360deg); }
}

.active-coupon-loader-text {
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 640px) {
    .active-coupon-detail-grid {
        grid-template-columns: 1fr;
    }
    .active-coupon-title {
        font-size: 16px;
    }
    .active-coupon-actions {
        flex-wrap: wrap;
    }
    .active-coupon-actions .active-coupon-tnc-btn {
        width: 100%;
        order: -1;
    }
    
flex: 1;
    min-width: 0;

}

@media (max-width: 480px) {
    .active-coupon-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        position: relative;
    }
    .active-coupon-type-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        margin-left: 0;
        z-index: 2;
    }
    .active-coupon-code {
        align-self: flex-start;
    }
    .active-coupon-body {
        padding: 12px;
    }
    .active-coupon-detail-grid {
        padding: 8px;
        gap: 6px;
    }
    .active-coupon-detail-item {
        padding: 4px 6px;
    }
}

/* ====== Deposit Options Rows (multi-method) ====== */

.ac-deposit-fullwidth {
    grid-column: 1 / -1;
}

.ac-deposit-options-header {
    margin-bottom: 6px;
}

.ac-deposit-rows {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 2px;
}
.ac-no-deposit-msg {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    color: #a0b4c8;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.ac-no-deposit-msg i {
    font-size: 18px;
    color: #f3c14a;
    opacity: 0.8;
}

.ac-no-deposit-msg span {
    background: rgba(194, 167, 111, 0.1);
    border: 1px solid rgba(194, 167, 111, 0.2);
    border-radius: 20px;
    padding: 6px 18px;
    color: #f3c14a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


.ac-deposit-rows.ac-deposit-rows-has-spins {
    grid-template-columns: 1fr auto auto auto auto;
}

.ac-deposit-rows > .ac-deposit-cell {
    padding: 6px 8px;
    background: rgba(10, 22, 40, 0.4);
    border: 1px solid rgba(194, 167, 111, 0.07);
    border-radius: 6px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    min-width: 0;
}

.ac-deposit-rows > .ac-deposit-cell:hover {
    background: rgba(13, 28, 53, 0.6);
}

.ac-deposit-cell {
    font-size: 12px;
    color: #bccde0;
    font-weight: 500;
    white-space: nowrap;
}

.ac-deposit-method {
    color: #e3eeff;
    font-weight: 600;
    text-align: left;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ac-deposit-min {
    color: #c2a76f;
    font-weight: 600;
    justify-content: center;
    min-width: 64px;
    font-family: "CasinoNumbers", "CasinoText", monospace;
}

.ac-deposit-max {
    justify-content: center;
    min-width: 72px;
    font-family: "CasinoNumbers", "CasinoText", monospace;
}

.ac-deposit-bonus {
    color: #2ecc71;
    font-weight: 600;
    justify-content: center;
    min-width: 60px;
    font-family: "CasinoNumbers", "CasinoText", monospace;
}

.ac-deposit-spins {
    color: #f3c14a;
    font-weight: 600;
    justify-content: center;
    min-width: 72px;
    font-family: "CasinoNumbers", "CasinoText", monospace;
}

.ac-deposit-rows > .ac-deposit-cell.ac-deposit-header {
    background: rgba(194, 167, 111, 0.1);
    border-color: rgba(194, 167, 111, 0.18);
    padding: 4px 8px;
}

.ac-deposit-rows > .ac-deposit-cell.ac-deposit-header:hover {
    background: rgba(194, 167, 111, 0.1);
}

.ac-deposit-header {
    color: #7a8ba8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

/* ====== Free Spins Games Table ====== */

.ac-free-spins-games {
    margin-top: 12px;
    border-top: 1px solid rgba(194, 167, 111, 0.1);
    padding-top: 10px;
}

.ac-fs-games-table-wrap {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 4px;
    align-items: center;
}

.ac-fs-games-table-wrap > .ac-fs-games-label,
.ac-fs-games-table-wrap > .ac-fs-games-cell {
    padding: 6px 8px;
}

.ac-fs-games-title-row {
    grid-column: 1 / -1;
    padding: 4px 8px 8px;
}

.ac-fs-games-title {
    color: #f3c14a;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ac-fs-games-title i {
    font-size: 14px;
}

.ac-fs-games-label {
    color: #7a8ba8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
    background: rgba(194, 167, 111, 0.1);
    border: 1px solid rgba(194, 167, 111, 0.18);
    border-radius: 6px;
    padding: 4px 8px;
}

.ac-fs-games-label-game {
    text-align: left;
}

.ac-fs-games-label-lines {
    text-align: center;
}

.ac-fs-games-label-denom {
    text-align: center;
}

.ac-fs-games-cell {
    font-size: 12px;
    color: #bccde0;
    font-weight: 500;
    white-space: nowrap;
    background: rgba(10, 22, 40, 0.4);
    border: 1px solid rgba(194, 167, 111, 0.07);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.ac-fs-games-cell:hover {
    background: rgba(13, 28, 53, 0.6);
}

.ac-fs-games-name {
    color: #e3eeff;
    font-weight: 600;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-fs-games-lines {
    text-align: center;
    font-family: "CasinoNumbers", "CasinoText", monospace;
}

.ac-fs-games-denom {
    text-align: center;
    color: #c2a76f;
    font-weight: 600;
    font-family: "CasinoNumbers", "CasinoText", monospace;
}


.ac-deposit-bonus {
    color: #2ecc71;
    font-weight: 700;
    justify-content: center;
    min-width: 52px;
}

.ac-deposit-spins {
    color: #f3c14a;
    font-weight: 600;
    justify-content: center;
    min-width: 72px;
}

/* ===== Responsive: Deposit Options Table ===== */
@media (max-width: 640px) {
    .ac-deposit-rows {
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ac-deposit-rows > .ac-deposit-cell {
        padding: 5px 6px;
        font-size: 11px;
    }
    .ac-deposit-rows > .ac-deposit-cell.ac-deposit-header {
        padding: 3px 6px;
        font-size: 9px;
        letter-spacing: 0.5px;
    }
    .ac-deposit-min {
        min-width: 56px;
    }
    .ac-deposit-max {
        min-width: 60px;
    }
    .ac-deposit-bonus {
        min-width: 50px;
    }
    .ac-deposit-spins {
        min-width: 54px;
    }
}

@media (max-width: 480px) {
    .ac-deposit-rows > .ac-deposit-cell {
        padding: 4px 5px;
        font-size: 10px;
    }
    .ac-deposit-rows > .ac-deposit-cell.ac-deposit-header {
        padding: 2px 3px;
        font-size: 8px;
        letter-spacing: 0.3px;
    }
    .ac-deposit-min {
        min-width: 48px;
    }
    .ac-deposit-max {
        min-width: 52px;
    }
    .ac-deposit-bonus {
        min-width: 42px;
    }
    .ac-deposit-spins {
        min-width: 46px;
    }
    .ac-deposit-method {
        font-size: 10px;
    }
}

/* ===== Responsive: Free Spins Games Table ===== */
@media (max-width: 640px) {
    .ac-fs-games-table-wrap {
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ac-fs-games-table-wrap > .ac-fs-games-label,
    .ac-fs-games-table-wrap > .ac-fs-games-cell {
        padding: 5px 6px;
        font-size: 11px;
    }
    .ac-fs-games-label {
        font-size: 9px;
        letter-spacing: 0.5px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .ac-fs-games-table-wrap {
        gap: 1px;
    }
    .ac-fs-games-table-wrap > .ac-fs-games-label,
    .ac-fs-games-table-wrap > .ac-fs-games-cell {
        padding: 4px 5px;
        font-size: 10px;
    }
    .ac-fs-games-label {
        font-size: 8px;
        padding: 2px 5px;
        letter-spacing: 0.3px;
    }
    .ac-fs-games-title {
        font-size: 11px;
    }
    .ac-fs-games-title-row {
        padding: 2px 4px 6px;
    }
}
/* ===== Modal Responsive ===== */
@media (max-width: 768px) {
    .coupons-container {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }

    .coupons-header {
        padding: 10px 14px;
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
    }

    .coupons-body {
        padding: 12px 14px 16px;
    }

    .coupons-redeem-section {
        padding: 12px 14px;
        margin-bottom: 18px;
    }

    .coupons-redeem-row {
        flex-direction: column;
        gap: 8px;
    }

    .coupons-redeem-btn {
        width: 100%;
        padding: 10px 14px;
    }

    .coupons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .coupon-card-img-wrap {
    }

    .coupon-card-body {
        padding: 12px 14px;
    }

    .coupon-card-title {
        font-size: 14px;
    }

    .coupon-card-description {
        font-size: 12px;
        max-height: 56px;
    }

    .coupon-card-description.collapsed {
        -webkit-line-clamp: 3;
    }

    .coupon-card-description-toggle {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .coupons-redeem-section {
        padding: 10px 12px;
    }

    .coupons-redeem-title {
        font-size: 12px;
        margin-bottom: 8px;
    }
}



/* ===== Free Spins Blocked Toast ===== */

.fs-blocked-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 99999;
    max-width: 520px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.fs-blocked-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.fs-blocked-toast-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0d1c35, #1a3060);
    border: 1px solid rgba(46, 204, 113, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(46, 204, 113, 0.15);
    color: #e3eeff;
    font-size: 14px;
    line-height: 1.5;
}

.fs-blocked-toast-inner i {
    font-size: 22px;
    color: #2ecc71;
    flex-shrink: 0;
}

.fs-blocked-toast-inner strong {
    color: #2ecc71;
}

@media (max-width: 480px) {
    .fs-blocked-toast {
        top: 10px;
        width: 95%;
    }
    .fs-blocked-toast-inner {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ===== Live Dealer Error Toast ===== */

.ld-error-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 99999;
    max-width: 520px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.ld-error-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.ld-error-toast-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2b0f14, #4a1620);
    border: 1px solid rgba(231, 76, 60, 0.5);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(231, 76, 60, 0.15);
    color: #ffe9e6;
    font-size: 14px;
    line-height: 1.5;
}

.ld-error-toast-inner i {
    font-size: 22px;
    color: #e74c3c;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .ld-error-toast {
        top: 10px;
        width: 95%;
    }
    .ld-error-toast-inner {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ===== Free Spins Lock Overlay ===== */

.lobby-game-card.fs-locked {
    cursor: default;
    pointer-events: auto;
}

.lobby-game-card.fs-locked .lobby-game-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.lobby-fs-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(6, 14, 27, 0.75);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Default visible state — always show a subtle lock */
.lobby-game-card.fs-locked .lobby-fs-lock-overlay {
    opacity: 1;
}

.lobby-fs-lock-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(194, 167, 111, 0.15);
    border: 1px solid rgba(194, 167, 111, 0.3);
    border-radius: 50%;
    color: #c2a76f;
    font-size: 14px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.lobby-fs-lock-text {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(227, 238, 255, 0.7);
    text-align: center;
    line-height: 1.2;
}

/* On hover — darken overlay, scale icon */
.lobby-game-card.fs-locked:hover .lobby-fs-lock-overlay {
    background: rgba(6, 14, 27, 0.85);
}

.lobby-game-card.fs-locked:hover .lobby-fs-lock-icon {
    transform: scale(1.15);
    background: rgba(194, 167, 111, 0.25);
}

/* Keep the fav heart and jackpot bar above the overlay */
.lobby-game-card.fs-locked .lobby-fav-btn {
    z-index: 6;
}

.lobby-game-card.fs-locked .lobby-jackpot-bar {
    z-index: 6;
}

.lobby-game-card.fs-locked .lobby-game-card-badge {
    z-index: 10;
}


/* List view — simpler treatment */
.lobby-list-row.fs-locked {
    opacity: 0.5;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .lobby-fs-lock-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }.lobby-fs-lock-text {
    font-size: 8px;
    letter-spacing: 0.5px;
}
}

/*==================================================================================
  LOBBY — Half Image Banner (Type 1) Split Layout
  ==================================================================================*/

#lobbyBannerCarousel .splide__slide .lobby-slide-inner.lobby-slide-half {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding-bottom: 0;
    min-height: 220px;
    height: 100%;
    background: linear-gradient(135deg, #0a1628 0%, #0d1c35 30%, #13264a 50%, #0f1e3a 100%);
    overflow: hidden;
}

/* Suppress the generic diagonal gradient overlay for half-banner slides
   since they have their own custom horizontal gradient mask */
#lobbyBannerCarousel .splide__slide .lobby-slide-inner.lobby-slide-half::after {
    content: none;
}

/* ── Left text area (60%) — centered, dark, spacious ── */
.lobby-half-text {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 36px 40px 32px 68px;
    position: relative;
    z-index: 5;
    background: #0a1628;
}

.lobby-half-text .lobby-hero-title {
    font-size: 60px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 6px;
    line-height: 1.12;
    letter-spacing: 1px;
    max-width: none;
    width: 150%; /* ~60% of banner width, extending into the fade area */
    flex-shrink: 0;
    position: relative;
    z-index: 6;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 0, 0, 0.4);
}

.lobby-half-text .lobby-hero-subtitle {
    font-size: 22px;
    font-weight: 500;
    color: #d4b97f;
    margin: 0 0 10px;
    line-height: 1.4;
    max-width: 440px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.lobby-half-text .lobby-hero-desc {
    font-size: 16px;
    color: #c8d9ee;
    margin: 0 0 20px;
    line-height: 1.7;
    max-width: 460px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.lobby-half-text .lobby-hero-cta {
    margin-top: 4px;
    padding: 14px 36px;
    font-size: 14px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #c2a76f 0%, #dcc287 50%, #c2a76f 100%);
    background-size: 200% auto;
    border-radius: 6px;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(194, 167, 111, 0.2);
}

.lobby-half-text .lobby-hero-cta:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(194, 167, 111, 0.35);
    color: #000;
}

/* ── Right image area (40%) — pushed to the right edge ── */
.lobby-half-image {
    flex: 0 0 60%;
    max-width: 60%;
    position: relative;
}

.lobby-half-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    object-position: center center;
    transform: scale(1.02);
    transition: transform 8s ease;
}

.lobby-slide-half:hover .lobby-half-image img {
    transform: scale(1.08);
}

/* ── Wide horizontal gradient mask ── */
.lobby-half-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        to right,
        #0a1628 0%,
        #0a1628 12%,
        #0b172b 20%,
        rgba(10, 22, 40, 0.92) 30%,
        rgba(10, 22, 40, 0.78) 42%,
        rgba(10, 22, 40, 0.58) 54%,
        rgba(10, 22, 40, 0.35) 66%,
        rgba(10, 22, 40, 0.15) 78%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 3;
}

/* ── Layered depth: atmospheric glow behind artwork ── */
.lobby-half-glow {
    position: absolute;
    right: -10%;
    top: -15%;
    width: 70%;
    height: 130%;
    background: radial-gradient(
        ellipse at 40% 50%,
        rgba(194, 167, 111, 0.07) 0%,
        rgba(194, 167, 111, 0.03) 30%,
        rgba(100, 130, 180, 0.04) 50%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 1;
}

/* ── Floating particles layer ── */
.lobby-half-particles {
    position: absolute;
    right: 5%;
    top: 0;
    width: 35%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.lobby-half-particles::before,
.lobby-half-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(194, 167, 111, 0.08);
}

.lobby-half-particles::before {
    width: 4px;
    height: 4px;
    top: 18%;
    right: 30%;
    box-shadow:
        20px 40px 0 0 rgba(194, 167, 111, 0.06),
        -40px 80px 0 0 rgba(255, 255, 255, 0.04),
        60px 120px 0 0 rgba(194, 167, 111, 0.05),
        -20px 160px 0 0 rgba(194, 167, 111, 0.03),
        80px 200px 0 0 rgba(255, 255, 255, 0.04),
        -60px 240px 0 0 rgba(194, 167, 111, 0.06),
        30px 280px 0 0 rgba(194, 167, 111, 0.03),
        -80px 320px 0 0 rgba(255, 255, 255, 0.05);
    animation: halfParticleDrift 12s ease-in-out infinite alternate;
}

.lobby-half-particles::after {
    width: 6px;
    height: 6px;
    top: 40%;
    right: 50%;
    box-shadow:
        -30px 30px 0 0 rgba(194, 167, 111, 0.05),
        50px 70px 0 0 rgba(255, 255, 255, 0.03),
        -70px 110px 0 0 rgba(194, 167, 111, 0.04),
        40px 150px 0 0 rgba(194, 167, 111, 0.05),
        -50px 190px 0 0 rgba(255, 255, 255, 0.03),
        70px 230px 0 0 rgba(194, 167, 111, 0.06),
        -40px 270px 0 0 rgba(194, 167, 111, 0.04);
    animation: halfParticleDrift 16s ease-in-out infinite alternate-reverse;
}

@keyframes halfParticleDrift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(-8px, -4px) scale(1.1); opacity: 1; }
    100% { transform: translate(6px, 8px) scale(0.9); opacity: 0.7; }
}

/* ── Responsive: Tablet & Mobile ── */
@media (max-width: 900px) {
    .lobby-half-text {
        padding: 26px 28px 22px 40px;
    }
    .lobby-half-text .lobby-hero-title {
        font-size: 28px;
    }
    .lobby-half-text .lobby-hero-subtitle {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .lobby-half-text .lobby-hero-desc {
        font-size: 14px;
        margin-bottom: 14px;
    }
    .lobby-half-text .lobby-hero-cta {
        padding: 10px 24px;
        font-size: 13px;
    }
    .lobby-half-fade {
        width: 50%;
    }
}

@media (max-width: 640px) {
    #lobbyBannerCarousel .splide__slide .lobby-slide-inner.lobby-slide-half {
        flex-direction: column;
        min-height: 150px;
    }    .lobby-half-text {
        flex: 0 0 auto;
        max-width: 100%;
        padding: 14px 16px 10px 20px;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 5;
        background: linear-gradient(transparent 0%, rgba(10, 22, 40, 0.6) 30%, rgba(10, 22, 40, 0.95) 100%);
    }
    .lobby-half-text .lobby-hero-title {
        font-size: 22px;
        margin-bottom: 6px;
        width: auto;
        max-width: 100%;
        text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
    }
    .lobby-half-text .lobby-hero-subtitle {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .lobby-half-text .lobby-hero-desc {
        font-size: 13px;
        margin-bottom: 10px;
        max-width: 100%;
    }
    .lobby-half-text .lobby-hero-cta {
        font-size: 12px;
        padding: 7px 16px;
    }

    .lobby-half-image {
        flex: 1;
        max-width: 100%;
    }

    .lobby-half-fade {
        width: 55%;
        left: 0;
    }

    .lobby-half-image img {
        transform: scale(1);
    }

    .lobby-half-glow,
    .lobby-half-particles {
        display: none;
    }
}@media (max-width: 480px) {
    .lobby-half-text {
        padding: 10px 10px 8px;
    }
    .lobby-half-text .lobby-hero-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .lobby-half-text .lobby-hero-desc {
        display: none;
    }

    .lobby-half-text .lobby-hero-cta {
        font-size: 11px;
        padding: 6px 14px;
    }

    .lobby-half-fade {
        width: 70%;
    }
}

/*==================================================================================
  LOBBY — Banner Terms Badge
  ==================================================================================*/

.lobby-banner-terms-btn {
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-items: center;
    background-color: #2c4d86a1;
    color: #e1e1e1;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    font-weight: bold;
    top: 12px;
    left: 8px;
    cursor: pointer;
    animation: bannerTermsPulse 2s ease-in-out infinite;
}

.lobby-banner-terms-btn:hover {
    background: rgba(194, 167, 111, 0.25);
    border-color: #c2a76f;
    color: #f3c14a;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(194, 167, 111, 0.3);
    animation: none;
}

@keyframes bannerTermsPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(194, 167, 111, 0); }
    50% { box-shadow: 0 0 8px rgba(194, 167, 111, 0.3); }
}

/*==================================================================================
  LOBBY — No Banners Available State
  ==================================================================================*/

.lobby-banners-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: linear-gradient(135deg, rgba(13, 28, 53, 0.6), rgba(10, 22, 44, 0.8));
    border-radius: 14px;
    color: #5a6b80;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/*==================================================================================
  ACCOUNT HISTORY OVERLAY
  ==================================================================================*/

/* ---- Overlay Shell ---- */
.ah-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ah-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ah-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, background 0.3s ease;
}

.ah-overlay.active .ah-backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ah-container {
    position: relative;
    z-index: 2;
    width: 95vw;
    max-width: 820px;
    max-height: 88vh;
    min-height: 0;
    background: linear-gradient(180deg, #0d1c35 0%, #0a1628 100%);
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ah-overlay.active .ah-container {
    transform: scale(1) translateY(0);
}

@media (max-width: 640px) {
    .ah-container {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }
}

/* ---- Header ---- */
.ah-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(135deg, #0d1c35 0%, #13264a 100%);
    border-bottom: 1px solid rgba(194, 167, 111, 0.15);
    flex-shrink: 0;
    position: relative;
}

.ah-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 167, 111, 0.4), transparent);
    pointer-events: none;
}

.ah-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e3eeff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ah-title i {
    color: #c2a76f;
    font-size: 15px;
}

.ah-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ah-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: transparent;
    color: #7a8ba8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.ah-close:hover {
    background: rgba(194, 167, 111, 0.15);
    border-color: #c2a76f;
    color: #f3c14a;
    transform: rotate(90deg);
}

/* ---- Body (sticky filter section) ---- */
.ah-body {
    flex-shrink: 0;
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---- Date Range Filter ---- */
.ah-date-filter {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.ah-date-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.ah-date-label {
    color: #8aa0c0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.ah-date-input {
    background: rgba(13, 28, 53, 0.9);
    border: 1px solid rgba(194, 167, 111, 0.25);
    border-radius: 8px;
    color: #e3eeff;
    font-size: 14px;
    font-family: inherit;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ah-date-input::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(2.5) hue-rotate(5deg);
    cursor: pointer;
}

.ah-date-input:hover {
    border-color: rgba(194, 167, 111, 0.5);
}

.ah-date-input:focus {
    border-color: #c2a76f;
    box-shadow: 0 0 0 2px rgba(194, 167, 111, 0.12);
}

.ah-date-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
    color: #c2a76f;
    font-size: 14px;
}

.ah-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #c2a76f, #d4b97f);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    white-space: nowrap;
}

.ah-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(194, 167, 111, 0.3);
}

.ah-search-btn:active {
    transform: translateY(0);
}

.ah-search-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- 31 Day Notice ---- */
.ah-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(194, 167, 111, 0.08);
    border: 1px solid rgba(194, 167, 111, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #c2a76f;
    font-size: 13px;
    font-weight: 500;
}

.ah-notice i {
    font-size: 14px;
    flex-shrink: 0;
}

/* ---- Error ---- */
.ah-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ff8a80;
    font-size: 13px;
    font-weight: 500;
}

.ah-error i {
    font-size: 14px;
    flex-shrink: 0;
}

/* ---- Results Table (scrollable) ---- */
.ah-results-wrap {
    position: relative;
    flex: 1;
    min-height: 120px;
    overflow-y: auto;
    padding: 0 18px 18px;
    -webkit-overflow-scrolling: touch;
}

.ah-results-wrap::-webkit-scrollbar {
    width: 6px;
}

.ah-results-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.ah-results-wrap::-webkit-scrollbar-thumb {
    background: rgba(194, 167, 111, 0.25);
    border-radius: 3px;
}

.ah-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(13, 28, 53, 0.5);
    border: 1px solid rgba(194, 167, 111, 0.12);
    border-radius: 8px;
    overflow: hidden;
}

.ah-table thead {
    background: linear-gradient(135deg, #0d1c35 0%, #13264a 100%);
}

.ah-table th {
    color: #c2a76f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(194, 167, 111, 0.15);
    white-space: nowrap;
}

.ah-table td {
    color: #bccde0;
    font-size: 13px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(194, 167, 111, 0.06);
    vertical-align: middle;
}

.ah-table tbody tr {
    transition: background 0.2s ease;
}

.ah-table tbody tr:hover {
    background: rgba(194, 167, 111, 0.05);
}

.ah-table tbody tr:last-child td {
    border-bottom: none;
}

.ah-col-date {
    white-space: nowrap;
    color: #e3eeff;
    font-weight: 600;
}

.ah-col-desc {
    min-width: 0;
}

.ah-col-amount {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.ah-amount-pos {
    color: #2ecc71;
}

.ah-amount-neg {
    color: #ff6b6b;
}

.ah-table-empty {
    text-align: center;
    padding: 40px 20px !important;
    color: #7a8ba8;
}

.ah-table-empty i {
    display: block;
    font-size: 36px;
    color: #c2a76f;
    margin-bottom: 12px;
    opacity: 0.6;
}

.ah-table-empty p {
    margin: 0;
    font-size: 14px;
}

/* ---- Loader ---- */
.ah-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(10, 22, 40, 0.7);
    border-radius: 8px;
    z-index: 2;
}

.ah-loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(194, 167, 111, 0.2);
    border-top-color: #c2a76f;
    border-radius: 50%;
    animation: ahSpin 0.8s linear infinite;
}

@keyframes ahSpin {
    to {
        transform: rotate(360deg);
    }
}

.ah-loader-text {
    color: #8aa0c0;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .ah-body {
        padding: 14px 14px 10px;
    }

    .ah-results-wrap {
        padding: 0 14px 14px;
    }

    /* Keep From/To side-by-side on mobile (arrow hidden) */
    .ah-date-filter {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 8px;
    }

    .ah-date-field {
        flex: 1 1 0;
        min-width: 0;
    }

    .ah-date-arrow {
        display: none;
    }

    .ah-search-btn {
        flex-basis: 100%;
    }

    /* Keep the overlay header clear of the URL bar / status bar */
    .ah-header {
        padding: 12px 18px;
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
    }

    /* ---- Stacked Card Layout (no horizontal scrolling) ---- */
    .ah-table {
        display: block;
        width: 100%;
        border: none;
        border-radius: 0;
        background: transparent;
        overflow: visible;
    }

    .ah-table tbody {
        display: block;
        width: 100%;
    }

    .ah-table thead {
        display: none;
    }

    .ah-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 10px;
        margin-bottom: 10px;
        padding: 12px 14px;
        background: rgba(13, 28, 53, 0.5);
        border: 1px solid rgba(194, 167, 111, 0.12);
        border-radius: 8px;
    }

    .ah-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .ah-table tbody tr td {
        border-bottom: none;
        padding: 0;
    }

    .ah-table tbody tr .ah-col-date {
        order: 1;
        font-size: 12px;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ah-table tbody tr .ah-col-amount {
        order: 2;
        margin-left: auto;
        font-size: 14px;
        flex-shrink: 0;
    }

    .ah-table tbody tr .ah-col-desc {
        order: 3;
        flex: 0 0 100%;
        min-width: 0;
        padding-top: 8px;
        margin-top: 4px;
        border-top: 1px solid rgba(194, 167, 111, 0.1);
        white-space: normal;
        line-height: 1.45;
        word-break: break-word;
    }

    /* Empty state keeps its centered look inside a card */
    .ah-table tbody tr td.ah-table-empty {
        flex: 0 0 100%;
        order: 3;
        padding: 40px 20px;
        border-top: none;
        margin-top: 0;
        text-align: center;
    }
}
