.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.sub-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    width: 100%;

    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.sub-nav::-webkit-scrollbar {
    display: none;
}
.categ-cont {
    margin: 1rem 0rem;
    display: flex;
    flex-shrink: 0;
    overflow: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.categ-cont::-webkit-scrollbar {
    display: none;
}
.categories-wrapper {
    display: flex;
    flex-direction: row;
    margin: 0.75rem 1rem;
    gap: 1rem;
}
.categories-wrapper-events {
    display: flex;
    width: 300vw;
}
.sub-nav-btn {
    width: 35vw;
    padding: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    background-color: var(--win-dark-medium);
    color: var(--muted-foreground);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.sub-nav-btn.active {
    background-color: var(--win-orange);
    color: var(--primary-foreground);
}

.card-style {
    background-color: var(--win-dark-light);
    color: var(--foreground);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.task-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}
.task-btn {
    background: var(--win-blue);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    min-width: 110px;
    cursor: pointer;
}
.btn-completed {
    background: var(--win-success) !important;
}

.history-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.history-tab-btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background-color: var(--win-dark-medium);
    color: var(--muted-foreground);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.history-tab-btn.active {
    background-color: var(--win-orange);
    color: var(--primary-foreground);
}
.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bet-history-card-white {
    background-color: var(--win-dark-medium);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}
.bhc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}
.bhc-event-name {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}
.bhc-deposit-method {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}
.bhc-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    color: #FFFFFF;
    flex-shrink: 0;
}
.bhc-status.won { background-color: var(--win-success); }
.bhc-status.lost { background-color: var(--win-red); }
.bhc-status.pending { background-color: var(--muted-foreground); }
.bhc-status.expired { background-color: var(--win-red); }
.bhc-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    padding: 0.75rem 0;
}
.bhc-details > div {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}
.bhc-details span { color: var(--muted-foreground); }
.bhc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bhc-result {
    font-weight: 700;
    font-size: 1rem;
}
.bhc-result.won { color: var(--win-success); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background-color: var(--win-dark-light);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.stat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}
.stat-header svg {
    width: 16px;
    height: 16px;
}
.profit-icon { fill: var(--win-success); }
.loss-icon { fill: var(--win-red); }
.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
}
.stat-value.profit { color: var(--win-success); }
.stat-value.loss { color: var(--win-red); }
.stat-footer {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}
.profile-btn-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem;
    background-color: var(--win-dark-light);
    border: 1px solid var(--border);
    border-radius: 1rem;
    color: var(--foreground);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}
.referral-container { margin-bottom: 1rem; }
.referral-container h3 { margin-bottom: 0.25rem; }
.referral-container p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.referral-link-wrapper {
    display: flex;
    gap: 0.5rem;
}
.referral-link-wrapper input {
    flex-grow: 1;
    background: var(--win-dark-medium);
    border: 1px solid var(--border);
    color: var(--foreground);
    border-radius: 0.5rem;
    padding: 0 0.75rem;
    font-size: 0.9rem;
    outline: none;
}
.copy-btn {
    flex-shrink: 0;
    width: 40px; 
    height: 40px; 
    border: none;
    background-color: var(--win-blue);
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px; 
}
.copy-btn svg { width: 100%; height: 100%; }
.ref-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ref-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--win-dark-medium);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
}
.ref-history-item .ref-username { font-weight: 500; }
.ref-history-item .ref-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}
.ref-history-item .ref-details b {
    color: var(--win-success);
    font-weight: 600;
}

.express-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.express-item-card {
    background-color: var(--win-dark-medium);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.express-item-name {
    font-size: 0.9rem;
    max-width: 60%;
}
.express-item-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.express-item-details span {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}
.express-item-details b {
    font-weight: 700;
    font-size: 1rem;
}
.series-item-info { flex-grow: 1; }
.remove-series-item-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: var(--win-dark-medium);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.remove-series-item-btn:hover {
    background-color: var(--win-red);
    color: white;
}
.express-summary, .express-bet-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
.summary-row span { color: var(--muted-foreground); }
.summary-row b { font-weight: 600; }
.summary-row.success b { color: var(--win-success); }
.summary-row.danger b { color: var(--win-red); }
.express-bonus-note {
    font-size: 0.8rem;
    color: var(--win-red);
    text-align: center;
    margin-top: -0.5rem;
}

#roulette-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0; 
}
#roulette-page > .content-wrapper {
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative; 
}
.roulette-container {
    flex-grow: 1;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: var(--roulette-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mask-image: linear-gradient(to bottom, 
        black 0%, 
        black 70%, 
        transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
        black 0%, 
        black 70%, 
        transparent 100%);
}
.roulette-wheel {
    height: 130%; 
    padding: 20px 0;
    will-change: transform;
}
.roulette-selector {
    position: absolute;
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    z-index: 5;
    filter: drop-shadow(0 0 5px rgba(227, 64, 64, 0.7));
    top: 50%;
    transform: translateY(-50%);
}
.roulette-selector.left { left: 1rem; border-left: 15px solid #E34040; }
.roulette-selector.right { right: 1rem; border-right: 15px solid #E34040; }

.roulette-item {
    width: 250px;
    height: 60px;
    margin: 8px 0;
    background: linear-gradient(145deg, var(--win-dark-medium), var(--roulette-gradient));
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    transition: transform 0.3s ease, filter 0.3s ease;
    transform: scale(1);
}
.roulette-item.active {
    transform: scale(1.15);
    filter: brightness(1.1);
    border-color: var(--win-orange);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}
.roulette-item-value { font-size: 1.5rem; font-weight: 700; }
.roulette-item-name { font-size: 0.8rem; color: var(--muted-foreground); text-transform: uppercase; }

.roulette-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--win-dark-light) 7%,
        var(--win-dark-light) 100%);
    /* border-top: 1px solid var(--border); */
    padding: 1rem;
    padding-top: 1rem;
    padding-bottom: calc(0.5rem + 65px  + env(safe-area-inset-bottom, 0));
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-end;
    z-index: 10;
}
#spin-btn, #auto-spin-btn {
    flex: 1;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
#spin-btn { background-color: var(--win-blue); }
#auto-spin-btn { background-color: var(--autospin-button); color: var(--autospin-button-text); }
#spin-btn:disabled, #auto-spin-btn:disabled { opacity: 0.6; cursor: not-allowed; }





.profile-balance {
    position: relative;
    display: flex;
    flex-direction: row;
    margin-bottom: 0.75rem;
    gap: 8px;
}
.profile-balance-left {
    position: relative;
    width: 2px;
    background-color: var(--win-success);
    border-radius: 2px;
    box-shadow: 0 0 15px 0px rgba(16, 185, 129, 0.4);
}
.profile-balance-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.profile-balance-text {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.2;
}
.profile-balance-amount {
    font-size: 1.5rem; 
    font-weight: 500; 
    letter-spacing: -0.5px;
    color: var(--foreground);
    line-height: 1.7;
    white-space: nowrap;
}
.profile-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}