/*
 Theme Name: HitSlip
 Author: HitSlip
 Description: Custom theme for Bang Fantasy sports app.
 Version: 1.25
*/
@font-face {
    font-family: 'Dela Gothic One';
    src: url('fonts/DelaGothicOne-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: #000618;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    padding-top: calc(90px + env(safe-area-inset-top, 20px));
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 20px));
    transition: transform 0.3s ease;
    overflow-x: hidden;
}

body.slide-active { }

#slide-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000618;
    z-index: 1001;
    transition: transform 0.3s ease-in-out;
    transform: translateY(100%);
    overflow-y: auto;
}

#slide-panel.active {
    transform: translateY(0);
}

body.slide-active {
    overflow: hidden;
}

#bang-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000618; /* MATCHES TOP BAR */
    height: calc(90px + env(safe-area-inset-bottom, 20px));
    padding-bottom: env(safe-area-inset-bottom, 20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1002;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;   
}

body.slide-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
}

header {
    background-color: #000618; /* Changed to solid #000618 */
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: calc(90px + env(safe-area-inset-top, 20px));
    padding-top: env(safe-area-inset-top, 20px);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px !important;
    width: auto !important;
    display: block !important;
    padding-left: 10px;
}

.header-nav {
    display: flex;
    gap: 10px;
}

