@keyframes holographicShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Same shell/behaviour as the game-details overlay */
.bet-details-overlay {
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.bet-details-overlay .bet-details-modal {
    max-height: none;
    overflow: visible;
    margin: auto;
    max-width: 560px;
}

.bet-details-modal .user-profile-modal-close {
    top: 30px;
    right: 40px;
}

.bet-details-content {
    padding: 8px;
}

.bet-details-content .bet-skeleton-card {
    min-height: 320px;
}

/* Whole card — one glass container, everything lives inside it */
.bet-details-content .bet-header-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2), 0 0 0 1px rgba(0,255,204,0.1);
}

/* Bet title — same as .game-details-content .section-title */
.bet-details-content .bet-header-card .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px 0;
}

.bet-details-content .bet-header-card .section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #00ffcc, #00d4aa);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
}

/* Player / Game# / Time / Bet ID — centered column */
.bet-details-content .bet-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.bet-details-content .bet-player-row {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
}

.bet-details-content .bet-game-row {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

.bet-details-content .bet-player-label,
.bet-details-content .bet-game-label {
    color: rgba(255,255,255,0.55);
}

.bet-details-content .bet-player-name,
.bet-details-content .bet-game-id {
    color: #00ffcc;
    font-weight: 600;
    text-decoration: none;
}

.bet-details-content .bet-player-name:hover,
.bet-details-content .bet-game-id:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0,255,204,0.5);
}

/* Game# inside crash-footer — game-id pill style, non-clickable, centered */
.bet-details-content .bet-crash-footer .bet-game-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(145deg, rgba(0,255,204,0.1), rgba(0,255,204,0.05));
    border: 1px solid rgba(0,255,204,0.3);
    border-radius: 12px;
    color: #00ffcc;
    font-weight: 600;
    font-size: 14px;
    cursor: default;
}

.bet-details-content .bet-crash-footer .bet-game-label {
    color: #00ffcc;
}

.bet-details-content .bet-crash-footer .bet-game-id {
    color: #00ffcc;
    font-weight: 600;
}

/* Timestamp pill */
.bet-details-content .game-timestamp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    width: fit-content;
}

.bet-details-content .game-timestamp i {
    color: #00ffcc;
    font-size: 13px;
}

.bet-details-content .bet-timestamp-date {
    color: #fff;
    font-weight: 500;
}

/* Bet ID + Copy / Share — centered, no top border */
.bet-details-content .bet-id-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    flex-wrap: wrap;
    font-size: 16px;
}

.bet-details-content .bet-id-value {
    color: rgba(255,255,255,0.55);
    margin-right: 4px;
}

.bet-details-content .bet-copy-btn,
.bet-details-content .bet-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: none;
    color: #00ffcc;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.bet-details-content .bet-copy-btn:hover,
.bet-details-content .bet-share-btn:hover {
    transform: translateY(-1px);
    color: #fff;
}

/* Brand logo — same as site .nav-brand, smaller, with fading rule each side */
.bet-details-content .bet-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.bet-details-content .bet-brand-logo::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.28) 100%);
}

.bet-details-content .bet-brand-logo::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 100%);
}

.bet-details-content .nav-brand.bet-brand-nav {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex: 0 0 auto;
}

.bet-details-content .bet-brand-nav .brand-logo {
    width: 35px;
    height: 35px;
    position: relative;
}

.bet-details-content .bet-brand-nav .brand-logo .bitcoin-symbol {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: #000;
    background: linear-gradient(145deg, #00ffcc, #00d4aa, #4ecdc4);
    border-radius: 9px;
    box-shadow: none;
}

.bet-details-content .bet-brand-nav .brand-text {
    font-size: 21px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.bet-details-content .bet-brand-nav .brand-text .gradient-text {
    background: linear-gradient(45deg, #00ffcc, #00d4aa, #4ecdc4, #00ffcc, #00d4aa);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographicShift 3s ease-in-out infinite;
}

.bet-details-content .bet-brand-nav .brand-text .gradient-text i.fa-btc,
.bet-details-content .bet-brand-nav .brand-text .gradient-text i.fab {
    font: normal normal normal 1em/1 "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* The glyph lives on the ::before pseudo-element. Apply the gradient THERE so
   background-clip:text has a background to clip against the glyph itself.
   Mobile engines don't inherit the <i>'s clipped background into ::before. */
.bet-details-content .bet-brand-nav .brand-text .gradient-text i.fa-btc::before,
.bet-details-content .bet-brand-nav .brand-text .gradient-text i.fab::before {
    background: linear-gradient(45deg, #00ffcc, #00d4aa, #4ecdc4, #00ffcc, #00d4aa);
    background-size: 200% 200%;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: holographicShift 3s ease-in-out infinite;
}

/* Bet / Cash out / Payout — .game-header-stats style (3 columns, rules) */
.bet-details-content .game-header-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    margin-top: 28px;
    padding-top: 20px;
}

.bet-details-content .game-header-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 100%);
}

.bet-details-content .game-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 0 24px;
    position: relative;
}

.bet-details-content .game-stat:first-child {
    padding-left: 0;
}

.bet-details-content .game-stat:last-child {
    padding-right: 0;
}

.bet-details-content .game-stat + .game-stat::before {
    content: '';
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 100%);
}

.bet-details-content .game-stat-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.bet-details-content .game-stat-value {
    font-family: math;
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.bet-details-content .game-stat-value .fa-btc {
    font-size: 16px;
    opacity: 0.85;
}

.bet-details-content .game-stat-pos {
    color: #00ffcc;
}

.bet-details-content .game-stat-neg {
    color: #ff6b6b;
}

.bet-details-content .game-stat-zero {
    color: rgb(148 148 148);
}

/* Crash footer */
.bet-details-content .bet-crash-footer {
    text-align: center;
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin-top: 24px;
}

.bet-details-content .bet-crash-value {
    font-weight: 800;
    font-size: 20px;
    margin-left: 6px;
    background: linear-gradient(267deg, #00ffcc 0%, #00d4aa 25%, #4ecdc4 50%, #00ffcc 75%, #00d4aa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographicShift 3s ease-in-out infinite;
}

/* Column header/cell for the game players table "Bet ID" column */
.bet-id-col {
    white-space: nowrap;
}

.bet-id-link {
    color: #00ffcc;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    text-decoration: none;
}

.bet-id-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0,255,204,0.5);
}

@media (max-width: 640px) {
    .bet-details-overlay {
        padding: 0;
    }

    .bet-details-overlay .bet-details-modal {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0 0 16px 16px;
    }

    .bet-details-content {
        padding: 0 0 8px;
    }

    .bet-details-content .bet-header-card {
        padding: 22px 16px;
        margin: 0;
        border-radius: 18px;
    }

    .bet-details-modal .user-profile-modal-close {
        top: 22px;
        right: 30px;
    }

    .bet-details-content .game-stat {
        padding: 0 10px;
    }

    .bet-details-content .game-stat-value {
        font-size: 15px;
    }
}
