/* ARENAI Betting Styles - Clean, no conflicts */

#arenai-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #191438;
    background-image: radial-gradient(circle at 50% 100%, #2f1a5f, #191438);
    border: 2px solid #a956fa;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(169, 86, 250, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #a956fa;
    transform: rotate(90deg);
}

.modal-title {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #3ceda1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.modal-body {
    font-family: Oxanium, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #d0d0d0;
}

.modal-body p {
    margin-bottom: 15px;
}

.how-step {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #a956fa;
    border-radius: 8px;
}

.how-step h3 {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 16px;
    color: #00ff88;
    margin-bottom: 10px;
}

.how-step p {
    margin: 0;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    transition: left 0.3s ease;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-content {
    width: 100%;
    height: 100%;
    padding: 80px 30px 30px;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(169, 86, 250, 0.1);
    border: 2px solid rgba(169, 86, 250, 0.3);
    border-radius: 15px;
    text-decoration: none;
    color: #fff;
    font-family: Orbitron, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
}

.mobile-menu-item:hover {
    background: rgba(169, 86, 250, 0.2);
    border-color: #a956fa;
    transform: translateX(10px);
}

.mobile-menu-item img {
    width: 32px;
    height: 32px;
}

/* Make menu links behave as text, not anchors */
.block_menu .menu_link {
    display: inline-block;
    pointer-events: none;
}

.betting-section {
    background: #191438;
    background-image: radial-gradient(circle at 50% 100%, #2f1a5f, #191438);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(169, 86, 250, 0.3);
}

.section-header {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #3ceda1;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Token Price Grid */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.price-box {
    background: rgba(23, 17, 59, 0.8);
    border: 2px solid rgba(169, 86, 250, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.price-box-label {
    font-family: Oxanium, Arial, sans-serif;
    font-size: 11px;
    color: #a8a8a8;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.price-box-value {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffd991;
    margin-bottom: 8px;
}

.price-box-update {
    font-family: Oxanium, Arial, sans-serif;
    font-size: 10px;
    color: #00ffff;
}

/* Fight Status Badge */
.status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-family: Oxanium, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.open {
    background: #00ff00;
    color: #000;
}

.status-badge.closed {
    background: #ffaa00;
    color: #000;
}

.status-badge.completed {
    background: #e30f84;
    color: #fff;
}

/* Fight Countdown */
.fight-countdown {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 100, 0.05) 100%);
    border: 3px solid #00ff88;
    border-radius: 15px;
    padding: 25px 30px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), inset 0 0 20px rgba(0, 255, 136, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.countdown-label {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    margin: 0;
}

.countdown-timer {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.4);
    letter-spacing: 2px;
    animation: pulse-glow 2s ease-in-out infinite;
    margin: 0;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.4);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 255, 136, 1), 0 0 60px rgba(0, 255, 136, 0.6);
    }
}

.countdown-sublabel {
    font-family: Oxanium, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #a8a8a8;
    margin-top: 8px;
}