.header-nav button {
    padding: 10px 20px;
    background: #5fff9c;
    color: #000618;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.header-nav button:hover { background: #333333; }

.hero {
    text-align: center;
    padding: 60px 20px;
    background: #000618;
}

.hero-image-container {
    width: 100%;
    padding-bottom: 10px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    color: #fff;
}

.hero h2 {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 48px;
    margin: 0 0 10px;
    color: #5fff9c;
    letter-spacing: 1px;
}

.hero p {
    font-size: 20px;
    margin: 0 0 20px;
}

#join-btn {
    padding: 12px 30px;
    background: #5fff9c !important;
    color: #000618 !important;
    border: none;
    border-radius: 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

#join-btn:hover { background: #56fa94 !important; }

.contest-lobby {
    padding: 10px 20px 20px;
    text-align: center;
    min-height: calc(100vh - 70px);
}

h3 {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 32px;
    margin-bottom: 25px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.05; /* Tighter spacing for multi-line titles */
}

.contest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.contest-card {
    background: #181726;
    padding: 20px;
    border-radius: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, border 0.3s ease;
    text-align: center;
    border: none; /* Default for open contests */
}

.contest-card.closed {
    border: 2px solid #fff; /* Default for closed, not ended */
}

.contest-card.closed.winning {
    border: 2px solid #5fff9c; /* Closed and winnings > $0 */
}

.contest-card.ended.winning {
    border: 2px solid #5fff9c; /* Ended and winnings > $0 */
}

.contest-card.ended:not(.winning) {
    border: 2px solid #D70040; /* Ended and winnings ≤ $0 */
}

.contest-card:hover { transform: scale(1.05); }

.contest-card h4 {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 24px;
    color: #fff;
    margin: 0 0 10px;
}

.contest-card p {
    font-size: 16px;
    margin: 0;
}

.player-grid { text-align: center; }

.leaderboard-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.leaderboard-card {
    display: flex;
    align-items: center;
    background: #181726;
    padding: 10px;
    border-radius: 28px;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.leaderboard-card-winning { border: 2px solid #5fff9c; }

.leaderboard-place {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    text-align: left;
    width: 50px;
}

.winning-place { color: #5fff9c; }

.leaderboard-hits {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #181726;
    background: #fff;
    padding: 4px 8px;
    border-radius: 16px;
    text-align: center;
    width: auto;
    display: inline-block;
    min-width: 40px;
}

.winning-hits { background: #5fff9c; }

.leaderboard-username {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    text-align: center;
    flex: 1;
    transition: color 0.3s ease;
}

.winning-username { color: #5fff9c; }

.leaderboard-picks {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #5fff9c;
    text-align: right;
    width: 80px;
}

.leaderboard-card-winning .leaderboard-place { color: #5fff9c; }
.leaderboard-card-winning .leaderboard-hits { background: #5fff9c; }
.leaderboard-card-winning .leaderboard-username { color: #5fff9c; }

.pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.pick-item {
    background: #181726;
    padding: 20px;
    border-radius: 24px;
    transition: transform 0.3s ease, border 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
}

.pick-item.selected {
    border: 2px solid #5fff9c !important;
    transform: scale(1.03);
}

.player-picture {
    margin-bottom: 15px;
}

.player-picture img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.prop-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.player-name {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 18px;
    color: #fff;
    margin-bottom: 5px;
}

.player-info {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
}

.game-info {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-align: left;
    width: 100%;
    margin-bottom: 10px;
}

.pick-item .game-info { text-align: center; }

.line-number {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 36px;
    color: #5fff9c;
}

.stat-type {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 18px;
    color: #fff;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    margin: 10px 0;
}

#back-btn,
#refresh-btn,
#leaderboard-btn,
.toggle-entries-btn {
    height: 40px;
    background: #5fff9c;
    color: #000618;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

#back-btn {
    width: 40px;
    padding: 0;
}

#back-btn img.back-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0);
}

#refresh-btn {
    width: 40px;
    padding: 0;
}

#refresh-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0);
}

#leaderboard-btn {
    padding: 0 30px;
    font-family: 'Dela Gothic One', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
}

.toggle-entries-btn {
    padding: 0 20px;
    font-family: 'Dela Gothic One', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
}

#back-btn:hover,
#refresh-btn:hover,
#leaderboard-btn:hover,
.toggle-entries-btn:hover {
    background: #56fa94;
}

@media (max-width: 767px) {
    #back-btn,
    #refresh-btn,
    #leaderboard-btn,
    .toggle-entries-btn {
        height: 36px;
    }
    
    #back-btn {
        width: 36px;
    }
    
    #back-btn img.back-icon {
        width: 20px;
        height: 20px;
    }
    
    #refresh-btn {
        width: 36px;
    }
    
    #refresh-btn img {
        width: 20px;
        height: 20px;
    }
    
    #leaderboard-btn,
    .toggle-entries-btn {
        font-size: 14px;
        padding: 0 15px;
    }
}

.higher-btn,
.lower-btn,
.exact-btn {
    flex: 1;
    height: 50px;
    font-size: 24px;
    padding: 0;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    background: #000618;
    color: #5fff9c;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
    max-width: 80px;
}

.higher-btn:hover,
.lower-btn:hover,
.exact-btn:hover {
    background: #56fa94;
    color: #000618;
}

.higher-btn.active,
.lower-btn.active,
.exact-btn.active {
    background: #5fff9c;
    color: #000618;
}

@media (max-width: 767px) {
    .higher-btn,
    .lower-btn,
    .exact-btn {
        height: 40px;
        font-size: 20px;
        max-width: 60px;
    }
}

.submit-btn {
    padding: 12px 30px;
    background: #5fff9c;
    color: #000618;
    border: none;
    border-radius: 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.submit-btn:hover { background: #56fa94; }

footer {
    text-align: center;
    padding: 15px;
    background: #000618;
    border-top: 1px solid #181726;
}

.login-section {
    padding: 40px 20px;
    text-align: center;
}

.login-section h3 {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#bang-login-form {
    max-width: 400px;
    margin: 0 auto;
    background: #181726;
    padding: 20px;
    border-radius: 24px;
}

#bang-login-form p { margin-bottom: 15px; }

#bang-login-form label {
    font-family: 'Inter', sans-serif;
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

#bang-login-form input[type="text"],
#bang-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    background: #000618;
    border: none;
    color: #fff;
    border-radius: 28px;
    font-family: 'Inter', sans-serif;
}

#bang-login-form input[type="checkbox"] { margin-right: 15px; }

#bang-login-form input[type="submit"] {
    padding: 12px 30px;
    background: #5fff9c;
    color: #000618;
    border: none;
    border-radius: 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

#bang-login-form input[type="submit"]:hover { background: #56fa94; }

.login-links { margin-top: 15px; }

.login-links p { margin: 10px 0; }

a {
    color: #5fff9c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: #56fa94; }

body.login {
    background: #000618;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.login h1 a {
    background-image: url('/wp-content/themes/hitslip/images/HitSlip%20Logo.svg');
    background-size: contain;
    width: 400px !important;
    height: 240px !important;
    display: block;
    text-indent: -9999px;
}

.login form {
    background: #181726;
    border: none;
    border-radius: 24px;
    padding: 20px;
    margin-top: 80px;
}

.login .login-section-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 32px;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center !important;
    margin-bottom: 20px;
}

.login label {
    font-family: 'Inter', sans-serif;
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    width: 100%;
    padding: 10px;
    background: #000618;
    border: none;
    color: #fff;
    border-radius: 28px;
    font-family: 'Inter', sans-serif;
}

.login input[type="submit"] {
    background: #5fff9c;
    color: #000618;
    border: none;
    border-radius: 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 30px;
    transition: background 0.3s ease;
}

.login input[type="submit"]:hover { background: #56fa94; }

.login #nav a,
.login #backtoblog a {
    color: #5fff9c;
    font-family: 'Inter', sans-serif;
}

.login #nav a:hover,
.login #backtoblog a:hover { color: #56fa94; }

.login .notice {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login .notice p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.login .notice p a { color: #5fff9c; }

.login .notice p a:hover { color: #56fa94; }

@media (max-width: 767px) {
    .contest-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .contest-card {
        background: #181726;
        padding: 15px;
        border-radius: 24px;
        cursor: pointer;
    }
    .contest-card:hover { transform: none; }
    .login .notice { margin-bottom: 30px; }
    .login form { margin-top: 30px; }
    .login h1 a {
        width: 240px !important;
        height: 144px !important;
    }
    .header-container { padding: 0 10px; }
    .header-nav { gap: 5px; }
    .header-nav button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .button-group {
        flex-direction: row;
        gap: 10px;
    }
}

.entry-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1200px;
    margin: 20px auto;
}

.entry-card {
    background: #181726;
    padding: 15px;
    border-radius: 24px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent; /* Default for open contests: no visible outline */
}

/* Closed, not ended, not winning */
.entry-card.closed:not(.winning):not(.ended) {
    border: 2px solid #ffffff !important; /* White outline for closed contests */
}

/* Winning overrides all */
.entry-card.winning {
    border: 2px solid #5fff9c !important; /* Green outline for winning entries */
}

/* Ended with no winnings */
.entry-card.ended:not(.winning) {
    border: 2px solid #D70040 !important; /* Red outline for ended, non-winning entries */
}

.entry-card:hover {
    border-color: inherit; /* Maintains current border color on hover */
}

.entry-players-container {
    width: 100%;
    min-height: 56px;
    padding: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.entry-players {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 0 10px 0;
    padding: 0;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: visible;
}

.entry-card .entry-player-picture {
    position: relative;
    flex: 1;
    max-width: 40px;
    min-width: 20px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: visible;
}

.entry-card .entry-player-picture img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.entry-card .progress-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    max-width: 48px;
    min-width: 24px;
    aspect-ratio: 1 / 1;
    pointer-events: none;
    overflow: visible;
}

.entry-card .progress-circle svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.entry-card .progress-circle circle {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.entry-card .progress-circle .circle-progress {
    stroke: #D3D3D3;
    transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
}

.entry-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.entry-place {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 40px;
    width: 60px;
    text-align: left;
    flex-shrink: 0;
}

.entry-place.neon-green {
    color: #5fff9c;
}

.entry-place.white {
    color: #fff;
}

.entry-place sup {
    font-size: 10px;
    vertical-align: super;
    top: -0.5em;
}

.entry-place-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    flex-shrink: 0;
}

.entry-total {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 14px;
    color: #fff;
    margin: 0;
}

.entry-content {
    flex: 1;
    text-align: center;
}

.entry-number {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    margin: 5px 0;
}

.entry-winnings {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: inherit;
}

.entry-timestamp {
    font-family: 'Inter', sans-serif;
    font-size: 7px;
    color: #fff;
    margin: 5px 0;
}

.entry-pick-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.entry-pick-card {
    display: flex;
    align-items: center;
    background: #181726;
    padding: 10px;
    border-radius: 22px;
    border: 2px solid #181726;
    position: relative;
    transition: border-color 0.3s ease;
    min-width: 250px;
    overflow: hidden;
}

/* Inner stroke on entry card - sits above progress bar */
.entry-pick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #181726;
    border-radius: 20px;
    pointer-events: none;
    z-index: 10;
}

.entry-player-picture {
    position: relative;
    margin-right: 15px;
    width: 50px;
    flex-shrink: 0;
    height: 50px;
}

.entry-player-picture img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.progress-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    pointer-events: none;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-circle circle {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-circle .circle-progress {
    stroke: #D3D3D3;
    transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
}

.entry-player-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.entry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.entry-last-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #D3D3D3;
    transition: color 0.3s ease;
}

.entry-player-details {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #D3D3D3;
    transition: color 0.3s ease;
}

.entry-prop-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.entry-selection {
    background: #D3D3D3;
    color: #000618;
    padding: 4px 8px;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.entry-prop {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #D3D3D3;
    transition: color 0.3s ease;
    line-height: 1;
}

.entry-game-info {
    font-family: 'Inter', sans-serif;
    font-size: 12px !important;
    text-align: left;
    width: 100%;
    color: #D3D3D3;
    transition: color 0.3s ease;
}
.progress-bar-container {
    width: 100%;
    height: 7px;
    background: #181726;
    position: absolute;
    bottom: 2px;
    left: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    position: relative;
    border-radius: 0;
    background: #D3D3D3;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.progress-stat {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 8px;
    line-height: 10px;
    color: #000618;
    transition: color 0.3s ease;
}

.contest-prizes {
    font-size: 14px;
    margin: 5px 0;
}

.contest-prizes span { margin-right: 15px; }

.popup-heading {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 20px 0;
    padding: 0;
}

.slide-toggle-btn {
    width: 30px;
    height: 30px;
    margin: 20px auto 20px;
    cursor: pointer;
    display: block;
}

.slide-content {
    padding: calc(20px + env(safe-area-inset-top, 20px)) 20px calc(90px + env(safe-area-inset-bottom, 20px));
    text-align: center;
    color: #fff;
    min-height: 100vh;
    box-sizing: border-box;
}

.slide-heading {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 15px;
}

#slide-panel p {
    color: #5fff9c;
    font-size: 16px;
    margin: 0 0 15px;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	background: rgba(15, 17, 26, 0.85); /* #0f111a with opacity */
    backdrop-filter: blur(5px); /* Blur effect like topbar */
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

#loading-overlay.active {
    display: flex;
}

.loading-logo {
    position: relative;
    width: 100px; /* Adjust size as needed */
    height: 100px;
    overflow: hidden;
}

.bang-fantasy-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: wipe 0.5s infinite ease-in-out paused; /* Faster, 0.5s duration */
}

@keyframes wipe {
    0% {
        clip-path: inset(0 0 100% 0); /* Start hidden at bottom */
    }
    50% {
        clip-path: inset(0 0 0 0); /* Fully revealed at midpoint */
    }
    100% {
        clip-path: inset(100% 0 0 0); /* Wipe to top */
    }
}

.deposit-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.deposit-amount-display {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 48px;
    color: #5fff9c;
    text-transform: uppercase;
    margin: 0 0 15px;
}

.deposit-amount-display span {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 48px;
    color: #5fff9c;
}

.deposit-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #fff;
    text-align: center;
    margin: 10px 0 0;
}

.deposit-input[type="range"] {
    width: 100%;
    padding: 0;
    background: #181726; /* Default track color */
    border: none;
    -webkit-appearance: none;
    appearance: none;
    height: 6px; /* Track now 6px */
    position: relative;
    overflow: visible; /* Ensures thumb isn’t clipped */
    margin: 10px 0;
}

.deposit-input[type="range"]::-webkit-slider-runnable-track {
    height: 6px; /* Track now 6px */
    background: transparent;
    border-radius: 4px;
}

.deposit-input[type="range"]::-moz-range-track {
    height: 6px; /* Track now 6px */
    background: transparent;
    border-radius: 4px;
}

/* Fill effect */
.deposit-input[type="range"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 6px; /* Match track height at 6px */
    width: var(--slider-percentage, 0%);
    background: #5fff9c; /* Neon green fill */
    z-index: 1;
    border-radius: 4px 0 0 4px;
}

.deposit-input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px; /* Thumb unchanged */
    background: #5fff9c;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -7px; /* Centers 20px thumb on 6px track: (20 - 6) / 2 = 7 */
    z-index: 2;
    position: relative;
    box-shadow: 0 0 0 1px #000618; /* Ensures visibility */
}

