.contest-cooldown-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
    padding: 24px 30px !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4) !important;
    z-index: 99999 !important;
    max-width: 700px !important;
    width: 90% !important;
    text-align: center !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.contest-cooldown-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.contest-cooldown-modal:hover::before {
    left: 100%;
}

.contest-cooldown-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.contest-cooldown-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}

.contest-cooldown-icon {
    font-size: 36px;
    line-height: 1;
    display: block;
}

.contest-cooldown-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.contest-cooldown-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
    text-align: center;
}

.contest-cooldown-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.contest-cooldown-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 8px;
}

.contest-cooldown-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.contest-cooldown-stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
}

.contest-cooldown-stat-value {
    color: white;
    font-size: 14px;
    font-weight: 700;
}

/* Cooldown Timer Section */
.cooldown-timer-section {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 8px 0;
}

.cooldown-timer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cooldown-timer-icon {
    font-size: 20px;
}

.cooldown-timer-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.cooldown-timer-display {
    margin: 12px 0;
}

.cooldown-timer-countdown {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #fef3c7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.cooldown-timer-footer {
    margin-top: 8px;
}

.cooldown-last-play-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.contest-cooldown-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
    width: 100%;
}

.contest-cooldown-link,
.contest-cooldown-link-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
}

/* Equal width buttons - always equal width */
.contest-cooldown-actions {
    flex-wrap: nowrap;
}

.contest-cooldown-link,
.contest-cooldown-link-primary {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    max-width: 50% !important;
}

.contest-cooldown-link {
    background: rgba(255, 255, 255, 0.2);
}

.contest-cooldown-link-primary {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.contest-cooldown-link::before,
.contest-cooldown-link-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.contest-cooldown-link:hover::before,
.contest-cooldown-link-primary:hover::before {
    left: 100%;
}

.contest-cooldown-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contest-cooldown-link-primary:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contest-cooldown-link span,
.contest-cooldown-link-primary span {
    position: relative;
    z-index: 2;
}

@keyframes slideDownCooldownModal {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.contest-cooldown-modal.show {
    animation: slideDownCooldownModal 0.4s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any inline styles when show class is present */
.contest-cooldown-modal.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