/* Fighter Grid */
.fighter-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.fighter-box {
    background: rgba(23, 17, 59, 0.8);
    border: 2px solid;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.fighter-box.left {
    border-color: #e30f84;
}

.fighter-box.right {
    border-color: #00ffff;
}

.fighter-name {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.pool-label {
    font-family: Oxanium, Arial, sans-serif;
    font-size: 11px;
    color: #a8a8a8;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.pool-amount {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffd991;
    margin-bottom: 10px;
}

.fighter-odds {
    font-family: Oxanium, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #00ff00;
    margin-bottom: 15px;
}

.total-pool-display {
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(169, 86, 250, 0.3);
    border-radius: 10px;
}

.total-pool-label {
    font-family: Oxanium, Arial, sans-serif;
    font-size: 12px;
    color: #a8a8a8;
    text-transform: uppercase;
    margin-right: 10px;
}

.total-pool-value {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffd991;
}

.bet-input-section {
    margin: 20px 0;
}

.balance-display {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(60, 237, 161, 0.3);
    border-radius: 8px;
    margin-bottom: 15px;
}

.balance-label {
    font-family: Oxanium, Arial, sans-serif;
    font-size: 11px;
    color: #a8a8a8;
    text-transform: uppercase;
    margin-right: 8px;
}

.balance-value {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #3ceda1;
}

.bet-percentage-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.credits-percentage-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.percentage-btn {
    padding: 10px;
    background: rgba(169, 86, 250, 0.2);
    border: 2px solid rgba(169, 86, 250, 0.5);
    border-radius: 8px;
    color: #a956fa;
    font-family: Orbitron, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.percentage-btn:hover {
    background: rgba(169, 86, 250, 0.4);
    border-color: #a956fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(169, 86, 250, 0.4);
}

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

.percentage-btn.max-btn {
    background: rgba(60, 237, 161, 0.2);
    border-color: rgba(60, 237, 161, 0.5);
    color: #3ceda1;
}

.percentage-btn.max-btn:hover {
    background: rgba(60, 237, 161, 0.4);
    border-color: #3ceda1;
    box-shadow: 0 5px 15px rgba(60, 237, 161, 0.4);
}

.bet-amount-input {
    width: 100%;
    padding: 15px;
    background: rgba(23, 17, 59, 0.8);
    border: 2px solid rgba(169, 86, 250, 0.5);
    border-radius: 10px;
    color: #fff;
    font-family: Oxanium, Arial, sans-serif;
    font-size: 16px;
    text-align: center;
}

.bet-amount-input:focus {
    outline: none;
    border-color: #a956fa;
    box-shadow: 0 0 15px rgba(169, 86, 250, 0.5);
}

.bet-amount-input::placeholder {
    color: #666;
}

.bet-usd-value {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    font-family: Oxanium, Arial, sans-serif;
    font-size: 13px;
    color: #a8a8a8;
    transition: color 0.3s;
}

.bet-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-family: Orbitron, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.bet-btn.left {
    background: linear-gradient(90deg, #c04ad8, #772050);
    color: #fff;
    border: 1px solid #ff50e8;
}

.bet-btn.right {
    background: linear-gradient(90deg, #8450eb, #8b52fa);
    color: #fff;
    border: 1px solid #a582ff;
}

.bet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(169, 86, 250, 0.5);
}

.withdraw-credits-btn {
    width: auto;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-family: Orbitron, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(90deg, #c04ad8, #772050);
    color: #fff;
    border: 1px solid #ff50e8;
    align-self: flex-start;
}

.withdraw-credits-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(192, 74, 216, 0.5);
    background: linear-gradient(90deg, #d05ae8, #883060);
}

.withdraw-credits-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(169, 86, 250, 0.2);
    border-color: rgba(169, 86, 250, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

.credits-section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.credits-balance-display {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(60, 237, 161, 0.3);
    border-radius: 8px;
}

.credits-value {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #3ceda1;
}

.credits-withdraw-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.vs-text {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #a956fa;
    text-shadow: 0 0 20px rgba(169, 86, 250, 0.8);
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Completed Fight Card */
.completed-fight-card {
    background: rgba(23, 17, 59, 0.8);
    border: 2px solid #e30f84;
    border-radius: 15px;
    padding: 25px;
}

.completed-fight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fight-id-label {
    font-family: Oxanium, Arial, sans-serif;
    font-size: 11px;
    color: #00ffff;
    text-transform: uppercase;
}

.completed-fighters {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.completed-fighter-box {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.completed-fighter-box.winner {
    border-color: #00ff00;
}

.completed-fighter-box.loser {
    border-color: #666;
    opacity: 0.5;
}

.completed-fighter-name {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.winner-banner {
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-family: Orbitron, Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
}

.pool-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.pool-stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(169, 86, 250, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.pool-stat-label {
    font-family: Oxanium, Arial, sans-serif;
    font-size: 10px;
    color: #a8a8a8;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.pool-stat-value {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffd991;
}

/* Claim Section */
.claim-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
}

.claim-section.claimed {
    background: rgba(0, 255, 0, 0.05);
    border-color: rgba(0, 255, 0, 0.2);
}

.claim-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.claim-label {
    font-family: Oxanium, Arial, sans-serif;
    font-size: 12px;
    color: #00ff00;
    text-transform: uppercase;
}

.claim-amount {
    font-family: Orbitron, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffd991;
}

.claim-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    border: 2px solid #00ff00;
    border-radius: 10px;
    font-family: Orbitron, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.5);
}

.claimed-msg {
    text-align: center;
    font-family: Oxanium, Arial, sans-serif;
    font-size: 14px;
    color: #00ff00;
    font-weight: 600;
}

/* Watch Fight/Stream Button */
.watch-fight-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    font-family: Orbitron, Arial, sans-serif;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    border: 2px solid #00ff88;
}

.watch-fight-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.8);
    background: linear-gradient(135deg, #00ffaa 0%, #00ff88 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .fighter-grid {
        grid-template-columns: 1fr;
    }
    
    .completed-fighters {
        grid-template-columns: 1fr;
    }
    
    .vs-text {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .section-header {
        font-size: 18px;
    }
    
    .countdown-timer {
        font-size: 28px;
    }
    
    .pool-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bet-percentage-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .percentage-btn {
        font-size: 12px;
        padding: 8px;
    }
}

.loading-text {
    text-align: center;
    padding: 40px;
    font-family: Oxanium, Arial, sans-serif;
    font-size: 14px;
    color: #a8a8a8;
}

.no-wallet-msg {
    text-align: center;
    padding: 15px;
    background: rgba(255, 70, 85, 0.1);
    border: 1px solid #ff4655;
    border-radius: 10px;
    color: #ff4655;
    font-family: Oxanium, Arial, sans-serif;
    font-size: 13px;
    margin-top: 15px;
}