.deposit-input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px; /* Thumb unchanged */
    background: #5fff9c;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    z-index: 2;
    position: relative;
    box-shadow: 0 0 0 1px #000618; /* Ensures visibility */
}

.deposit-input[type="range"]:focus {
    outline: none;
}

.deposit-input[type="range"]::-webkit-slider-thumb:hover,
.deposit-input[type="range"]::-webkit-slider-thumb:active {
    background: #56fa94;
}

.deposit-input[type="range"]::-moz-range-thumb:hover,
.deposit-input[type="range"]::-moz-range-thumb:active {
    background: #56fa94;
}

.deposit-btn {
    padding: 12px 30px;
    background: #5fff9c;
    color: #000618;
    border: none;
    border-radius: 28px;
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.deposit-btn:hover { background: #56fa94; }

#paypal-button-container { margin-top: 20px; }

.custom-page {
    padding: 90px 20px 20px;
    text-align: center;
    min-height: calc(100vh - 70px);
}

.custom-page h1 {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 32px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.custom-page form {
    max-width: 400px;
    margin: 0 auto;
    background: #181726;
    padding: 20px;
    border-radius: 24px;
}

.custom-page label {
    font-family: 'Inter', sans-serif;
    color: #fff;
    display: block;
    margin-bottom: 5px;
    text-align: left;
}

.custom-page input[type="number"],
.custom-page input[type="email"],
.custom-page input[type="password"] {
    width: 100%;
    padding: 10px;
    background: #000618;
    border: none;
    color: #fff;
    border-radius: 28px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 15px;
}

.custom-page input[type="submit"] {
    padding: 12px 30px;
    background: #5fff9c;
    color: #000618;
    border: none;
    border-radius: 28px;
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.custom-page input[type="submit"]:hover { background: #56fa94; }

.custom-page p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #5fff9c;
    margin: 0 0 15px;
}

.password-hint {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #5fff9c;
    display: block;
    margin-top: -10px;
    margin-bottom: 15px;
    text-align: left;
}

.account-links {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.account-links li { margin-bottom: 15px; }

.account-links a {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.account-links a:hover,
.account-links a:active { color: #5fff9c; }

.clock-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 15px;
    filter: brightness(0) invert(1);
}

.countdown-timer {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #fff;
    vertical-align: middle;
}

.user-icon,
.ticket-icon,
.trophy-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 15px;
    filter: brightness(0) invert(1);
}

.contest-card p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 5px 0;
    font-size: 16px;
    color: #fff;
}

.current-winnings {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: inherit;
}

.visualizer-paid {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: #5fff9c !important;
    transition: width 0.3s ease;
    z-index: 1;
    min-width: 5px;
}

.visualizer-winnings {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.leaderboard-visualizer {
    margin: 20px auto;
    max-width: 1200px;
    width: 90%;
    text-align: center;
    position: relative;
}

.visualizer-bar {
    position: relative;
    width: 100%;
    height: 5px;
    background: #181726;
    border-radius: 5px;
    overflow: visible;
    min-width: 0;
}

.visualizer-notch {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #fff;
    border: 3px solid #000618;
    border-radius: 50%;
    transform: translateX(-50%);
    top: -5px;
    z-index: 2;
}

@media (max-width: 767px) {
    .leaderboard-visualizer { width: 95%; }
    .visualizer-notch {
        width: 10px;
        height: 10px;
        border-width: 2px;
        top: -2.5px;
    }
}

@media (max-width: 767px) {
    .pick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    .pick-item { padding: 15px; }
    .player-picture img {
        width: 80px;
        height: 80px;
    }
    .line-number { font-size: 28px; }
    .stat-type,
    .player-name { font-size: 16px; }
    .player-info,
    .game-info { font-size: 12px; }
    .button-group { gap: 8px; }
}

@media (orientation: landscape) and (min-width: 768px) {
    .entry-players-container {
        min-height: 80px;
        height: auto;
        padding: 12px 0;
        overflow: visible;
    }
    
    .entry-players {
        gap: 10px;
        align-items: center;
        flex-wrap: nowrap;
        overflow: visible;
    }
}

/* Money bag icon styles */
.money-bag-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 15px;
}

/* Default white styling for winnings text and icon when amount ≤ 0 */
.winnings-text.white {
    color: #fff !important;
}

.winnings-text.white .money-bag-icon {
    filter: brightness(0) invert(1);
}

/* Neon green styling for winnings text when amount > 0 */
.winnings-text.neon-green {
    color: #5fff9c !important;
}

.winnings-text.neon-green .money-bag-icon {
    filter: none;
}

/* Additional styles for titles */
.my-entries-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 24px;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
    text-align: center;
}

.create-entry-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 24px;
    color: #ffffff;
    text-transform: uppercase;
    margin: 20px 0;
    text-align: center;
}
.max-entries-icon {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    margin-right: 15px;
    filter: brightness(0) invert(1); /* Makes the SVG white */
}
.bottom-bar-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    display: block;
}